1 Reply Latest reply on Sep 5, 2006 6:15 PM by Projectitis

    Custom Component (MX) Property

    Projectitis Level 2
      Hi all,

      I am creating a component in the older (NOT v2) component architecture, and I am wondering how to typecast a property?

      I know I can set properties simply by going:

      this.someValue = 'text';
      or
      this.someValue = 100;

      But I would like to explicitly state the type somehow (e.g.):
      this.someValue : Number = 100;

      See code attached.

      Cheers,
      Pea