ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Loading external SWF files as assets

Open fp07 opened this issue 4 years ago • 2 comments

Hello,

Will there be any support for loading external SWF files as assets in Ruffle in AS3?

https://helpx.adobe.com/flash/kb/load-external-swf-swf.html

fp07 avatar Jul 06 '20 20:07 fp07

Eventually, yes. We implemented all methods of loading movies in AVM1; and AVM2 has fewer entrypoints to worry about compared to AVM1. All of the work necessary to have clips and symbols from multiple movies interacting in a single movie network is already done. That being said, there's still a lot of work until exposing this to AVM2 is viable:

  • Extremely MVP AVM2 interpreter (implemented, mostly, needs merge, is extremely basic, doesn't even include math or coercion support)
  • Native class support (in progress)
  • Host objects for the display tree
  • MovieClip class impl
  • Global-scope isolation (each ABC runs in a separate global scope that inherits from another, but in a weird way)
  • VM barriers (Movies cannot be mixed-VM, AVM2 movies can load AVM1 but the two VMs are sandboxed from each other)
  • Loader Class & new load actions for AVM2-initiated movie loads

This looks like six PRs worth of work, and we're only at about one and a half done.

kmeisthax avatar Jul 07 '20 04:07 kmeisthax

Any update on this @kmeisthax, there has been a lot done I think from the PRs you mentioned above 💯

fp07 avatar Oct 12 '20 10:10 fp07

I think this is now done.

torokati44 avatar Aug 08 '23 16:08 torokati44

Mixed AVM isn't working yet. #11005 should close this issue.

Lord-McSweeney avatar Nov 10 '23 20:11 Lord-McSweeney

With the merge of #11005 all external files should match FP in loading.

Lord-McSweeney avatar Dec 01 '23 00:12 Lord-McSweeney