Log In · Register

 
 
Closed TopicStart new topic
Flash CS4 button problem
CandyPop
post Feb 27 2010, 01:58 PM
Post #1


"One hell of a butler"
***

Group: Member
Posts: 95
Joined: Nov 2008
Member No: 696,422



I am trying to create a button link in Flash CS4 and I am having a hard time. What is the correct action script?

I have tried using this:

CODE
myButton_btn.onRelease=function(){
getURL("http://www.tutorial5.com/", "_blank");
}


but the Compiler Error box keeps coming up everytime I play the timeline.
 
Mikeplyts
post Mar 9 2010, 12:12 AM
Post #2


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



That looks like Actionscript 2.0. I'm guessing you're making this file in Actionscript 3.0, so it would actually look a bit different.

I haven't really used Flash in a while, but I think the code would be a little something like this:
CODE
stop();
myButton_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    gotoAndStop(2);
}
 
manny-the-dino
post Apr 2 2010, 01:00 PM
Post #3


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed, and Moved to Resolved Topics. Please PM a moderator if you would like this reopened.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: