Jump to content

prevent new tab in button links.


Recommended Posts

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

Edited by SICK
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

  • Create New...