Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flash and IE vs FireFox


jsisson01

Recommended Posts

Posted
I've figured out how to set some flash into the main page, but now that I test it in IE6, it doesn't seem to want to work, but in Firefox, all is well. I know I'm missing something because of the difference in the Engines, but that's as far as I've gotten.

 

http://www.sibasindustrial.com/catalog/

thanks

 

I really don't know but just to let you know that it's not a version flash player problem. I've upgraded from 9.0.28 to 9.0.45 and I'm still unable to see it... Of course Firefox is working fine.

Posted
yeah, it's not an IE version issue either because it doesn't work with IE6 or IE7.

 

I tried to mean Flash Player version ;)

Posted

Problem with that code is it's applying to a banner, whereas my flash is embedded into the main page. Also, I don't get that active x activation issue. Which is slightly odd. I'll see what I can do about modifying that java though.

Posted

Well, I tried it out, the <iframe></iframe> tags do work, but it doesn't accept any of my parameters like no loop and such.

Posted

Warning: I am able to write to the configuration file: G:\Sibas\catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

Posted

yeah, I know, but I'm leaving it open for demo purposes, the site isn't live yet, and I've got enough backups for it. Any info pertaining to the post?

Posted

hmm, this must be a new one, I've tried a few things stated in other posts, but nothing seems to work as well. Hope somebody out there has some kind of fix for this.

Posted

its probably something wrong with the path you wrote, FF and IE doesnt use the same code.

 

FF use the embed code to make the flash object and the IE browser use the other one, check if they are the same and after that you should install some activate flash javascript like "swfObject.js"

Posted

The swfobject you posted didnt even work, otherwise it wouldnt say testing. you have to link to the exact place where the javascript is.

Posted

and I did, but it won't go through no matter where I put it. Just keeps saying SWFObject not found. I've followed posted directions as well as trying some other possibilities that I could think up, but no matter what I try, it still pulls up the same thing.

Posted

Well, it seems the site works fine if I keep the flash out of the php.

 

I know about the IE and Firefox engines being different, but why does IE work fine if I keep the flash object out of the php?

 

I'm going to try some other things on a dev machine. Will keep things posted if I find anything to see if it helps anybody else.

Posted

doesn't seem like anything is working, if I input the javascript, the file doesn't display at all, even if I do remove it from the php code, but if left in the original <object><embed> code it will display, just not in IE

 

there's gotta be somebody out there with an issue like this

Posted

Ok - I use swfobject on my site - it works just fine in all browsers. I'm gonna try and make this concise, remember your individual environment may be different, but the concept is the same.

 

I use STS template, so I'm gonna explain it that way.

 

in my template sts_template.html (this could be your own page, index.html etc.)

 

I have this in the head tags:

 

<script type="text/javascript" language="JavaScript" src="js/functions.js"></script>

 

All this is doing is pointing to a .js file that has the swfobject javascript put in it

 

Contents of functions.js: sorry to not put in someone elses code, I do not know if this is cool or not to put this here so I left out all the code. Just do not want this post deleted - if you need the whole thing, just message me.

 

/**
* SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
*   legal reasons.
*/

PLUS ALL THE SWFOBJECT CODE (NOT LISTED) approx 128 lines of code

 

Then on your page, somewhere inside the structure: (this should be fine, since I'm illustrating the use)

 

<div id="flashcontent00" class="leftFloatFlash">
	<strong>You need to upgrade your Flash Player</strong>
	This is replaced by the Flash content. 
</div>
<script type="text/javascript">
	// <![CDATA[
	var so = new SWFObject("<?php echo DIR_WS_IMAGES . '/swf/navigation.swf'; ?>", "flashNav", "100%", "100%", "7", "#FFFFFF");
	//so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
	so.addParam("quality", "high");
  		so.addParam("wmode", "transparent");
			so.addParam("swliveconnect", "true");
	so.addParam("AllowScriptAccess", "sameDomain");		
	so.addParam("scale", "noscale");
	so.write("flashcontent00");
	// ]]>
</script>

 

If you look at this, this should give you your swf on any web browser. I have tested this with MX, MX 2004, and Flash 8.

Also, tested with flash player, 7,8,9 - do not know about previous versions.

 

If you are using IE6 and have upgraded to IE7 you my have a common bug, the flash player updates in Firefox/safari etc, but defaults to a lower version in IE, so just to be safe, uninstall your flash player in IE and reinstall with the newest one.

 

remember:

var so = new SWFObject("<?php echo DIR_WS_IMAGES . '/swf/navigation.swf'; ?>", "flashNav", "100%", "100%", "7", "#FFFFFF");

means you are asking swfobject to not allow anything under flash version 7 (in this example), so you may need to change this.

 

 

Also, if you are using a newer version of flash, you need to make sure you have your Security settings in Flash set properly.

 

Actionscript code:

System.security.allowDomain("your info here");

 

That's what I do, and I add in swf's all over the place, banners whatever this should work. I hope that helps!

Nothing unreal exists

Posted

I was trying to do this in the english/index.php file doing a straight edit, what I don't understand is why the java seems to be working, but won't display the image. I haven't installed STS yet, but it was going to be my next attempt. Thanks for the info

Posted

that's the problem - english/index.php isn't meant to work like you are think - IMHO.

 

Now that I look, I have my swf's in the main catalog/images

 

and the files that have the swfobject are

 

catalog/

Nothing unreal exists

Posted

I believe I've found a work around, it seems IE won't allow an embedded object within the php to display.

 

I've installed STS on a dev machine and put through the straight object/embed code without any javascript and it seems to work fine, I'll see what it does to the main system.

 

What's odd though, is that I pushed the object/imbed code into the php code anyways, because with STS, I needed to edit the $content# file which is the english/index.php, which is what I was doing in the first place. I think what this does is makes IE think it's just HTML still, while the PHP script is being run below the HTML.

  • 2 weeks later...
Posted

Try this

http://www.oscommerce.com/community/contributions,5110

 

I have it working for all of the objects and passing params to it is no problem. Flash/applets/swf ect..

the problem is the way IE6 and 7 manage the content after the legal issues.. so they have a patch that updates your

IE to give you problems.. or just to satisfy the legal grounds your pick.. But this does work, check the examples for

passing parms to your java, flash, swf, ect... I have it working one of my sites i am "re-working." www.allensbayou.com

 

Good luck.

It's not a beer gut, it's padding for my rock hard abs!

Archived

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

×
×
  • Create New...