If you are looking to get the value of this [mediaNode.nodeName] only you could use it as the return value for you method:
this[mediaNode.nodeName] = mediaNode.firstChild.nodeValue; return this[mediaNode.nodeName]; -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of DP Sent: Monday, October 31, 2005 2:53 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Making a function var global Importance: High Hey man. You could create a variable outside of the function, declare it to be global, and then assign it like you have below. DP On Oct 31, 2005, at 2:26 PM, jleonard wrote: > > I'm using the line below inside a function to create a var using > the xml's node name tag. > > But outside the function, it's tracing "undefined". I understand > that in AS2 this has something to do with public/private calls. How > do I get this to be seen globally? > > > this [mediaNode.nodeName] = mediaNode.firstChild.nodeValue; > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

