shakiko
06-02-2005, 08:42 PM
how do i put a pause button on my flash videos???
|
View Full Version : pause button shakiko 06-02-2005, 08:42 PM how do i put a pause button on my flash videos??? Chris 06-02-2005, 08:58 PM 1. Create the button using the tools on the left 2. Select it and press F8. Select "Button" and give it a name" 3. Select the button and open the "Actions" frame (Window > Actions) 4. Type the following: on (release) { stop(); } shakiko 06-02-2005, 09:04 PM the how do i insert a play button , like when u click pause and the click play it starts from where u paused it ? Marianne 06-03-2005, 03:26 PM on (release) { play(); } You can also use one button that does both, it would have coding like: on (release) { if (pausestatus == false || pausestatus == undefined){ stop(); pausestatus = true; } else if (pausestatus == true){ play(); pausestatus = false; } } shakiko 06-03-2005, 11:48 PM thx lots Marianne 06-04-2005, 07:42 AM you could also change the look of the button, so that it is a 'play' button when it's paused, and a 'pause' button when it's playing. What you do is: you make two mclips containing the graphics you want to use as pause and play button. Place one on top of the other, exactly on top. And in the code, switch the visibility on and off. So say your top button is the pause one, and it's instance name is 'pause_btn'. Then your code would be something like: on (release) { if (pausestatus == false || pausestatus == undefined){ stop(); pausestatus = true; pause_btn._visible = false; } else if (pausestatus == true){ play(); pausestatus = false; pause_btn._visible = true; } } Alex-xl 06-05-2005, 07:40 PM Thx, i have a same question Advertising (in signature) is not allowed |