Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Wickian

SWFLoader and applicationstoragedirectory

Recommended Posts

I've looked for a bit and haven't found an example of this yet.  I've tried something like this;

 

var file = new File(File.applicationStorageDirectory.nativePath);
file = file.resolvePath("path/to/file.swf");

 

var loader:SWFLoader = new SWFLoader(file, {container:this, x:100, y:100, alpha:0.5, scaleX:0.5, scaleX:0.5, rotation:50});

 

but it doesn't work.  Is this possible?

Link to comment
Share on other sites

Nevermind, I solved it.  The problem was I was passing it as an object instead of a url string.  Changing it to "File.applicationStorageDirectory.nativePath + "path/to/file.swf" worked.

  • Like 1
Link to comment
Share on other sites

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.
×