Hi Jennifer.

addDomLoadEvent() is not fired after the swf is embedded, but when the DOM
is available (ie you can get to all of the elements on your page). You can
use this function to delay the embedding of your Flash file or run some
other function after the page elements are available. SWFObject inteternally
uses the domReady event to init all of its own proceses.

Perhaps you want to look at the callback function (the last param on both
the static and dynamic publishing methods) if you need to ensure the swf has
been written to the page before calling something else.

There are some people on this list who have intimate knowledge of the
Youtube API, so I am hopeful they can sort out your issue.


Cheers,
Aran


On Wed, Nov 18, 2009 at 8:59 AM, virtualight <[email protected]>wrote:

> Boy, I thought I had the answer when I found swfobject.addDomLoadEvent
> (functionName)
>
> This calls functionName when the dom of the page is available, which I
> thought would be after SWFObject has swapped out the DIV for the
> Flash. I had been calling my Flash function during window.onload, but
> addDomLoadEvent still doesn't work. I think now I'll just cheat and
> throw in a setTimeout and see if the loading delay is really the
> culprit or if it's a security issue.
>
> Jennifer
>
> On Nov 17, 12:36 pm, virtualight <[email protected]> wrote:
> > Firefox, SWFObject and ActionScript 3.0 Wrapper for Chromeless Player
> > meltdown
>
> --
>
> 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]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=.
>
>
>

--

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=.


Reply via email to