You want to be using swfobject.createSWF, the args are slightly different to
those passed to embedSWF

swfobject.createSWF(attObj, parObj, replaceElemIdStr)

 "primarily be useful when combining it with other JavaScript libraries:"


I would make a function in your a common js file (eg setup.js)  that passes
the flashvars, etc from
http://www.rockchurch.com/messages/watch_me/the_prayer_of_agreement to the
createSWF call

and then fire that with the colorbox onComplete callback

you may also need to remove SWFs swfobject.removeSWF(objElemIdStr)

http://code.google.com/p/swfobject/wiki/api
http://code.google.com/p/swfobject/wiki/test_suite (scroll to other API
methods)
http://pipwerks.com/swfobject/load-onclick/2.0/index.html

hth - S




On 10 February 2010 16:37, michaelespinosa <[email protected]>wrote:

> What I'm trying to do: I am using colorbox (http://colorpowered.com/
> colorbox/) load in an external page (http://www.rockchurch.com/
> messages/watch_me/the_prayer_of_agreement) via ajax. The page I'm
> loading in has a flash video of which I'm using swfobject2 to create
> the flash object code.
>
> The problem: When I load the external page into the main page (http://
> www.rockchurch.com/messages/new/) the swfobject js doesn't fire and
> create the object. It's not all js that's not firing, if I throw in an
> alert it will fire, but not the swfobject. If I load pull up the
> external page by itself it the swfobject works fine.
>
> Any help would be much appreciated.
>
> --
> 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=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