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