This content has been marked as final.
Show 6 replies
-
1. Re: I need a function to recursively trace() variables
Raymond Basque Feb 28, 2008 5:01 AM (in response to sneakyimp)Try this. If you want to recursively trace the property values, you can add that functionality, but be careful you don't end up with circular references. -
2. Re: I need a function to recursively trace() variables
Newsgroup_User Feb 28, 2008 5:08 AM (in response to sneakyimp)The id parameter is something new -- maybe added for the AIR release.
-
3. Re: I need a function to recursively trace() variables
sneakyimp Feb 28, 2008 2:04 PM (in response to sneakyimp)Very nice Raymond. Thanks!
BTW, are circular references something that commonly occurs in Flash? -
4. Re: I need a function to recursively trace() variables
Newsgroup_User Feb 28, 2008 3:27 PM (in response to sneakyimp)"sneakyimp" <webforumsuser@macromedia.com> wrote in message
news:fq7b5r$1dm$1@forums.macromedia.com...
> BTW, are circular references something that commonly occurs in Flash?
Not really, but an obvious example would be the main timeline. Its root
property is a reference to itself so you would be in an endless loop. To
properly implement, something like that you'd need to maintain a reference
table (array) of the objects you trace into - and only go there if there's a
way out.
-
5. Re: I need a function to recursively trace() variables
sneakyimp Feb 28, 2008 4:18 PM (in response to sneakyimp)I've never see the @ usage in Actionscript before. Is that a way to get at an attribute of an XML node? -
6. Re: I need a function to recursively trace() variables
Newsgroup_User Feb 29, 2008 2:49 AM (in response to sneakyimp)> Is that a way to get at an attribute of an XML node?
Yes it is. It's part of the E4X specification, which is woven into AS3. See
Programming ActionScript 3.0/Working with XML in Flash Help.



