Re: Does swfobject.createSWF() not return an that can be stored for use later?

Fri, 20 Nov 2009 08:13:51 -0800

Nevermind, I got this working. Videobox is effectively converted from
SWFObject 1.5 to 2.2 :) going to post this in a bit.

On Nov 20, 8:24 am, "c.wrinn" <[email protected]> wrote:
> The call is not being made before the dom is ready. The call is being
> made on a click event, long after domready, the class' constructor
> isn't even run until DOMReady for the exact reason you refer to.
>
> I have been reading the documentation, which specifically reads
> "Returns the newly created object element", yet I still get
> "undefined".
>
> On Nov 19, 9:48 pm, "Getify Solutions, Inc." <[email protected]> wrote:
>
> > Please read the documentation carefully. Also, consider using the
> > code-generator to help get the new syntax code generated for you.
>
> >http://code.google.com/p/swfobject/wiki/documentation
>
> >http://code.google.com/p/swfobject/wiki/api
>
> >http://code.google.com/p/swfobject/wiki/generator
>
> > In particular to your code question, it's probably returning undefined
> > because you are making the call before the DOM is ready, so you won't have
> > an object created yet, swfobject will queue the call to create the object
> > until domready.
>
> > --Kyle
>
> > --------------------------------------------------
> > From: "c.wrinn" <[email protected]>
> > Sent: Thursday, November 19, 2009 4:28 PM
> > To: "SWFObject" <[email protected]>
> > Subject: Does swfobject.createSWF() not return an <object> that can be
> > stored for use later?
>
> > > I'm trying to update VideoBox to use SWFObject 2.2 and when I do
>
> > > this.so = swfobject.createSWF(att, par, id);
>
> > > this.so is [undefined].
>
> > > The used to store a new SWFObject in this.so and inject it later.
>
> > > --
>
> > > 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=.

--

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