Open evilpie opened 9 months ago
https://github.com/ruffle-rs/ruffle/blob/master/core/src/avm2/globals/flash/display/loader.rs#L41: Seems the comment here was not a good idea: "Some LoaderInfo properties (such as 'bytesLoaded' and 'bytesTotal') are always accessible, even before the 'init' event has fired. Using an empty movie gives us the correct value (0) for them."
https://github.com/ruffle-rs/ruffle/blob/master/core/src/avm2/globals/flash/display/loader.rs#L41
This was added by @Aaron1011 in #7636.
See also #13965, because even with the fixed URL the RegExp still fails anyway.
In Flash
new Loader().contentLoaderInfo.loaderURL
returns the whole path of the SWF, in Ruffle it's justfile:///
.The value probably comes from either
SwfMovie::empty
orSwfMovie::empty_fake_compressed_len
.