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

_root.onLoad function is not called #18882

Open
ydalton opened this issue Dec 6, 2024 · 1 comment
Open

_root.onLoad function is not called #18882

ydalton opened this issue Dec 6, 2024 · 1 comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working

Comments

@ydalton
Copy link
Contributor

ydalton commented Dec 6, 2024

Describe the bug

The contents of the _root.onLoad function in a SWF is not run.

Expected behavior

_root.onLoad should be called.

Content Location

I ran into this while making a small game, but I have made a SWF demo of the bug.

Stage code:

_root.onLoad = function()
{
	mainText.text = "_root.onLoad was called";
};

Expected result (Flash Player):
Image
Actual result (Ruffle):
Image

SWF file: onload.zip

Affected platform

Desktop app

Operating system

Gentoo Linux

Browser

No response

Additional information

No response

@ydalton ydalton added the bug Something isn't working label Dec 6, 2024
@Lord-McSweeney Lord-McSweeney added the A-avm1 Area: AVM1 (ActionScript 1 & 2) label Dec 6, 2024
@Lord-McSweeney
Copy link
Collaborator

See #1820 and #11772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants