So I did some basic testing and this is what I found. If the code is included inline the way that the original poster has on his linked page, then the AutoShowHide method IS in fact necessary to see the Flast content in FF3.5.
However, if I include the register code in the <head> of the document, then the Flash renders just fine. My guess is that a race condition is introduced by not putting the swfobject.register in a domready sort of function (not sure if it tries to do that internally). Or maybe it's just a strange rendering issue with FF3.5 (since this doesn't occur in other versions of FF via hearsay). In any case, I was able to create a quick demo where I cut and paste the code from the original posters website and reproduced his issue of a flash movie not being visible/rendering properly. Hope this clears up the confusion. Original Poster, try moving your swfobject commands to the <head> portion of the file and then comment out your switchOffAutoHideShow() call. I think you may find that things work in that situation. Best, Vincent On Tue, Jul 21, 2009 at 8:52 AM, Vincent Polite < [email protected]> wrote: > This is true, and generally better scripting practice (putting your script > in the head). You should also make sure that you execute > switchOffAutoHideShow() before any swfobject register. Putting both in the > head is preferable as a result. One of the key benefits to "swapping" code > like swfobject is the ability to separate your content from your scripting. > If you ARE going to insert your code inline, I would suggest that you do the > swfobject references AFTER your relevant objects and divs get loaded, not > before. > > Vincent > > Q: Does the generator generate the inline script like this? If so, it > should probably be updated. > > > On Tue, Jul 21, 2009 at 8:46 AM, Getify Solutions, Inc. > <[email protected]>wrote: > >> The "registerObject" code calls should be in the head of your document, >> not inline in the body. >> >> --Kyle >> >> >> >> >> *From:* Vincent Polite <[email protected]> >> *Sent:* Tuesday, July 21, 2009 10:35 AM >> *To:* [email protected] >> *Subject:* Re: Firefox Flash item invisible >> >> Link is here if you haven't checked yet, Kyle >> >> See link http://www.bam-sa.co.za/ >> >> Vincent >> >> On Tue, Jul 21, 2009 at 8:09 AM, Getify Solutions, Inc. <[email protected] >> > wrote: >> >>> >>> You haven't provided a link, so I can't see, yet. >>> >>> It's possible your problem is that the SWF you're trying to load doesn't >>> get >>> the proper stage size. We've had a number of people with issues about >>> this. >>> >>> Or it could be something else particular to your SWF. >>> >>> But in fact, the static SWF loading does work in FF, so you shouldn't >>> need >>> to use extra API functions to hack it to work. >>> >>> This function in fact is used to control/prevent the flicker that some >>> people see where the alternate content shows for a brief snap before the >>> SWF >>> content shows up. Our code doesn't have any functionality that leaves a >>> SWF >>> totally hidden even after embed, as you seem to be trying to use this >>> function to undo. >>> >>> So, if your SWF is loading but not showing, there's another problem and >>> we >>> can troubleshoot it if you want to post a link. >>> >>> But, I just didn't want misinformation about this function be the cure >>> for >>> this problem, because that's improper usage. >>> >>> You can read our documentation for a more detailed explanation of the >>> purpose of the function in question. >>> >>> >>> --Kyle >>> >>> >>> >>> -------------------------------------------------- >>> From: "Buglish" <[email protected]> >>> Sent: Tuesday, July 21, 2009 9:54 AM >>> To: "SWFObject" <[email protected]> >>> Subject: Re: Firefox Flash item invisible >>> >>> > >>> > From the link you can see I used the sample text exactly. >>> > Only when I used Firefox the flash object was invisible. The only way >>> > I could get it to work was to add the switchOffAutoHideShow(); >>> > function. >>> > >>> > What is the real functionality of this function? >>> > >>> > On Jul 15, 5:32 pm, Buglish <[email protected]> wrote: >>> >> See linkhttp://www.bam-sa.co.za/ >>> >> >>> >> On Jul 15, 4:55 pm, "Getify Solutions, Inc." <[email protected]> >>> wrote: >>> >> >>> >> > This is incorrect information. You must have something wrong in the >>> >> > code you >>> >> > are using. That function is for a different purpose, and should not >>> be >>> >> > used >>> >> > in the way you are describing. It actually refers to the alternate >>> >> > content >>> >> > visibility, not the flash swf object visibility. >>> >> >>> >> > If you want to post some code here, or better yet, a link, we can >>> >> > probably >>> >> > spot the issue pretty quickly. >>> >> >>> >> > --Kyle >>> >> >>> >> > -------------------------------------------------- >>> >> > From: "Buglish" <[email protected]> >>> >> > Sent: Wednesday, July 15, 2009 9:25 AM >>> >> > To: "SWFObject" <[email protected]> >>> >> > Subject: Firefox Flash item invisible >>> >> >>> >> > > Just using the example for static insert results in the flash item >>> >> > > being invisible for only Firefox browsers. >>> >> > > After lots of searching and reading though the API I tried using >>> the >>> >> > > swfobject.switchOffAutoHideShow(); >>> >> > > command before >>> >> > > swfobject.registerObject("myId", "9.0.0"); >>> >> > > which made it worked. >>> >> >>> >> > > Add new FAQ answer that if the flash object is not visible in Non >>> IE >>> >> > > browsers; use the switchOffAutoHideShow command. >>> > > >>> > >>> >>> >>> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
