Search  

XML AS3 HELP

HomeForumsHelp NeededXML AS3 Help
Default-profile signalr32
18 posts
Bought between 10 and 49 items

Hey you guys okay here is my deal. I got a menu that when you click on the button (which image is in xml file) it goes to the url from the xml file

Code:

imagesArray[i].addEventListener(MouseEvent.CLICK, doSomething); function doSomething(event:MouseEvent):void { imageReq= new URLRequest(thumbsXML.image[imagesArray.indexOf(event.target)].@url); navigateToURL(imageReq, “_self”;)

But instead of that i need it to load a different swf… how do i do that?

I swore i had this code written down somewhere but i think it was for AS2 .

Thanks..

Posted about 1 month ago
19189 Palehosefan
34 posts
Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

Don’t have access to Flash at the moment to verify, but I believe this is correct.

Create a Loader, and change the navigateToURL part to

LoaderName.unload();

LoaderName.load(imageReq);

Posted about 1 month ago