Welcome visitor
* Login
* Register
It is currently March 18th, 2019, 3:23 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Flash / ActionScript » ActionScript 3.0



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  using gotoAndStop on mouse click
PostPosted: February 10th, 2009, 7:48 pm 
User avatar

Posts: 63
Hi,
I have placed a button for the "skip intro" thing and I have been trying for hours to place the code for it. This is what I have so far:

btn_skipintro.addEventListener(MouseEvent.CLICK, ClickHandler);

function ClickHandler(e:MouseEvent);
{
// this is the code that I need for gotoAndStop that works!
}


Can someone please help me out?
Thanks


Top
 Profile  
 
  Re: using gotoAndStop on mouse click
PostPosted: February 10th, 2009, 7:56 pm 
User avatar

Posts: 86
That's good. Now try adding this, it should work just fine:
btn_skipintro.addEventListener(MouseEvent.CLICK, ClickHandler);

function ClickHandler(e:MouseEvent):void
{
gotoAndStop("Final");
}


Top
 Profile  
 
  Re: using gotoAndStop on mouse click
PostPosted: February 10th, 2009, 7:58 pm 
User avatar

Posts: 63
Great, that was perfect!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Flash / ActionScript » ActionScript 3.0


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron