Guest Posted August 25, 2008 Posted August 25, 2008 Dear Friends... I'm trying to place an Flash Player on my osCommerce store using for that the Newsdesk contribution... The problem is on Firefox i don't have any problems but if i tri IE6 or IE7 this lines of code don't work and nothing happens... Any one can help on this??? To run the Flash Palyer on Firefox and IE I'm using the code desceibed bellow... <p id='preview'>The player will show in this paragraph</p> <script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script> <script type='text/javascript'> var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf','player','400','300','9'); s1.addParam('allowfullscreen','true'); s1.addParam('allowscriptaccess','always'); s1.addParam('flashvars','file=http://www.kartunes.online.pt/videos/video_player/exp1.flv'); s1.write('preview'); </script>
Guest Posted August 25, 2008 Posted August 25, 2008 Are you using swfobject 2? Looks like your missing some theings. Google swfobject 2 and read the documentation. It shows you exactly what you need to do for both static and dynamic install. Looks you are trying the dynamic install so check that.
Guest Posted August 28, 2008 Posted August 28, 2008 I'm trying to insert this on Newsdesk contribution... The code below works on Firefox but not in IE, on IE give me an error on Left lower corner -------------------------------------------------------------------------------------------------------- <p id='preview'>The player will show in this paragraph</p> <script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script> <script type='text/javascript'> var so = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf','player','400','300','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('flashvars','file=http://www.kartunes.online.pt/videos/video_player/exp1.flv'); so.write('preview'); </script> The code below works very well on IE but not on Firefox ---------------------------------------------------------------- <object type="application/x-shockwave-flash" data="http://www.kartunes.online.pt/videos/video_player/swfobject.js" id="player" height="400" width="500"> <param name="allowScriptAccess" value="SameDomain"> <param name="movie" value="http://www.kartunes.online.pt/videos/video_player/player.swf"><param name="quality" value="high"> <param name="scale" value="noScale"> <param name="wmode" value="transparent"> <param name="menu" value="false"> <param name="allowfullscreen" value="true"> <param name="flashvars" value="file=http://www.kartunes.online.pt/videos/video_player/exp1.flv","single"> <param name="image" value="http://www.kartunes.online.pt/pt-kartunes/ffmpeg_image.php?file=exp1.flv&time=00:0:05&browser=true"> </object> Any ideas to solve this problem????
Guest Posted August 29, 2008 Posted August 29, 2008 I'm trying to insert this on Newsdesk contribution... The code below works on Firefox but not in IE, on IE give me an error on Left lower corner -------------------------------------------------------------------------------------------------------- <p id='preview'>The player will show in this paragraph</p> <script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script> <script type='text/javascript'> var so = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf','player','400','300','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('flashvars','file=http://www.kartunes.online.pt/videos/video_player/exp1.flv'); so.write('preview'); </script> Which version of swfobject are you using, swfobject or swfobgect2? Do you have the flashobject.js called in your head section? That is the file that displays the above code. The code below works very well on IE but not on Firefox---------------------------------------------------------------- <object type="application/x-shockwave-flash" data="http://www.kartunes.online.pt/videos/video_player/swfobject.js" id="player" height="400" width="500"> <param name="allowScriptAccess" value="SameDomain"> <param name="movie" value="http://www.kartunes.online.pt/videos/video_player/player.swf"><param name="quality" value="high"> <param name="scale" value="noScale"> <param name="wmode" value="transparent"> <param name="menu" value="false"> <param name="allowfullscreen" value="true"> <param name="flashvars" value="file=http://www.kartunes.online.pt/videos/video_player/exp1.flv","single"> <param name="image" value="http://www.kartunes.online.pt/pt-kartunes/ffmpeg_image.php?file=exp1.flv&time=00:0:05&browser=true"> </object> Any ideas to solve this problem???? The above code does not work in Firefox because you do not have the <embed> tag.
lindsayanng Posted August 29, 2008 Posted August 29, 2008 there is a code generator if you go to googlegroups.com and search swfobject. It will create the code for you. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
bkellum Posted August 29, 2008 Posted August 29, 2008 The method described in the following link is a rock solid approach: http://blog.deconcept.com/swfobject/ Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Guest Posted September 3, 2008 Posted September 3, 2008 I Found the solution with the code below... 100% perfect on IE and Mozilla... <p align="center"> <embed src="http://www.kartunes.online.pt/videos/video_player/player.swf" width="352" height="288" type="application/x-shockwave-flash" flashvars="&file=http://www.kartunes.online.pt/videos/video_player/2xDD1008.flvℑ=arjun.jpg&frontcolor=0xFFFFFF&backcolor=0x000000&overstretch=true&lightcolor=0xFFFF00&autostart=false&usefullscreen=true" allowfullscreen="false" loop="False" align="middle"> </p>
bkellum Posted September 4, 2008 Posted September 4, 2008 I Found the solution with the code below... 100% perfect on IE and Mozilla... <p align="center"> <embed src="http://www.kartunes.online.pt/videos/video_player/player.swf" width="352" height="288" type="application/x-shockwave-flash" flashvars="&file=http://www.kartunes.online.pt/videos/video_player/2xDD1008.flvℑ=arjun.jpg&frontcolor=0xFFFFFF&backcolor=0x000000&overstretch=true&lightcolor=0xFFFF00&autostart=false&usefullscreen=true" allowfullscreen="false" loop="False" align="middle"> </p> Well, I wouldn't call it "perfect".... There is noplug-in detection. With changes from the Eolas patent dispute, users will have to first click on your Flash content to ‘activate’ it before interacting with it. It is not valid HTML or XHTML Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Guest Posted September 4, 2008 Posted September 4, 2008 Well, I wouldn't call it "perfect".... There is noplug-in detection. With changes from the Eolas patent dispute, users will have to first click on your Flash content to ‘activate’ it before interacting with it. It is not valid HTML or XHTML We can only point out the swfobject 2 method so many times before we have to give up. :D
Guest Posted September 4, 2008 Posted September 4, 2008 We can only point out the swfobject 2 method so many times before we have to give up. :D So what you suggest??? I'm allways interested on improvements.... When i say perfect, is without any error on IE or FF... Using the contribution newsdesk i only need to copy and past the code inside the form and i see the movie on IE or FF...
Guest Posted September 4, 2008 Posted September 4, 2008 So what you suggest??? I'm allways interested on improvements.... When i say perfect, is without any error on IE or FF... Using the contribution newsdesk i only need to copy and past the code inside the form and i see the movie on IE or FF... Read up on swfoject 2 and how to use it to insert your .swf files. SWFObject 2
Recommended Posts
Archived
This topic is now archived and is closed to further replies.