Hi guys, I was wondering if you could help me with a problem I'm experiencing with cross-browser compatibility.
It recently occured to me to test something I've been working on in Internet Explorer, and, to my dismay, despite working fine in Opera and Firefox, Internet Explorer simply failed.
My problem is passing variables via HTML into a Flash movie. Originally I'd been using:
and this worked great for both Opera and Firefox. But as aforementioned Internet Explorer simply fails to load the movie.Code:src=moviename.swf?varname=stuff
I've since fiddled about with various methods, from trying some Javascript found on the Adobe knowledge base to trying to use a FlashVars parameter:
These gave me mixed results; ranging from simply not indicating that there was a movie at all, to playing the movie but not loading th variables in.Code:<param name='FlashVars' value='varname=stuff'>
If anyone has a method that actually works on Internet Explorer and Firefox I would greatly appreciate their help.
Thanks anyway, but I just found a solution.
The problem wasn't so much that Internet Explorer wasn't accepting this method of passing variables; it was that it refused to display the swf without this code in the <object> tag:
Guess it was pretty stupid of me to jump to the conclusion that Internet Explorer was not accepting the movie/variables.Code:classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
Apologies for the useless thread, please feel free to delete it.
Hey there,
For embedding flash files in HTML, I recommend using some JavaScript called swfObject.
deconcept › SWFObject: Javascript Flash Player detection and embed script
It will automatically enable activeX controls so users do not have to click the flash files in order to active them.
Sincerely,
Travis Walters
spammy sig deleted
That suggestion of Walters seems like it would work. One time I had a major problem with my site where it worked fine in Firefox but not at all in Internet Explorer. Interesting, aye?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks