T-Shirt Forums banner
1 - 3 of 3 Posts

· Registered
Joined
·
4 Posts
Discussion Starter · #1 ·
hey, i made a toolbar to navigate through my site. Its flash and uses actionscript 3.0.
The buttons work, but they open a new window everytime I click. This is a basic problem I'm sure but I cant seem to figure it out. Heres the code I use:



import flash.events.EventDispatcher;
function women(event:Event):void {
navigateToURL(new URLRequest("http://www.thefineprintchicago.com/women.html"));
}
womenbtn.addEventListener(MouseEvent.CLICK,women);
 

· Registered
Joined
·
16 Posts
hey, i made a toolbar to navigate through my site. Its flash and uses actionscript 3.0.
The buttons work, but they open a new window everytime I click. This is a basic problem I'm sure but I cant seem to figure it out. Heres the code I use:



import flash.events.EventDispatcher;
function women(event:Event):void {
navigateToURL(new URLRequest("http://www.thefineprintchicago.com/women.html"));
}
womenbtn.addEventListener(MouseEvent.CLICK,women);
Maybe something like...

import flash.events.EventDispatcher;
function women(event:Event):void {
navigateToURL(new URLRequest("http://www.thefineprintchicago.com/women.html", '_self'));
}
womenbtn.addEventListener(MouseEvent.CLICK,women);
 
1 - 3 of 3 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top