So what is happening right now? The code above looks ok on first glance. Does your swf have a js / ExternalInterface method defined called "playVideo()" ?
On Sat, May 26, 2012 at 7:04 PM, Arnaud <arn...@smartsy.us> wrote: > Hi > > I am trying to have an HTML link that allow the user to switch on/off > the audio of the videos shown on the home page. Is it possible? If so > what would be the adequate code? > > The current code I am using to call the different videos is the one > below: > [ > var flashvars = { > xml:'../swf/xml/data.xml' > }; > var params = { > menu: "false", > scale: "noScale", > allowFullscreen: "true", > allowScriptAccess: "always", > bgcolor: "", > wmode: "transparent" // can cause issues with FP settings & > webcam > }; > var attributes = { > id:"flash_content" > }; > swfobject.embedSWF( > "../swf/smartsy.swf", > "flash_content", "256px", "381px", "10.0.0", > "../swf/expressInstall.swf", > flashvars, params, attributes); > > function playVideos(_id) { > if(!userAgent.match(mobile)){ > > document.getElementById("flash_content").playVideo(_id); > } > > } > ] > > > You can find the current page in dev here: > http://184.73.230.170/en/index.html > > Thanks in advance for your help. > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to swfobject@googlegroups.com. > To unsubscribe from this group, send email to > swfobject+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to swfobject@googlegroups.com. To unsubscribe from this group, send email to swfobject+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.