2 Replies Latest reply on Oct 28, 2010 11:01 PM by Shongrunden

    Dynamic 3Dmove for a component or bordercontainer

    AMIR820321548863 Level 1

      Hi

       

      I trying to move a component and a border bordercontainer by using 3Dmove.

      During the runtime of the application the target of the 3Dmove will change.

      I do not wish to Bind the target dirclty to the 3Dmove but use the same 3Dmove on diffrent targets (not at the same time).

       

      I have created a group called BorderGroup. where dynamclly a add the componentsits look like this

      protected

       

      functionapplication1_creationCompleteHandler(event:FlexEvent):void

      {

       

      for(var i:int=0; i<numElementsInGroup; i++)

      {

       

      GetBorder.x=230;

      GetBorder.y=50;

      GetBorder.z=0;

      GetBorder.id=

      "jakov"+i;

      GetBorder1.x=230;

      GetBorder1.y=50;

      GetBorder1.z=0;

      GetBorder1.id=

      "jakov"+i;

      GetBorder2.x=230;

      GetBorder2.y=50;

      GetBorder2.z=0;

      GetBorder2.id=

      "jakov"+i;

      BordersGroup.addElement(GetBorder);

      BordersGroup.addElement(GetBorder1);

      BordersGroup.addElement(GetBorder2);

       

      trace (GetBorder.id);

       

      if(i==1)

      {

      jonymove.target= GetBorder.id;

       

      trace (jonymove.target);

      jonymove.play();

      }

       

      if(i==2)

      {

      jony2move.target= GetBorder1.id

      jony2move.play();

      }

      }

       

      But it doesnt work

      the line

      jonymove.target= GetBorder.id;

      Produce the following Error:

      Error #1069: Property postLayoutTransformOffsets not found on String and there is no default value.

      Any idea what cause the problem and how to solve it?

       

      Thanks