Just import the classes into one another and use them as appropriate...

E.g.,

// class com.acme.Foo
import com.acme.Bar;

public class Foo {
   public function doSomething() {
     var bar:Bar = new Bar();
     bar.performFunction();
   }
}

// class com.acme.Bar
import com.acme.Foo;

public class Bar {
   public function performFunction() {
     // do work
   }

   public function someOtherFunction() {
     var foo:Foo = new Foo();
     foo.doSomething();
   }
}

Depending upon your needs you can instantiate the class instances in the 
  constructors, or even implement a Singleton for access.

E.g.,
// this would go into the Foo class
private static var sInstance : Foo;

public static function getInstance() : Foo {
        if (sInstance == undefined) {
                sInstance = new Foo();
        }
        
        return sInstance;
}

Does that help?

-ashley

[EMAIL PROTECTED] wrote:
> I am working on a program that has taken too much memory, I get the 32k 
> exceeding error. What I want to know is how do you make an mxml file 
> with two as files and have them access the same files, I know how to get 
> an mxml file to communicate with an as file but how do you get two .as 
> files to access one another?
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
> 
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>        
>     * To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>. 
> 
> 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to