I have a class with public static vars like:-

        [Bindable]
        public class MyModel {
                public static var message:String = 'initially empty';
        }

and I use as a tag like:-

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; xmlns="*">

        <MyModel id="myModel" />
        
        <mx:Text id="test" text="{myModel.message}" width="100%"/>

</mx:Application>


But the compiler gives me an error on myModel.message:-

        1119: Access of possibly undefined property message through a
reference with static type MyModel.

Why is this? Should I report it as a bug?


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
August meeting: Tools Of The Trade: Maven, An Introduction
Date: Mon 25th August 6pm for 6:30 start
Details and RSVP on http://apugs2008august.eventbrite.com.

Reply via email to