Flash As3 help Imageloader
Out of context: Reply #5
- Started
- Last post
- 12 Responses
- OBBTKN0
Hi guys...
I´ve recoded the thing to that:
stop();
var myImageLoader:Loader = new Loader();
var myImageLocation:URLRequest = new URLRequest("IMG/opcion.png");var myImageLoader2:Loader = new Loader();
var myImageLocation2:URLRequest = new URLRequest("IMG/opcion2.png");var myImageLoader3:Loader = new Loader();
var myImageLocation3:URLRequest = new URLRequest("IMG/opcion3.png");var myImageLoader4:Loader = new Loader();
var myImageLocation4:URLRequest = new URLRequest("IMG/opcion4.png");btn1.addEventListener(MouseEvent...
function op1(event:MouseEvent):void{
myImageLoader.load(myImageLocati...
mc.addChild(myImageLoader);
}btn2.addEventListener(MouseEvent...
function op2(event:MouseEvent):void{
myImageLoader2.load(myImageLocat...
mc.addChild(myImageLoader2);
}btn3.addEventListener(MouseEvent...
function op3(event:MouseEvent):void{
myImageLoader3.load(myImageLocat...
mc.addChild(myImageLoader3);
}btn4.addEventListener(MouseEvent...
function op4(event:MouseEvent):void{
myImageLoader4.load(myImageLocat...
mc.addChild(myImageLoader4);
}But the problem now is i need to removechild all the images except the loaded one. Can anyone help on this?
TA