look at this.

Main FLA Document Class

public class Main extends Sprite {
   public function Main() {
      myButton.addEventListener(MouseEvent.CLICK, fun)
   }

   public function fun(e:MouseEvent):void {
      trace("Clicked");
   }
}

Now supposed I need to call the function fun by some other function or
object. How?

And If i have another Class, How can i reach this function and call it?


Thanks in advance.

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to