0 Replies Latest reply on Jul 10, 2007 8:00 AM by kasiopi

    Getting model values from an imported library

      I have created a swc file from the following mxml file (demo_lib.mxml):
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*">
      <mx:Model id="myModel">

      I want to refer to the value of the label tag from another mxml file:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Button label="{myModel.label}"/>

      ...but myModel property is not recognized when I compile code although I include the swc file during complilation (-library-path+=c:/flex/demo/lib/demo_lib.swc)

      Any ideas on how to refer to the model's values???