Data Model Flex


   backgroundColor="#FFFFFF" width="550" height="300">
   
    
      import mx.controls.Alert;
       private function modelToString():void{
         Alert.show(contactmodel.fname + " " + contactmodel.lname + "\n" + contactmodel.address + "\n" + 
                    contactmodel.city + " " + contactmodel.state + " " + contactmodel.zip + "\n" + 
                    contactmodel.phone + "\n" +contactmodel.email,"contactmodel");
       }
   
   

  
    
      {fnametxt.text}
      {lnametxt.text}
      
{addresstxt.text}

      {citytxt.text}
      {statetxt.text}
      {ziptxt.text}
      {phonetxt.text}
      {emailtxt.text}