8 Replies Latest reply on Dec 14, 2006 1:26 PM by ntsiii

    Variable of variable concept in AS

    ksam_padku
      Hi,
      In flex how can i use the variable of variable concept , i want to create the dynamic instance for ArrayCollection class like
      below ,
      for(var i:int=1;i < 3; i ++){
      var objname = "ArrCol"+i;
      objname:ArrayCollection = new ArrayCollection();
      }

      Expected Result :
      --------------------------
      ArrCol1 , ArrCol2 these two instance should be created .....

      Any ideas plz let me know ,