Make sure you define all your variables *before* you use or give them
a value. This can help in a lot of situations.
You need to know that the debugger is broken in flash 8, in fact its
broken in all versions that have it. This is a known bug and not
you...an issue they are addressing in Flash 9 so I believe.
Cheers,
Tom
On Thu, 17 Aug 2006 13:25:48 +0800, you wrote:
>When I try to debug a function in one of my classes, as soon as some code
>tries to get a property from a class using a Get function, all the local
>variables in the "local" window disappear when it returns back to the
>original function. Is this normal behaviour?
>
>this is the function I am debugging:
>
> private function addChildNodes(xnRoot:XMLNode, idx:Number):Number {
> var nDepth:Number;
>
> while (idx < _collSize) {
> nDepth = _collection[idx].getDepth(); **
> var xnNode:XMLNode = new XMLNode(1, "node");
> xnNode.attributes.label = _collection[idx].labelText;
> xnNode.attributes.href = _collection[idx].destURL;
> xnNode.attributes.level = nDepth;
> xnRoot.appendChild(xnNode);
>
>[...]
>
>
>**this is the getDepth function in the other class - as soon as i debug this
>line, all the local vars disappear on return.
>
> public function get getDepth():Number {
> return _depth;
> }
>
>If I make the class variable (_depth) public and dont use the get function,
>the debug works fine.
>
>any ideas why this happens?
>
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com