Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flash Player on osCommerce


Guest

Recommended Posts

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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????

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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"....

  1. There is noplug-in detection.
  2. With changes from the Eolas patent dispute, users will have to first click on your Flash content to ‘activate’ it before interacting with it.
  3. 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

Link to comment
Share on other sites

Well, I wouldn't call it "perfect"....

  1. There is noplug-in detection.
  2. With changes from the Eolas patent dispute, users will have to first click on your Flash content to ‘activate’ it before interacting with it.
  3. 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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...