SWiSHzone.com Support Forums Home

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> New Component: pauseMyMovie, add a pause at any frame OR add controls to movie
browndrake
post Apr 19 2009, 08:34 PM
Post #1


Advanced Member
***

Group: Members
Posts: 2597
Joined: 18-January 04
From: usa
Member No.: 7630



pauseMyMovie 1.0

This component is meant to make it easy to add a 'timed pause' to your movie (all timelines) or to any of your movieClips (individual timeline). OR, you can choose to have controls that will stop/start, with buttons, either all the timelines in the movie, or the timeline of any one movieClip.

It is compatible with sm2 (official release+) and with current pre-release builds swishMiniMax2.

..............................
Note: For those that have never used components before: save the swi to the components folder inside of the SM2 folder(where sm is installed on your system). After saving a swi in the components folder it becomes accessible from the components tab within swishmax. You only then need to drag and drop it onto the stage.

Parameters include:

Controls?....Select true if you want stop/start buttons.
Scope.........Do you want the pause applied to the whole movie or just a specific movieClip?
Delay..........How long do you want the movie paused? (time in seconds)

Instructions:

1. Before even dragging component onto the stage, decide if you want it for the whole movie or for one specific movieClip.
2. If for one specific clip, then drag and drop it into that movieClip. If for whole movie, you can drop it anywhere in the movie.
3. Select to use controls or not. (If you use controls, then the time delay is immaterial, as all restarts must be with button.)
4. Set how long you want the movie/movieClip paused for.
5. If you chose to not use controls you must add the following code to the frame where you want the pause:

CODE
pause.pause()

example: I want a 5 second pause (without using a stop button) when my movie/movieClip gets to frame 25. I will set parameters to: Controls?..False, Scope..wholeMovie, delay..5. I will put on that timeline:

CODE
onFrame(25){
     pause.pause()
}


Here is an example. In the example, there is a three second pause (pause of whole movie) that is called on the 19th frame of the main timeline. ()

NOTE: If you choose to use controls, you can customize them as much as you want and place them wherever you want, on the stage. To customize the controls: expand the controls mc and expand the buttons. You can then change texts, shapes, etc. You can also add other button states.
................
Anybody is free to use as they wish. Comments and suggestions are welcome.
Please post any improvements you make.
................

Enjoy,

aaron
Attached File(s)
Attached File  pauseMyMovie.swi ( 11.05K ) Number of downloads: 70
 
Go to the top of the page
 
+Quote Post
ancientdust
post Apr 20 2009, 01:35 AM
Post #2


Advanced Member
***

Group: Members
Posts: 484
Joined: 16-December 04
From: Israel
Member No.: 16216



hi aaron.
Looks interesting and a nice idea...
Will have to look further into it.
Thanks for sharing :-).


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 02:23 PM