Jump to content
Search Community

Loading external swf that contains xml files

Tegiiin test
Moderator Tag

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

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