Jump to content
Search Community

Loading bytes with SWFLoader

ptc test
Moderator Tag

Recommended Posts

Hi, I'm creating a mobile app where I'm loading some SWF files from a server and also some SWF files from the devices local disk. When I'm loading the SWFs locally I have to do it in the form of a byte array. I can do this no problem using the Flash Loader class loadBytes method. The problem is I would like to keep all the loading in a LoaderMax queue as this is very convenient to use.

 

Is there any way to load bytes using the GreenSock SWFLoader class? Or failing that any way to load a Movieclip into a SWFLoader, as though it was loading from a url? This is probably not possible but I thought I would check.

  • Like 2
Link to comment
Share on other sites

Sorry, but that isn't currently supported. You could just extend SWFLoader (or create your own that extends LoaderItem) and add whatever functionality you need. The private variable for the Loader inside is _loader. 

Thanks for the reply, this worked for me.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...