> > In my opinion, it's not truly dynamic. It requires some elements in > DOM element in order to create SWF object and return it. >
this is so that non flash users always get alt content and if your someFunction makes a div why not make it make one for createSWF to target the third param of createSWF is an id; you can then use that to target the created object check that the id of the newly created object is present - S On 2 February 2011 23:25, ImBekren <[email protected]> wrote: > In my opinion, it's not truly dynamic. It requires some elements in > DOM element in order to create SWF object and return it. > > In my use case, i need to create flash object to assign it to > javascript variable, which in turn will be appended to dynamically > created element. This dynamically created element can't be appended to > the DOM tree of the document BEFORE it's formed. > Is there any options, how to generate flash object using pure > SWFObject2 capabilities. but WITHOUT having some pre-existing elements > in the page structure with ids that are used as input for SWFObject2 > API functions? > > e.g. : > function someFunction() { > var div = document.createElement ( "div" ); > div.appendChild ( swfobject.createSWF( %attributes% , %parameters > % ) ); // and no id, so i could get somehow object for mentioned > operation > > return div; // and result is used in another function, that prepares > other stuff and places this result on the DOM tree > } > > > Thank you in advance. > > -- > 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.
