Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

krewelement394

macrumors regular
Original poster
Feb 14, 2008
196
0
Hi i am struggling with making buttons on CS3/4 i tried both on cs3 and 4 but cannot get them to work! i read and seeen so many tutorials but i cannot get them to work. when i click on test move, the animation starts off by just going on like if it were an animation the button first and then the 2nd frame and it loops.... i tried it on action script 2 and action script 3 the closest ive gotten to was with action script 3. on action script 3 the movie starts off by showing the button scene and it will not go on to the next keyframe until i go over the button! i dont even have to click on the button to start the movie which is something i cannot figure out why! here are the action scripts i am using for the buttons:

action script 3:

stop();
import flash.events.MouseEvent;
My_btn.addEventListener(MouseEvent.CLICK, CursorClick);
My_btn.addEventListener(MouseEvent.MOUSE_OUT, CursorOff);
function CursorClick(event:MouseEvent):void{
gotoAndStop("2");
}
function CursorOff(event:MouseEvent):void{
gotoAndStop(2);
}


and this is the one for action script 2:

on (release) {
gotoAndStop("Scene 1",1);
}

i have seen the one for action script 2 soooo many times on many tutorials!

please help! if possible can someone send me a working button you made? or can you make one for me..? (the button doesnt have to be fancy, for all i care it can be a simple circle. all i want it for is to start off the animations. thanks!)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.