0 Replies Latest reply on Feb 12, 2008 10:56 AM by bhutten

    FB3 not displaying component properties in Design mode?

    bhutten
      I have this simple component:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="400" height="24">

      <mx:Script>
      <![CDATA[
      [Inspectable(category="Common")]
      [Bindable]
      public var dbValue:String;

      [Inspectable(category="Common")]
      [Bindable]
      public var dbLabel:String = "Default";
      ]]>
      </mx:Script>

      <mx:Label id="theLabel" width="60" textAlign="right" text="{dbLabel}" y="3"/>
      <mx:TextInput x="68" y="1" width="230" id="theField" editable="true" enabled="true" text="{dbValue}"/>
      </mx:Canvas>



      And I include it on another Panel like this:

      <DB:AlphaField id="cityField" x="10" y="70" width="395" dbValue="{contact.city}" dbLabel="City"></DB:AlphaField>

      Works fine, EXCEPT - in FB3 Design mode, the values displayed in the Label and TextInput objects are "{dbLabel}" and "{dbValue}" respectively, instead of the values assigned to the component in the <DB:AlphaField> tag, ie "City" and "{contact.city}".

      Is there any way to get FB3 to render the specified values from the tag at design time, as opposed to the literal values specified in the component?

      (I'm just learning components, so if I'm missing something obvious please point me in the right direction... :))


      Thanks

      - bill