5 Replies Latest reply on Apr 13, 2009 12:48 AM by yancaoshi

    Conceptual question of including script

    yancaoshi

      Hi all,

       

      In order to make source code clear, I write all method in a separate .as file which is included with <mx:script source="xx.as" />. But I find that Flex builder cannot recognize the metadata like "Inspectable". If I put these property directly within following block

      <mx:Script>

      <![CDATA[

      [Inspectable(category="General", enumeration="true,false", defaultValue="true")]

      public testProperty: Boolean = false;

      ]]

      </mx:Script>

       

      Then I can see it at Flex properties view.

       

      My question is why it has this difference? What else limitation should I take care?

      If possible, please provide some technical article.

       

      Thanks for your reply.

      Best regards,

      Yan