Thanks, Aran. I see what you mean about addDomLoadEvent. Further  
investigation makes it clear to me that when using dynamic publishing,  
my drag bar swf is not loading at all. It seems that the Loader.load()  
is not being fired at all, so I'm not getting an error AND it's why  
I'm getting the #1009 error.

Adding a timeout did get around the div not found error and I'll  
implement a more elegant solution later.

Jennifer

On Nov 17, 2009, at 4:17 PM, Aran Rhee wrote:

> 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

--

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