Driving me mad. I don't get what could possibly be happening here. Why would _myOtherClass instance no longer exist after the event in an unrelated class fires? Any ideas?
import myClass; import myOtherClass; import mx.events.EventDispatcher; class MyMainClass { var _myClass:MyCLass; var _myOtherClass:MyOtherClass; public function MyClass() { doStuff() } private function doStuff() { _myClass = new MyClass(); _myClass.addEventListener("onTransition", onTransitionHandler); _myOtherClass = new MyOtherClass(); trace(_myClass) //traces [object Object] as expected trace(_myOtherClass) //traces [object Object] as expected } private function onTransitionHandler():Void { //Event is heard just fine, the following traces just fine: trace("Hello World, the event fired!") //but this does not: trace(_myOtherClass) //traces undefined !?! } } Also, in other movie clip, a simple gotoAndPlay("theframelabel") does not work. It goes to the right framelabel, but willl NOTplay - even if I force it with a mc.nextframe() and mc.play() it only advances one frame and stops again. There are no other stop() actions in the clip or anywhere else referencing the clip. Makes me wonder if my project is somehow corrupt. ? Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team _______________________________________________ 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