Yes, you can call embedSWF() after dom is available:

Here is a good example on learnswfobject.com (good to have a look at the
other topics which may be relevant to you)

article - http://learnswfobject.com/advanced-topics/swfobject-and-ajax/
demo page -
http://demos.learnswfobject.com/ajax/loading-via-external-data.html

The user clicks on a button and then some Ajax data is loaded - once
loaded, then embedSWF() is called.



Cheers,
Aran

On Sat, Dec 24, 2011 at 3:25 AM, mikek12003 <[email protected]> wrote:

> my createSWF() is called in the onload function of the page so u are
> saying I can use embedSWF() instead of createSWF even though the DOM
> was fully loaded (cause I heard that after the DOM fully loads u
> call .createSWF())
>
> On Dec 24, 12:01 am, Aran Rhee <[email protected]> wrote:
> > Unfortunately no. Params including flashvars and other prameter values
> are
> > passed as name value pairs within the parameters Object.
> >
> > NOTE - any embedSWF() calls are automatically executed when the domReady
> > event is fired (if available on the browser), otherwise they execute when
> > the onload event fires.
> >
> > Also have a look in the APIhttp://
> code.google.com/p/swfobject/wiki/apifor
> > the following methods which might be of interest:
> >
> > swfobject.addDomLoadEvent(fn)
> > swfobject.addLoadEvent(fn)
> >
> > Cheers,
> > Aran
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Dec 23, 2011 at 1:03 PM, mikek12003 <[email protected]>
> wrote:
> > > wanna to display a SWF after the DOM has loaded so wanna
> > > use .createSWF() saw here
> > >http://code.google.com/p/swfobject/wiki/apithat you pass flashvars
> > > through
> > > var par = { flashvars:"foo=bar&foo2=bar2" }; in a format like
> > > "swfobject.createSWF(attributes, params, targetID)" but I wanna pass
> > > flashvar like the .embedSWF() where I have already declared a js
> > > object flashvars like 'flashvars={"foo":"bar","foo2","bar2"}' and do
> > > not want to change it. Can I use my flashvar object with .createSWF()?
> >
> > > --
> > > 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.
>
> --
> 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.
>
>

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