Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader cannot be reused #11554

Closed
AllinolCP opened this issue Jun 15, 2023 · 2 comments · Fixed by #16937
Closed

Loader cannot be reused #11554

AllinolCP opened this issue Jun 15, 2023 · 2 comments · Fixed by #16937
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working

Comments

@AllinolCP
Copy link
Contributor

Describe the bug

bug repro.zip
When reusing a Loader class to load another file the complete event wouldn't fire

Expected behavior

Loader class should fire complete event even after it was used

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

@AllinolCP AllinolCP added the bug Something isn't working label Jun 15, 2023
@AllinolCP
Copy link
Contributor Author

I just checked again and it turns out the init event also can be triggered more than once

@Lord-McSweeney Lord-McSweeney added the avm2 AVM2 (ActionScript 3.0) issues label Jun 15, 2023
@Lord-McSweeney
Copy link
Collaborator

This is because the complete_event_fired property of LoaderInfoObject is not reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants