Hello, I have a class, which loads and process XML - one function calls other, this - another one, which modifies a variable. If it were just one function, would be simple to get return of it in a main class:
public var mySubClass:subClass = new subClass(); result = mySubClass.myFunction(); But how to get modified value after 4 function chain in a class? There is one method with a listener to check when event complete, but I'm not sure if it's ok to keep listener running just to check variables. public var mySubClass:subClass = new subClass(); mySubClass.addEventListener( Event.COMPLETE, onSendUserComplete, false, 0, true ); function onSendUserComplete( e:Event ):void { trace( e.target.returnData ); } What is best practice method to do this? Thank you in advance, Ktt _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders