In a message dated 4/12/2005 12:53:39 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
Looks about like it would help but one question is component one meant to be the mxml file

Sure, itâd be something like this:

 

class component1

{

  public var numberone : Number;

}

 

class component2

{

  public var comp1 : component1;

 

  function readNumberOne() : Void

  {

    Var num : Number = comp1.numberone;

    //do what you want

  }

}

 

class parent

{

  var comp1: component1;

  var comp1 : component2;

 

  function parent()

  {

    Comp1 = new component1();

    Comp2 = new component2();

    Comp2.comp1 = comp1;

  }

}

 

That help?

 

Matt



Yahoo! Groups Links

Reply via email to