Link to home
Create AccountLog in
Avatar of kentcommunications
kentcommunications

asked on

Setting up Javascript Flash video controls

I have a flash video that I want to be able to control using Javascript, but I have very limited experience with Javascript and Actionscript. I've done a lot of searching online and I've found lots of pieces of semi-working code but I can't get any of these pieces to be implemented into my test page (no code except the embed).

Where do I start? Do I need to add code to the flash file as well as the page?
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','570','height','210','title','test','src','video/kentcomm11','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','video/kentcomm11' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="570" height="210" title="test">
  <param name="movie" value="video/kentcomm11.swf" />
  <param name="quality" value="high" />
  <embed src="video/kentcomm11.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="570" height="210"></embed>
</object></noscript>

Open in new window

Avatar of wmadrid1
wmadrid1
Flag of Colombia image

Hi,
I can recommend you a free web video player,
http://www.viscomsoft.com/products/webplayer/index.html

Easy setup, multiple video formats, free single user lincense.
ASKER CERTIFIED SOLUTION
Avatar of Justin Mathews
Justin Mathews

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of section25
section25

Well, I guess this begs the question, why are you trying to control a flash based video player with javascript, when you could easily control it with actionscript from within flash?