I don't believe you should be using addDomLoadEvent *and* registerObject 
together.

If you must do addDomLoadEvent, which it sounds like you do from the 
previous parts of this thread, because you have to inline, then it's 
preferred that you switch to "dynamic publishing", which doesn't use 
registerObject() but instead uses createSWF().

NOTE: Don't use "embedSWF()" in your case, since that also should be in the 
HEAD.  Wrap a call to "createSWF" with addDomLoadEvent around it, and that 
should work.

Since dynamic and static publishing are somewhat different in the API 
signatures, please read the api documentation (link posted earlier) to make 
sure you understand what to pass to createSWF().


--Kyle




--------------------------------------------------
From: "citznfish" <[email protected]>
Sent: Wednesday, July 22, 2009 4:21 PM
To: "SWFObject" <[email protected]>
Subject: Re: Basic question about SWFObject 2.0 and CDN

>
> Thanks.
>
>
> I must be doing something wrong though. now the SWF just appears for a
> split second in IE and not at all in FF or Safari
>
>
> <!-- swfobject2.2 -->
> <script type="text/javascript" src="http://content.guess.com/swfobject/
> swfobject.js"></script>
>                <script type="text/javascript">
>                swfobject.addDomLoadEvent(SWFLoad);
>
>
>               function SWFLoad() {
>               swfobject.registerObject("shoes",
> "9.0.0");
>               }
>
>                </script>
>
> <div>
> <object id="shoes" classid="clsid:D27CDB6E-
> AE6D-11cf-96B8-444553540000" width="666" height="522">
> ...
> ...
> ...
>
> <!--<![endif]-->
> </object>
> </div>
> <!-- End swfobject2.2 -->
>
>
>
>
>
> On Jul 22, 2:10 pm, "Getify Solutions, Inc." <[email protected]> wrote:
>> http://code.google.com/p/swfobject/wiki/api
>>
>> --Kyle
>>
>> --------------------------------------------------
>> From: "citznfish" <[email protected]>
>> Sent: Wednesday, July 22, 2009 4:08 PM
>> To: "SWFObject" <[email protected]>
>> Subject: Re: Basic question about SWFObject 2.0 and CDN
>>
>>
>>
>> > On Jul 22, 2:03 pm, "Getify Solutions, Inc." <[email protected]> wrote:
>> >> swfobject has the "addDomLoadEvent()" function, which you can use for
>> >> this. You don't need to use jquery.
>>
>> >> --Kyle
>>
>> > HI Kyle,
>>
>> > Any idea on where I can find documentation on that? I tried searching
>> > the online documentation and FAQ and got 0 results...
>>
>> >http://code.google.com/p/swfobject/wiki/documentation
>>
>> > Thanks!
> >
> 

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

Reply via email to