SWF Video Player

1 Star2 Stars3 Stars4 Stars5 Stars (14 votes, average: 4.43 out of 5)
Loading ... Loading ...

This new component will give your viewers the ability to control the animation in your SWF movie just like they would any other video file.  This can be used for presentations in a slide show format, video embedded into your movie, or any other animation on a single timeline.  You can customise the look and feel of the component by changing its color scheme and hiding certain buttons.

This component will be included in a future installer of SWiSH Max2 and SWiSH miniMax2, but for now please download this component here – swishzone_simplevideo_swf

You can also download the source (SWI) file for the example displayed above, here – simplevideo_swf_demo.

Unzip the files into the components folder in your SWiSH Max2 or SWiSH miniMax2 program folder.  Unless you changed the default installation folder, the file path would typically be:

C:\Program Files\SWiSH Max2\components\
or,
C:\Program Files\SWiSH miniMax2\components\

If you are running Max2 (or miniMax) when you copy the component, you may need to refresh the component tree by right clicking on the tree in the Components panel then selecting ‘Reload’.  To use the component, simply drag it into your movie.

Important

Due to the way frame numbers are calculated in movies that contain more than one Scene, it is best to use this component inside a MovieClip or in a movie that has only a single Scene.

Note:  This controller can be used in a movie with multiple Scenes; however, you will need to do some manual calculations and adjust the Start Frame and End Frame parameters. For example … if you have 2 Scenes in your movie, each containing 100 frames, even though the Timeline panel shows the Frames numbers 1-100 on the ruler for the second Scene, the Flash Player actually considers those to be frames 101-200.  So, if you specified ‘1′ as the Start Frame and ‘100′ as the End Frame, the component would actually jump back to the first Scene rather than controlling the second Scene.

Usage Instructions

Open the Components panel and navigate to Multimedia -> SWF Controls, then drag this component onto the Stage or into a MovieClip.  Select the SimpleVideo_SWF MovieClip in the Outline, then open the Parameters panel to configure the controls.

1)  Enter a numerical value in the Start Frame field to specify the first frame that the controls will monitor.
2)  Enter a numerical value in the End Frame field to specify the last frame that the controls will monitor.

Note:  You can enter a value of -1 (negative one) in the End Frame field if you want it to monitor up to the final frame in the timeline.

Note:  If you do not want the controls to appear until the movie reaches the defined Start Frame, then you will need to hide/show it manually (either by adding a Place/Remove effect in the timeline, or by changing the _visible property for the component MovieClip).

The example file linked at the top of this post will show how to deal with both notes listed.

 I hope you enjoy using this component, and please post comments or questions if you need assistance.

 

Parameters

Parameter Description
General Settings Group: General Component Settings
Control Width The width of the controls.
Start Volume The starting volume level.
Start Frame The frame number which the controls will consider as the first frame
End Frame The frame number which the controls will consider as the last frame (a value of -1 can be used to select the last frame in the timeline)
Control Colors Group: General color settings for the control bar.
Top Color The color at the top of the control’s back.
Bottom Color The color at the bottom of the control’s back.
Border Color The border color for the control’s back
Corner Radius Settings Group: The radius of each corner on the main body of the controls
Top-Left Radius The radius of the top-left corner. Note: This value will not exceed half the distance of the shortest side.
Top-Right Radius The radius of the top-right corner. Note: This value will not exceed half the distance of the shortest side.
Bottom-Right Radius The radius of the bottom-right corner. Note: This value will not exceed half the distance of the shortest side.
Bottom-Left Radius The radius of the bottom-left corner. Note: This value will not exceed half the distance of the shortest side.
Button Colors and Settings Group: Colors and settings for the control’s buttons
Show Stop Button? Determines whether or not the stop button is visible.
Show Volume? Determines whether or not the volume control will be visible.
Up Color The color of the button in the up state (mouse not over).
Over Color The color of the button in the over state (mouse over).
Down Color The color of the button in the down state (mouse press).
Track Colors and Settings Group: Colors and settings for the seek slider track
Track Color Color for the seek slider track and volume control track.
Border Color The color of the border surrounding the track.
Progress Bar Color The color of the progress bar (showing the current play time or current volume level).

Methods

Method Description
StopVideo() This function stops the timeline and rewinds it.
PlayVideo() This function resumes playback of the timeline.
PauseVideo() This function pauses the timeline.

Tags: , , , ,

4 Responses to “SWF Video Player”

  1. Val says:

    Many, many thanks for this component… very usefull.
    All the best

  2. Vern Vetter says:

    Thank you SWiSH Guru’s… Have been trying to do this for the past two days…. Guess all you got to do is read the Blog, huh??

    Really appreciate this effort.

  3. Len B says:

    Great component! I do have one question:

    I note that if I let the movie play all the way to the end and then immeditaely attempt to scrub the movie without restarting it, the scrubber seems to lose some functionality. Namely, when I drag the scrubber to the left and release it the movie does not pause: it continues to play back to the end. Is there a way to get the scrubber to pause the movie at all times when it is released?

    Thanks for yet another valuable component!

  4. Tim S says:

    This is a great plug-in and very much needed so thank you. I do have a question – Can this work if you are loading an external .swf and wish to have the player control the external .swf within the parent .swf? I have a series of .swf external files that I currently load into a parent .swf and want to have a player at the parent level that can control any of the external .swf files that I load in without having to put a controller on each and every external file. Any suggestion would be greatly appreciated.

    Tim