ruffle
ruffle copied to clipboard
AVM2: Loader: Non-public property flash.events:IEventDispatcher::addEventListener not found
Describe the bug
It seems that addEventListener
cannot be used with contentLoaderInfo
of Loader
.
The following error is displayed in the console:
AVM2 error: Non-public property flash.events:IEventDispatcher::addEventListener not found on Object
Expected behavior
Correct implementation of addEventListener
property for contentLoaderInfo
of Loader
.
Affected platform
Self-hosted version
Operating system
Windows 11
Browser
Google Chrome 105.0.5195.127
Additional information
This is the part of the code that does not work:
var tRSLLoader: Loader = new Loader();
tRSLLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.RSLInitListener);
Reference: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.html
Is this with the most recent Ruffle verison? I just tried compiling it and it worked. Can you please show which SWF this fails on?
I tried to remove the part of the code and the error still occurs. Ruffle says the error happens in ApplicationLoader.
But seems to be somewhere else?
This is due to LoaderInfo
not being fully implemented (it is currently stubbed)
Is there anywhere to track the development on it? I'd like to try Ruffle with my SWF, but without the implementation of LoaderInfo it won't load further.
Fixed with the latest Ruffle nightly version. Thanks for your hard work!