private function assignContent( parentObject: *, memberName: String ): void
is what your function needs to take, and you would call it like: assignContent( msg, "ONE" ); With assignContent( msg.ONE ) as you have it, the reference to the object stored in msg.ONE is read from msg before and only that object reference is passed to assignContent(). There is no obvious way to recover that connection just from the argument inside the function. References are one-way connections. Dave On 1/9/09, Mendelsohn, Michael <[email protected]> wrote: > > Hi list... > > I'm passing a var to this signature: > private function assignContent(Content:*):void > > // example > assignContent(msg.ONE); > > How can I get the "ONE" part of it, so I can correlate with another > object like info.ONE, or if it is passed msg.TWO, I can cross reference > info.TWO? > > There must be an efficient way... > > Thanks, > - Michael M. > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

