marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

handling flash events in javascript #235

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using swfobject.js 1.5 on Firefox. I am pretty lost at 
1. What events are available in a flash player for the browser?
2. How do we handle them in javascript ?

Here is my html code:
<div id="resources_player">You Require Adobe Flash Version 8 or greater to
view this video.</div>
<script type="text/javascript">
                var s1 = new
SWFObject("/assets/player.swf","ply","550","450","8","#FFFFFF");
                s1.addParam("allowfullscreen","true");
                s1.addParam("allowscriptaccess","always");

s1.addParam("flashvars","file=/assets/videos/one.flv&image=/assets/thumbnails/on
e.jpg&skin=/assets/stylish.swf");
                s1.write("resources_player");               
            </script>
            <noscript>
                Sorry, version 8 and higher of the Flash plugin is required
to view
                this video. Please <a
href="http://www.adobe.com/go/getflashplayer"
                target="_blank">click here</a> to download the latest Flash
plugin. 
            </noscript>

Now, when the first movie gets finished, I would like to update the
flashvars file & image using javascript. 

Hours of googling left me with actionscript event handlers. But what I need
is javascript event handler.
Any help appreciated. thanks in advance. A code example would be more
explanatory.

regards,
venkat

Original issue reported on code.google.com by bagam.ve...@gmail.com on 9 Dec 2008 at 11:49

GoogleCodeExporter commented 9 years ago
This issue list is SWFObject 2+ only, ans is also to report bugs only, not for
authoring questions.

Original comment by bobbyvandersluis on 9 Dec 2008 at 11:55