0 Replies Latest reply on Feb 12, 2007 4:51 AM by mikeshank

    referencing form data in class based model?

    mikeshank
      Hi,
      How do you reference form data or controls in a imported custom class?
      for example, how would I port this mxml based model to a class based model?

      <mx:Model id="clientModel">
      <client>
      <id>{clientList.selectedItem.id}</id>
      <name>{client_name.text}</name>
      <address>{client_address.text}</address>
      <initials>{client_initials.text}</initials>
      <city>{client_city.text}</city>
      <state>{client_state.text}</state>
      <zip>{client_zip.text}</zip>
      <phone>{client_phone.text}</phone>
      <fax>{client_fax.text}</fax>
      <url>{client_url.text}</url>
      </client>
      </mx:Model>

      thanks for any input