Something like this, but flushed out more. function doTestFields():void { if (Phone.text == "") { if (Address.text == "" || City.text == "" || Country.text == "" || State.text == "" || Zip.text == "") {
trace("Please enter data"); } else { trace("Address info done do stuff"); } } else { trace("Phone filled out do stuff"); } } John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Feb 6, 2012, at 4:23 PM, Don Talcott wrote: > What I'm trying to do is give the choice of filling out the Phone field OR > the address fields ( 2-6). > If they choose the Phone field, none of the address fields are required. > If they choose one of the address fields, all of the address fields are > required. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders