Skip to content

Conversation

@SuchAFuriousDeath
Copy link
Contributor

Fixes #12490.

I do not fully understand this tbh and not sure if this is the correct fix.

What happens is that the game tries to cache movie clips using bitmaps and without this fix the bounds of the movieclip are absolutely massive, resulting in a bitmap so big that it is invalid. (The width of the TextEdit is set to the default 1 000 000 from the createTextLine method signature: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/engine/TextBlock.html#createTextLine().

I expect that this will need a test, but I do not want to waste time on this before it is vibe-checked by someone who has a proper understanding of this code area.

@SuchAFuriousDeath
Copy link
Contributor Author

The tests fail, so this does seem quite correct. It should be noted that the doc for the width parameters says 'Specifies the desired width of the line in pixels. The actual width may be less. '. Maybe the right solution is some sort of compromise?

@danielhjacobs danielhjacobs added A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already) labels Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dechmog - can't enter the game

2 participants