Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Lord-McSweeney
Copy link
Collaborator

In Flash, when this happens, the MovieClip isn't added as a child to the Loader, the init and complete events aren't fired, and the contentLoaderInfo becomes inaccessible.

…ete`

This makes it clearer what it's doing
In Flash, when this happens, the MovieClip isn't added as a child to the
`Loader`, the `init` and `complete` events aren't fired, and the
`contentLoaderInfo` becomes inaccessible.
@Lord-McSweeney Lord-McSweeney added A-avm2 Area: AVM2 (ActionScript 3) waiting-on-review Waiting on review from a Ruffle team member T-fix Type: Bug fix (in something that's supposed to work already) labels Dec 22, 2025
@kjarosh
Copy link
Member

kjarosh commented Dec 22, 2025

Shouldn't we e.g. propagate the error and let the code handle it more "naturally" than setting a flag and just changing behavior here and there?

@Lord-McSweeney
Copy link
Collaborator Author

Lord-McSweeney commented Dec 22, 2025

@kjarosh The error appears in construct_frame, which we can't easily return out of. I don't really see any other way for loader code to know that there's been an error in the constructor?

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) waiting-on-review Waiting on review from a Ruffle team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants