RE: [Flashcoders] Calling Event methods and Other Classes methods.

2008-03-24 Thread Cor
: Re: [Flashcoders] Calling Event methods and Other Classes methods. Even if myButton is not static? and even so, if in main myButton.addEventListener(MouseEvent.CLICK, fun); and in other Class Main.myButton. << now what? On Sun, Mar 23, 2008 at 3:52 PM, Cor <[EMAIL PROTECTED]>

Re: [Flashcoders] Calling Event methods and Other Classes methods.

2008-03-23 Thread Omar Fouad
Even if myButton is not static? and even so, if in main myButton.addEventListener(MouseEvent.CLICK, fun); and in other Class Main.myButton. << now what? On Sun, Mar 23, 2008 at 3:52 PM, Cor <[EMAIL PROTECTED]> wrote: > I noticed I didn't answer your question. > > In another class file you

RE: [Flashcoders] Calling Event methods and Other Classes methods.

2008-03-23 Thread Cor
I noticed I didn't answer your question. In another class file you can trigger the button like this: Main.myButton.whatever... -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Omar Fouad Verzonden: zondag 23 maart 2008 14:28 Aan: Flash Coders List Onderwe

RE: [Flashcoders] Calling Event methods and Other Classes methods.

2008-03-23 Thread Cor
OK. First of all try to think like this: Every class is a black box and all the other classes do not really need to know what's going on inside. They have to know what to put into it and what to expect out of it in return. If your button is in the Main class it is always available in your whole ap