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?
---------------------------------------------------------------------------- CAUTION & DISCLAIMER: The information contained in this e-mail message and/or any accompanying data or documents contain information that is confidential and subject to legal privilege. The information is intended only for the recipient named in this message. The sender is excluded from any liability arising from any further use, dissemination, distribution, transmission or copying of this information and /or accompanying data by the recipient. If you are not the intended recipient, you must immediately erase the information along with all copies of this message and accompanying data and notify the sender. Views expressed in this message are those of the original sender, and are not necessarily the views of WestOne Services. ----------------------------------------------------------------------------
_______________________________________________ Flashcoders@chattyfig.figleaf.com 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