dowp213 Posted January 30, 2011 Share Posted January 30, 2011 hi, Im new to flash, I'ved just created a button using adobe flash cs3 AS3.0 but every time I click the button it generated another tab instead of navigating inside its tab.. im so wasted solving this , done tons of sulotion but nothing ever worked. import flash.events.MouseEvent;var getsite1:URLRequest= new URLRequest("http://www.mylink.com");var getsite2:URLRequest= new URLRequest("http://www.mylink.com");var getsite3:URLRequest= new URLRequest("http://www.mylink.com");var getsite4:URLRequest= new URLRequest("http://www.mylink.com");var getsite5:URLRequest= new URLRequest("http://www.mylink.com");item.addEventListener(MouseEvent.CLICK, click1);function click1(event:MouseEvent) :void{ navigateToURL(getsite1);}gallery.addEventListener(MouseEvent.CLICK, click2);function click2(event:MouseEvent) :void{ navigateToURL(getsite2);}about.addEventListener(MouseEvent.CLICK, click3);function click3(event:MouseEvent) :void{ navigateToURL(getsite3);}contact.addEventListener(MouseEvent.CLICK, click4);function click4(event:MouseEvent) :void{ navigateToURL(getsite4);}locations.addEventListener(MouseEvent.CLICK, click5);function click5(event:MouseEvent) :void{ navigateToURL(getsite5);} this is my simple codes.. I hope someone reply with a simple answer.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.