PDA

View Full Version : How to put a swf file on my webpage with play button??


curious_me
06-20-2007, 07:45 PM
I have this swf file that I want to play on my website, and it does that. However it just plays the video it doesn't give you the option to pause if it you want to walk away. Is there anything I can do to make it play? I am currently using Dreamweaver MX and I have been trying lots of codes to get it to work but no matter what i try i never can get a play button to show. I don't know what i am doing wrong. can anyone help?


<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="505" height="351" align="middle" title="race">
<param name="movie" value="../../video/VTS_01_1.VOB.SWF" />
<param name="quality" value="high" /><param name="LOOP" value="false">
<embed src="../../video/VTS_01_1.VOB.SWF" width="505" height="351" loop="false" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>

this is where it resides right now http://www.norfield.com/html/doormachinery/5000video.htm

thanks in advance. and sorry if this has already been posted.

_Aerospace_Eng_
06-20-2007, 09:56 PM
Where did the video come from? What format was it in before you put it in flash?

ahref
06-20-2007, 11:06 PM
do you have the unpublished version you could add a play button inside that?

curious_me
06-22-2007, 11:31 PM
The video was made for our company. I don't have the original. It was VOB format before I turned it into swf.
Is there anything i can do with this?
Thanks

ahref
06-23-2007, 01:14 AM
you turned it into a swf so you must have the .fla then. open the .fla place a keyframe before the video make a button and give it the actions

on(release){
nextFrame();
}
put stop(); in the first frame

_Aerospace_Eng_
06-23-2007, 01:36 AM
What did you use to convert it? If you were able to get the original then yes something could be done but without it at most you could create a flash file that loads the movie but you won't be able to pause it. You would only be able to play or stop where stop would take you back to the beginning.