Flash CS4 button problem |
Flash CS4 button problem |
![]()
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. |
|
|
![]() |
![]()
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); } |
|
|
![]() ![]() |