2 Replies Latest reply on Jan 26, 2007 2:53 PM by Dr._Goomba

    Invoke methods between Classes

      Just a week new to AS

      I am trying to create a "FrontController" like that in Cairgnorm, I'm not going to use Cairgnorm as i don't have the time to learn this methodology right now. Anyways, i want to pass my events to the FrontController and have that run the appropriate method. All the examples i have seen use methods within the FrontController Class. This will quickly become a mess and i would like to break up the code in seperate logical classes.

      So my question is, how can you instantiate a method of another class?

      public class FrontClass
      addEventListener("listenFor", doThis)

      public class DoThis
      public function doThis(event):void{ }