At 6/19/08 10:21 AM, Krasik wrote:
I am using Flash CS3. What I want to happen is:
I have a button on the scene with a movie on the Down keyframe.
I want to be able to click and ON RELEASE, play the movie without having to hold the mouse button down... as of right now, you have to hold the left mouse button down in order for it to play. I have tried several websites and used some AS 2.0 and AS 3.0. ANY help would be greatly appreciated. Thanks.
First... read some tutorial on buttons and some actionscrip. What you want to do is that when you press the button the movie will start. This is a simple thing:
//This is the action script you will put in the button:
on(release){
Movie._root.play(); //---> Movie is the instance name of your movie clip.
}
//if you want your button to play something in the same main timeline just put this on te button:
on(release){
gotoAndPlay(framenumber);
}
your getting confuse on the states of the button. A button has 4 states:
up,over,down,hit ------> Make sure to get some info on this states if your not sure how to use them.
The actions of the button are put by opening the action panel window. there you will put all he script for your button to work.