Take again the First movie that you made in tutorial of Motion tween and get make it Stop, and play from an other way.
Name it Action
2. Now press f9 or go to Window --> Actions
Go to 1st frame of your Action layer and write in Actions panel
stop();
If you press CTRL+ENTER to test your movie you will see that the clip it doesn’t move
3. Let’s make a button 2 make the movie move again. Create a new layer above Actions and layer 1 and name it button. To take it in the middle you just drag it to the middle
4. Now get the Rectangle tool (R) and make a rectangle on that position
5. Select the new rectangle and press f8 to convert into a symbol and press button. Name it Button_bt
6. Now Select the button with the select tool (V) and open the Action Panel (f9) and write:
on (press) {
gotoAndPlay(2);
}
This is mean on (press) --> when you press your button
gotoAndPlay(2); --> go to frame 2 of your movie clip and play
You Can Download the fla file from Here
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου