Share Posted April 13, 2013 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. 2 Link to comment Share on other sites More sharing options...
Share Posted April 13, 2013 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. Link to comment Share on other sites More sharing options...
Author Share Posted April 14, 2013 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. 1 Link to comment Share on other sites More sharing options...
Share Posted August 25, 2014 I need this as well... Were there any updates on this issue, or perhaps ptc could share his code with me.. I want to Load the swf as bytes like the classical loader does. Thank you. Link to comment Share on other sites More sharing options...
Share Posted August 25, 2014 I ended up using DataLoader and I got the ByteArray from the loader.content variable. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now