Skip to content

Conversation

@kjarosh
Copy link
Member

@kjarosh kjarosh commented Feb 1, 2026

This contains several patches that improve how Ruffle behaves when loading a movie into _root. The basis for tests constitute the loader listener events, using which we can observe various states of the movie during loading.

This makes the code more readable.
1. Do not special case initial state when loading local movies.
2. Set the new URL for the initial loading state.

There's no evidence that local movies have an error state loaded
initially or that the initial state uses the old URL, there's even
evidence to the contrary: when replacing the root movie we have a pretty
deep insight on what the movie looks like.
Looks like it's an exception for when the root movie is being replaced,
as in other cases the name is not being reset.
Flash invokes loader listeners when the root movie is replaced.
Those listeners are executed in the content of the old root movie, or
the new one when replaced.
@kjarosh kjarosh added A-avm1 Area: AVM1 (ActionScript 1 & 2) T-compat Type: Compatibility with Flash Player labels Feb 1, 2026
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) T-compat Type: Compatibility with Flash Player

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant