Hi,

 

I’ve got a custom class. The class has a getter/setter method for variable called months

Class MyComp extends HBox

{

  private var __months:Array;

  public function get months():Array

    {

      return __months;

    }

  public function set months(monthArray:Array):void

    {

       Trace(“the value is getting set”);

      __months = monthArray;

    }

}

 

I try set the value with an mxml tag

 

<ns:MyComp months=”{anotherArray}” />

If I do this I get no trace from the setter method

<ns:MyComp months=”anotherArray” />

If I do this I get the trace and the variable is set to the String “anotherArray” which should throw a runtime type error since the variable is Array

 

I’m pretty confused… worked fine in Beta 3

 

Regards,

Martin

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.5/377 - Release Date: 27-06-2006

Reply via email to