86e6983943
This PR implements the `Loader.load` method, as well as the associated `LoaderInfo` properties and events. We can now load in an external AVM2 SWf: it will be added as a child of `Loader` object, and will render properly to the screen. Limitations: * The only supported `URLRequest` property is `url` * `LoaderContext` is not supported at all - we always use the default behavior * Only `Loader.load` is implemented - we do not yet support unloading. * We fire a plain 'Event' for the 'progress' event, instead of using the (not yet implemented) 'ProgressEvent' class The main changes in this PR are: * The AVM2 `Loader` class now has an associated display object, `LoaderDisplay`. This is basically a stub, and just renders its single child (if it exists). * `LoaderStream::Stage` is renamed to `LoaderStream::NotYetLoaded`. This is used for both the `Stage` and an 'uninitialized' `Loader.contentLoaderInfo`. In both cases, certain properties throw errors, while others return actual values. * The rust `Loader` manager now handles both AVM1 and AVM2 movie loads. |
||
---|---|---|
.. | ||
input-format | ||
tests | ||
Cargo.toml |