To clarify, the only times you want to set any id or name values in the attributes object is if you for some reason wnated to give your newly created swf a different ID that what was originally specified to be overwritten in the embedSWF() call. By default if you omit the attributes, the swf will inherit the replacement div id. I believe Sam is correct in that you should set an id and name if you are wanting to do externalinterface communication with the swf.
Cheers, Aran On Fri, Aug 14, 2009 at 12:46 AM, Sam Sherlock <[email protected]>wrote: > Hi Mcwazza, > > sorry for confusing you I am not saying that you would ever want > attribute.name="etc" in you mark up > > > but you might want to apply name, class (not to be confused classid) or > id attributes to the object created by swfobject > > the props of the attribute object become the standard HTML attributes name, > id and/or class whichever you set in the object > > you may wish to apply these attributes for instances where your using > advanced setups such as ex interface etc (in many case you won't and can > omit it) > http://pipwerks.com/lab/swfobject/ExternalInterface/2.0/index.html > > > - S > > > 2009/8/13 mcwazza <[email protected]> > > >> sorry i don't understand what you wrote... why would it be necessary >> for attributes.name="homepage"; to be part of my code >> >> On Aug 13, 1:14 pm, Sam Sherlock <[email protected]> wrote: >> > STEP 3: Embed your SWF with JavaScripthttp:// >> code.google.com/p/swfobject/wiki/documentation >> > >> > 9) attributes (Object, optional) specifies your object's attributes with >> > name:value pairs >> > would apply the following attribute to the object when its placed in the >> > page, you may also set id & class to your object >> > name="homepage" >> > - S >> > >> > 2009/8/13 mcwazza <[email protected]> >> > >> > >> > >> > > Experimenting with a flash movie, the html script features the line >> > >> > > var attributes = {}; >> > > attributes.name = "homepage"; >> > >> > > nowhere else inside my swf, my html, or xml file is "homepage >> > > defined"... when i remove it, my swf doesn't work, so it is obviously >> > > important. what part of the process will there be something looking >> > > for this tag of "homepage"? >> > >> > > any help is greatly 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] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
