Jump to content
GreenSock

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

Loading external swf that contains xml files

Recommended Posts

Hello

 

import flash.events.MouseEvent;
import flash.display.Loader;
import flash.net.URLRequest;
 
front_mc.play_mc.addEventListener(MouseEvent.CLICK, playClicked);
 
function playClicked(event:MouseEvent):void
{
var loader:Loader = new Loader();
addChild(loader);
addChild(front_mc);
loader.load(new URLRequest("assets/panoplayer.swf"));
}
 
I wırote this code my project. My swf file contains xml files. When I test my project, It could not load: images/cube.xml from panoplayer.swf. How can I load the swf with its xml?
Link to comment
Share on other sites

Sorry, but this forum is only for questions related to GreenSock tools (LoaderMax specifically). Maybe try a more general forum like actionscript.org or kirupa.com. 

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