how to make a start/stop button for a swf to play in dreamweaver
I have a video that I created in Adobe Premiere and exported as a avi then compressed to a swf in Sorenson Sqeeze. My problem is that I'm trying to figure out a way to add some sort of start/stop control button to the video when I bring it into Dreamweaver. Since it's a swf (published file) I can't bring it into Flash to modify it. As it is right now, the movie clip (swf) plays as soon as you open the web page. So, my question is: Is there a way to control the clip with a start/stop button?
Last edited by Mikester311; 07-03-2003 at 12:59 AM.
you can import your swf file into flash, and make a movieclip out of it, then make a button that will make that moviecip stop() or play().
post back if you need more details.
Yes, I need more details.. I tried to import the swf as a mc, but it comes in as blank frames. Also, I'm learning but I'm pretty new to actionscript, so can you help with the start/stop code?
Thanks a million!
to import, start a new flash movie..
Open your library and create a new symbol. Then, chose File->Import. Select the swf you want to import.. It should show up in the new MC you made.. If it is several frames, you may need to add frames to the new MC to accomodate the size...
Anyway after you have done this, then you can place an instance of this new MC containing the old swf onstage, giving it an instance name.. lets say myMovie for the sake of this example.
Now, for your buttons, just use the approriate code for what you want..
one more thing, you'll need to add one blank frame to the beginning of the MC containing the swf file, and add a stop() action to the first frame.
//and for the stop button
hope this helps
Great! Thanks! I'll give it a shot.
You might try this one
There is a movie that adds movies. Haven't tried it yet.
The possibilities are endless.
Click Here to Expand Forum to Full Width
Poll by Flashkit.com