0 Replies Latest reply on May 15, 2008 5:06 AM by shahinyan

    Dynamic properties problem

    shahinyan
      Dear friends,
      I am trying to create an application form, where i have a tabNavigator, which being rendered based on number of items set in textInput:
      private function addCars(event:Event):void{
      var car_number:int=int(number_of_cars.text);
      for(var i:int = 1; i <= car_number; i++){
      var new_car:car_details=new car_details();
      new_car._car_id=i;
      car_navigator.addChild(new_car);
      }
      }
      where car_details is class defined in MXML, and sets some properties for car:
      <mx:HBox width="100%">
      <mx:Label text="Date of creation"/>
      <mx:DateField id="car_creation_date"/>
      <mx:Label text="Model"/>
      <mx:TextInput id="car_model"/>
      </mx:HBox>

      It works fine. Now i want to be able to set id's for this properties in a run-time so i can later get an information from fields and pass it to ColdFusion.
      Can you explain how to do this? We've try many things - none works.
      Thanks,
      Mika