--- Kevin <[EMAIL PROTECTED]> wrote: > Hello, > > Have I understood correctly alias and inlineID are > in addition to the > actual DynObject id and refer to the same DynObject. > > All DynObjects are stored in the DynObject.all array > referenced by > either the auto generated DynObject id, or the > alias, or the inlineID. > > I think it's the last one to call setID which > changes this.id so we > can use an overloaded Object.toString call and get a > string literal > to the object for specific needs like e.g. > setTimeout(this+._slide(.... > > Do we only need a setID on rendered (inline?) > elements so move > setID to DynLayer.setID may save space in > DynObject.all on > unused ids? > > Is there a bug in event.js addChild?
no > if(alias) this[alias]=c; ??? > if(inlineID) c.setID(inlineID,true); This is correct. the purpose of the alias argument is to give the child a name on it's parent object: e.g. Instead of myLayer.lyrCover = myLayer.addChild(new DynLayer()) we could do the following: myLayer.addChild(new DynLayer(),'lyrCover') // The alias for the new dynlayer is called lyrCover myLayer.lyrCover.setSize(10,10); Maybe we should call it something else.. childName? layerName?, etc The purpose of the inlineID is to set the id of the child layer: myLayer.addChild(new DynLayer(),null,'inline_div'); The above will assign the 'inline_div' id to the new dynlayer. Clear on that? -- Raymond Irving > or > if(alias) c.setID(this.alias=alias); * > if(inlineID) c.setID(inlineID,true); > or > if(alias) c.setID(alias,true); ** > if(inlineID) c.setID(inlineID,true); > > * Example of using this.alias would help my > understanding? > ** Would we ever ask for an alias if it was not > rendered (inline)? > > Kevin. > > [EMAIL PROTECTED] > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The debugger > for complex code. Debugging C/C++ programs can leave > you feeling lost and > disoriented. TotalView can help you find your way. > Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[EMAIL PROTECTED]/ __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/