FORUMS: list search recent posts

same window button/link in actionscript 3

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
saree rice
same window button/link in actionscript 3
on Jul 21, 2010 at 9:13:05 pm

Hello there,

i am trying to do a flash banner/button, however i cant figure out where to place the code to make it open in the same window or tab.
below is the actionscript ive used and works great till i try to add something to the extent of _self) so on, but im at a loss, any help would be soooo useful!


inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.globalcool.org/tag/do-it-in-public"));

}



all the best,
Saree


Return to posts index

Pieter Helsen
Re: same window button/link in actionscript 3
on Jul 22, 2010 at 7:14:04 am

inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void
{
var request:URLRequest = new URLRequest("http://www.globalcool.org/tag/do-it-in-public")
navigateToURL(request, '_self');

}

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]