Flash - Firefox Problem
Hi all,
I know next to nothing about Flash! I know how to put a movie on screen, that is about it.
I have a SWF file that is 280px w x 418px h that I use in one place on my site. I want to use it else where on my site in a smaller size (1/4 scale 140px w x 209px h).
In the codebase parameter I change the width="140" and height="209" and in IE it works perfectly scaling it down to what I want.
BUT, when I load the page in Firefox, it will only display it full size. Can anyone tell me what gives? It sure seems like a "bug" in Firefox/Flash player.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Feb 19, 2006, 17:19
View Complete Forum Thread with Replies
Sponsored Links:
Flash Site Not Working In IE7 But Ok In Firefox(Newbie To Flash Websites)
So i have created a simple 4 page flash site with CS3 as an actionscript 2.0.
My website works just fine in Firefox but does not work at all in internet explorer. Does anyone know if this is a Flash issue or Internet Explorer doing something weird. Feel free to check out my source file on the site.
I created the layout in Photoshop then imported it into Flash. From there all i did was hit publish. Am i missing a step?
The site is here
Any help would be greatly appreciated.
-shawn
View Replies !
View Related
Flash And Firefox Help
Luckly I decided to install Firefox to ensure my websites are compatible with Firefox and IE.
Using the code generated by Flash MX, my title bar and table of contents do not show up. Both of these are done with flash as they will be dynamic as soon as I know everything is compatible.
You can see the site here:
http://www.toadwarrior.com
If you viewit in IE, it should look fine.
In Firefix you should only see the html with no flash showing.
Anyone know why it's doing this and how to fix it?
View Replies !
View Related
Flash In Firefox
Ok, this may have been answered a million times, as I can't be the only person suffering at the hands of flash in firefox. In which case, i'm sorry and can someone just point me in the direction of the appropriate thread.
I've been building a few sites in the same way I always have. 1 Main swf, that loads in external ones for content. This works fine in IE, but on firefox it just ignores the loadMovie commands.
An example of it not working can be seen at www.koruqi.co.uk
Any ideas would be greatly appreciated.
Thanks.
Andy
View Replies !
View Related
Flash & Firefox
I can't seem to get my flash movie to start-up in firefox.
I want the movie to start playing after the html page is fully loaded (ie. after all the jpgs are loaded). I added an onLoad even to the body tag:
onLoad="MM_controlShockwave('title','','Play')"
ie. where 'title' is the id of the object for the flash movie.. which is set to 'false' not play..
This works in IE, Netscape4.7 but not in Firefox?
I updated my Firefox to the latest version 1.06, still no go..
Does Firefox understand the command: MM_controlShockwave?
View Replies !
View Related
Firefox And Flash
In firefox, my site http://www.knoxmachinery.com/new/index.html does not resize, even though the html says 100% width and 100% height...
Is this just me, or does everyone have this problem, and how do I fix it?
Thanks
View Replies !
View Related
Flash/FireFox Bug
Hi everyone,
A part of banner in my app is a small animated flash (v8) right underneath which there is a large table. For some freakish reason, in Fire Fox (not IE) thin black lines appear exactly underneath the flash and only underneath it. The more you scroll the table, the more lines appear.
I am actually a designer , but its up to me to figure out whats wrong or my flash piece will have to be an ugly gif... Does anyone here have any idea if this is a known issue and how to solve it...? Thanks!!!
View Replies !
View Related
Flash In IE And Firefox
Anyone expereice differences while playing Flash in IE and Firefox?
I am working on a book flipping project. Each page flip is a 12 frame-by-frame flash movie, I used a global page number to control which .swf file to load. truning page back is done by embedding a back_control mc in the frames. It works fine in IE turning the page forward and backward, but in firefox, I can only show the page flipping forward, the backward is skipped, no frame-by-frame movie. What went wrong? Could anyone give me some suggestion on what to look for? How can I get this fixed? Thanks!
Here is the link to the project. Thanks!
View Replies !
View Related
FireFox 3 And Flash
Hello
I am currently working a html page that has a FLASH piece embed into it and a div that shows up when an error has occured durring a search request.
The popup works just fine in IE but in Firefox the pop up is showing up under the FLASH. I need it to show up over the FLASH in Firefox.
Ive pasted the code that I am using to embed the flash piece and div tags below.
Can any one see what is going wrong? or point me in the right dirction to figure out why the div is showing up under the flash piece?
Thanks
Code:
<div id=layer1 style="z-index:0; padding:0px;">
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="156" height="100" id="quotes" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/fc/flash/timeupdater.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<param name="bgcolor" value="#ffffff" />
<embed src="/fc/flash/timeupdater.swf" quality="high" bgcolor="#ffffff" width="156" height="100" name="timeupdater" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
HTML Code:
<style>
#errorBubble {
z-index:99999; display:none; position:absolute; top:38;
.top:-74; left:664px;
}
</style>
HTML Code:
<div id="errorBubble" onclick="hidestuff('errorBubble');" >
Div content goes here
</div>
View Replies !
View Related
Firefox And Flash
Hi, My site is published in Flash 2.0 or lower. I have recently installed the latest flash player, but my site doesn't work in Firefox on my mac. I have tested Safari and Opera, and it's okay. Also I have tested Firefox and IE7 on my PC and the site is fine.
Is anyone aware of Flash issues with Firefox? Or is it just my computer?
thanks
-Sean
View Replies !
View Related
Firefox 2.0 And Flash
Hi,
I have a problem, as the header and summary suggest, with the Flash video popping up instead of embedding in the web page. I am not sure what is relevant, but I have Windows Vista - Ultimate, on a brand new Dell XPS 410. The browser is Firefox 2.0 and I just downloaded Flash 9.4.45.0. I also have Flash MX 2004 installed, but am not all that proficient with it.
What do I need to do to get rid of this annoyance?
Thanks in advance,
jake
View Replies !
View Related
Flash And Firefox...
i´m trying to put a flash as a menu inside a html, it was working fine with all most browsers just not for firefox.... i really don´t know what to do any more, i ve tried al the codes that, people trying to help me out post to me but..... i follow with that missing....
if someone could help me i will be really happy!
i put the menu in a web page at www.alexdelrei.com it just show the first set of frame in firefox it is a menu that when you click at the name it just turn the name..... is simple!! the code that i´m using now is:
ps: i´ve got label for the frames: (home, servicios, clientes, acercade and contactar)
Attach Code
and like that for the others.... just changing the value
Attach Code
var url = _root.url;
{
_root.gotoAndPlay(_root.url);
}
and for html:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flash/final.swf", "menu", "100", "475", "6", "#FF6600");
so.addVariable("url", "servicios");
so.addVariable("dummy", "hola"); // this line doesn´´ do anything
so.write("flashcontent");
// ]]>
</script>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flash/final.swf", "menu", "100", "475", "6", "#FF6600");
so.addVariable("url", "clientes");
so.addVariable("dummy", "hola"); // this line doesn´´ do anything
so.write("flashcontent");
// ]]>
</script>
View Replies !
View Related
Flash For Firefox
HELP...does any one have a solution for trying to install flash in Firefox..? Switching from IE, and it only hangs and says it cannot because Firefox is still running... Thanks
View Replies !
View Related
Flash And Firefox
I'm not sure whether this is the right place for this, sorry if it isn't.
I recently installed Firefox because everyone told me it was much better that IE. But I need the Flash Player plugin. However, when I try to install it on Firefox from the Adobe website, it brings up a page saying that the installation has been 'blocked by your Security Zone Policy.'
I haven't a clue what this means, apart from that it won't let me install Flash Player. Does anyone know how I can fix this?
View Replies !
View Related
Flash On Firefox
Hi,
I'm sorry if this topic was talked already.
Can anybody give me a solution to avoid the page being cut when opened on Firefox? Width is fine but the height doesn't show in 100%.
Thanks,
D
View Replies !
View Related
AS/Flash And Firefox
What's up peoples,
My galleries won't display correctly in Firefox. The Flash publish settings are 100% Width/Height, No Scale. Firefox version is 0.9.3. The galleries in question are:
http://chris.crashed.net/slidegallery/slidegallery.html
http://chris.crashed.net/resizegalle...zegallery.html
chris
View Replies !
View Related
Firefox Vs IE, BUT Flash Only ?
Hello people, Im walking into a WEIRD problem about Shared Objects.
I made a flash movie (simple one, just to tell people about the shared object thingy), but there I saw something new, when I look at the swf in FF, the cookie dont work, but in IE it workes 100% perfect.
if you look at http://vintage.sitemasters.be/tutori...itieCookie.swf , in IE or FF, you will see the problem, in IE it remember the position, but in FF it starts back in the middle....
(the text in the swf say "drag the ball, and refresh page")
anyone ? plzzzz.... beqause this is not an m$/other thingy, but 100% flash.
View Replies !
View Related
Firefox And Flash 100%
In IE, it displays fine as a flash file placed in the middle of the screen. However, when I tried to view the same file in Firefox, the flash file got cut off in half and stay at the top of the screen. Anybody knows how to fix this? Thanks in advance.
View Replies !
View Related
Flash Firefox Bug
I have made a photo gallery which works fine in Internet Explorer but in Firefox I have to click on the thumbnails at least twice for them to appear in the main window and sometimes they dont appear at all....
I have heard that there is some sort of bug in firefox with flash. Does anyone know anything about this and how it can be resolved?
aly_ve
View Replies !
View Related
AS/Flash And Firefox
What's up peoples,
My galleries won't display correctly in Firefox. The Flash publish settings are 100% Width/Height, No Scale. Firefox version is 0.9.3. The galleries in question are:
http://chris.crashed.net/slidegallery/slidegallery.html
http://chris.crashed.net/resizegalle...zegallery.html
chris
View Replies !
View Related
Flash/firefox/css Bug?
Hi all, I'm getting a strange bug with a flash file on my webpage when viewing it from a firefox browser on PC only. Anyone ever experienced anything like this:
http://www.senoformalwear.com/indexError.php
I'm not sure whether it's a css or flash issue. I think it's a CSS thing.
Any thoughts?
View Replies !
View Related
Firefox/IE6 Pop-ups From Flash
i've had a look through these forums (and others) and not really found a proper conclusion.
What is the best way of excecuting a popup from flash that doesn't get interfered with by firefox and/or ie6?
The javascript method seems like firefox would knock it out whereas some people seem to be able to get the getURL target:_blank method to work
is there a third option using an html link in a textArea or textField with a target="_blank" as well or is this not supported?
it would be really great to get your experience on this
thanks
obie
View Replies !
View Related
Firefox Vs IE Regarding Flash
I like firefox it has some nice features by default. But it seems with flash it's not so nice, my site that works fine in IE is kind of slow in Firefox, was in Moziila also. I am thinking maybe there is some problems with my site, but i have no errors or jams on IE or in Flash itself, so i am thinking it just browser/player problem. I tried some other sites and saw also some slowdowns, is it browser problem or bad player for FF.
View Replies !
View Related
Firefox & No Flash....
Since firefox is going to run that NYT ad soon, I wanted to let everyone know:
**Firefox does not ship with flash. **
So unless you have an older version of firefox, anyone who downloads FF will have NO flash. not 5, not 6. none.
If they run that ad and get even 1-3% response, think of how many people will be set back....
I know, it will place a crappy install plugin screen, but.... (it makes your design crappy and makes every user have to install flash - which is a hassle for average users)
I think we should be emailing FF to include flash in the ff installer.
The design community, after all, is one of the major supporters of ff and many of us have donated money to the cause.
Flash is important to our community and we should try to have ff implement it.
View Replies !
View Related
Flash In Firefox, And In IE
Hi,
I embeded a small .swf file into www.fiyocom.com
The movie playes in Firefox, and some IE Browsers but most IE browsers it doesnt work in.(my home computer was the only onw where it worked)
Please help.
Thanks
-Amir
EDIT: The problem was fixed. I just lowered the flash version requrment thingy.
View Replies !
View Related
Flash 8 And Firefox Problem. Works Fine In Flash 9 Or IE
Here's the site: http://www.nzography.com/
From feedback I've gotten, it appears that under certain circumstances the first image in a set of images does not load properly, although I haven't seen it myself.
I'm told this happens only in Firefox. And I believe only Flash player 8. Works fine with FF and Flash player 9, or IE with 8 or 9 I believe.
Can anyone out there with Firefox and Flash player 8 confirm this?
Any ideas of why this might be happening? The SWF is published at flash 8.
View Replies !
View Related
Flash, Firefox, And Zindex?
I designed a menu for a webpage and while the menu works great with IE it is having its troubles with the latest version of firefox. Does firefox have the ability to use Iframes and Zindexing?
If you view the site in IE the menu works Site Here
but in Firefox the menu drop buttons dont work.
Is the designer just going to have to tough it out with IE?
(Yes its not a very nice, no need to critique it here)
View Replies !
View Related
Firefox Renders Flash In Odd Way
Can anyone tell me why my latest version of firefox 1.0.2 (the otherwise super browser) has started moving some of my swfs around the page.
I confess I have a thing for 16:9 javascripted popups to display my flash websites but recently some of them have started disappearing in the fire fox browser and jumping to the right making it difficult to see parts of the sites.
Has this happened to you and have you a work around for it?
All help gratefully received,
Cheers
jon 8o)
View Replies !
View Related
Flash Slow In FireFox
Hi.
I've been developing a flash site, and I noticed that it runs slowly in the firefox browser.
It runs full speed (30fps) or about when run alone, or in the IE browser, but for some reason it runs slow only in the firefox browser.
It's a flash-based wensite, per se, so it is crucial that it runs smoothly.
If you have both browsers, please take a look at http://corporate.rg3entertainment.com/ to see what I am talking about and compare between the IE and FireFox browsers. Please note that the site is not finished. Also please note that this is fairly flashy, so it may appear slow anyway on a slower machine.
Because there is a bunch going on, specifically between transitions, I did some testing. One, the background and menu changes color through actionscript, so I took about an hour and changed each to seperate tint tweens, but that didn't make it smoother in firefox. Then I took away the white-text expand/fade out, but that didn't smooth it out either.
Is this a problem with firefox, and how can I fix it?
Thank you.
View Replies !
View Related
Alighnment Of Flash In Firefox
Hi everyone,
If you go to:
www.alfonsosbreakawayglass.com
using Firefox you will see that the homepage alighnment is not working... All you can see is just a part of flash and it's not taking over the whole screen without resizing the main movie... Hoever it works perfectly in Explorer... What am I doing wrong? I've heard there is a fix for it for Navigator... Does anyone know if there a fix for it for Firefox?
Thanks for your time,
Peter
View Replies !
View Related
Firefox Vs Flash WHAT THE HELL
I've got an interesting problem...
I have a radical (maybe not too radical) design concept. The main page is html/css with the "header" being a swf. When you click on one of the content buttons the movie extends itself down over the text/links etc. to present my portfolio.
In IE everything is great, in FF you cannot click on links or highlight text because technically the flash movie is 860x800 and technically covers everything even though in the upright position you can see through the transparent background.
I have it up on my server here:
http://jwinmedia.com/misc/greenTop.html
To see the drop down click on the red w (keep in mind this is no where near complete)
-JWin
View Replies !
View Related
Firefox Hates Flash?
So I have this site in flash, that is put into a html document, and when opened with internet explorer its fine, but with firefox it opens in a a fraction of the orginal size. It also shows a bunch on comments but i have fixed that since. Any ideas on why firefox is being weird?
website: http://ww2.oxford.k12.mi.us/
the script for the load is:
[HTML]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="default" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="default.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#053f80" />
<embed src="default.swf" quality="high" bgcolor="#053f80" width="100%" height="100%" name="default" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>[/HTML]
any ideas would be helpful
-themaimedlord
View Replies !
View Related
Flash & Firefox Problem
On my website I have a page with Flash expanding navigation. It was made using Flash MX.
In Internet Explorer it looks and works fine.
In Firefox it doesn't expand properly and some of the text on the buttons seems to go missing.
Can anyone please tell me why this happens and how to rectify it?
Is it that Firefox doesn't recognize flash correctly?
You can view the page HERE
All help is very much appreciated
View Replies !
View Related
FireFox And Flash Problem
Hey,
I'm trying to use loadmovie to have an image from a URL load into flash. It works great in IE, but when I try it out in FireFox the image doesn't load.
In flash this is the code I use:
IngameImage.loadMovie("http://theurl.jpg");
On the html page:
<object classid="clsid:id_deleted_for_privacy" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="160" id="Name" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://URL.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://URL.swf" quality="high" bgcolor="#ffffff" width="200" height="160" name="Name" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Do any of you know what the problem is?
Thanks!
View Replies !
View Related
Getting Flash To Fit To Screen = A Bug In Firefox?
Hi!
I have a really weird problem, and was wondering if I was doing something wrong. I want my Flash movie to fit to the user's screen (100% width and 100% height). So I go to the Publish Settings and I select "PERCENT" from the drop down box and then I enter 100 for width and height. Easy, right?
Well it works fine when I look at it in Explorer. But in Firefox, it is super small! I think Firefox is interpretting the 100% as 100pixels!
Take a look at it yourself:
http://stonemiller.anchorwave.com/temp/fit_screen.html
First open it up in Explorer. Then open it up in Firefox and see the difference. FYI I'm running Firefox 1.0.4 in Windows 2000.
Is there a work around to this? Does anybody know if this bug happens in other versions of Firefox as well or just my version?
Thanks,
~jlo.
View Replies !
View Related
Flash >5 Not Working In My Firefox
Sorry, I searched the board but it looks like I am the singlemost person having trouble displaying flash content in my firefox. I updated the PlugIn several times but still I am not able to see any flash version 6 and up in my firefox 1.0 (german version)... even with intact object and embed tags ..
maybe the version sucks or whatever, but my clients want me to produce content for this version and I am obviously a) not able to verify or b) not able to produce
any suggestions?
View Replies !
View Related
[F8] Firefox Flash Issue... A New One
I have embedded three Flash objects using the ActiveX fix provided by Adobe (Macromedia). See them at: http://www.shewdesign.com/activeX/te...treatment.html
If you are viewing them in IE, and have the latest FlashPlayer, all three of the Flash movies should work correctly. HOWEVER, two of the three are NOT working correctly when viewed in Firefox.
The first instance of Flash is the little purple button (looks like a Jelly Bean). In IE, the word balloon pops up over the text when you click on it. But it's no longer working in Firefox.
The second instance is a Flash movie that has two frames on the timeline. The first is what you're seeing "Play Now". When you click on that, it moves to the second frame which contains an .flv.
Again, you already know this if you opened it in IE. So why isn't it working in FF?
You can see that it DOES work in Firefox if I embed it the "old" way (post-EOLAS issue) here: http://www.shewdesign.com/activeX/test-notreatment.html
HELP!?!?!?!?!?
Mason
View Replies !
View Related
[F8] Why Is Flash So Slow In Firefox?
I'm still a IE user but sometimes I want to check my designs on firefox as well. But I discovered that firefox is very very very ... very slow when playing a swf.
So hopefully there are some guys who can help me out.
Is it a bug in firefox?
Example: www.ferraridrinks.com - www.diarough.com
thanks
View Replies !
View Related
Flash With Firefox Question
Hi,
I have this problem with a site I'm working on. The site uses frames. There
is a Flash navigation movie at the top frame that loads new pages at the
bottom frame. It works fine with IE but not in Firefox. All links open in a
new window and not at the bottom frame.
Any suggestions?
Thanks
Mark
View Replies !
View Related
Flash Displaying In Firefox
I can't work out why a flash movie can't display at 100% x 100% in the Firefox browser. If place it up the top of the screen it appears all squashed up and if at the bottom it stetches. But it works perfect in Internet explorer.
Below is a screen dump of my property settings in Dreamweaver. This link is my webpage where I'm having the problem with. http://go.hostlite.co.uk/gumleafgames/index.htm
View Replies !
View Related
[F8] Transparent BG In Flash And Firefox?
Is there a way to get a transparent background in a flash movie to actually be transparent in Firefox browsers? I am using (<param name="wmode" value-"transparent" />) along with having "Window Mode" setting in flash set to "Transparent Windowless" and it works great in IE but driving me crazy in Firefox!!! Any ideas?
View Replies !
View Related
[F8] Flash/Firefox Problem
Hey,
Can anyone tell me the cause/solution of this problem I am having?
When a user visits my page in Firefox (even sometimes in IE) and scrolls down, the "Over" state in all of my flash buttons stops working until they are clicked on. To see where I am having the problem please visit: http://www.newfoundlandlabrador.com/
You will notice this problem occuring in the boxes with the black and white pix in them (ie Breathe Easy, Eye to Eye...etc)
Thanks for any advice!
View Replies !
View Related
Flash Won't Work In Firefox...Help
I made a survey in Flash that, after publishing, uses an AC_RunActiveContent.js script. It works in IE, Safari, and Opera, but NOT Firefox.
I can't figure out how to fix this? Why does Flash export this .js file anyway? Can anybody help?
Here's the link:
http://raylee.net/flash/test.html
Here's the external .js script:
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}
return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv" ) != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1];// "2,0,0,11"
versionArray = tempString.split(",");// ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
}
}
return false;
}
}
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/?/, ext+'?');
else
return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs)
{
var str = '';
if (isIE && isWin && !isOpera)
{
str += '<object ';
for (var i in objAttrs)
{
str += i + '="' + objAttrs[i] + '" ';
}
str += '>';
for (var i in params)
{
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
}
str += '</object>';
}
else
{
str += '<embed ';
for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';
}
str += '> </embed>';
}
document.write(str);
}
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
}
View Replies !
View Related
|