I have a folder contains swf and xml files.
This is my AS3 code :
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
function loadMyswf(url:String):void {
var myswf:Loader = new Loader();
var url2:URLRequest = new URLRequest("");
myswf.load(url2);
addChild(myswf);
}
I try to load an swf file using a Loader
( myswf
) when the user click on the AccordionTreeMenu V3 component, but that is not working.
So, what is wrong with my code ?
Aucun commentaire:
Enregistrer un commentaire