You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably the cause of many of the remaining audio looping issues. IIRC when a MovieClip is unloaded it runs all its frames but does not loop at the end (and is probably GCed).
Describe the bug
If a Movie Clip is unloaded, onEnterFrame will continue to execute if it is defined.
Expected behavior
onEnterFrame should stop executing when a Movie Clip is unloaded.
Content Location
ruffle-bug-2025a.zip
Affected platform
Desktop app
Operating system
Windows, Android
Browser
Chrome 132.0.6834.83
Additional information
This code, placed inside of a Movie Clip, will reproduce the issue:
var counter:Number = 0; onEnterFrame = function(){ counter += 1; trace(counter); if(counter > 10){ unloadMovie(this); } }
On Flash the counter will terminate at 11; on Ruffle it will continue to count indefinitely.
The text was updated successfully, but these errors were encountered: