3 Replies Latest reply on Jul 21, 2011 2:46 PM by drkstr_1

    Can you move an object in a spark panel?

    broconne Level 1

      I have an empty spark panel that I add two object to.  After I add them, I want to perform a move operation to split them apart over a duration.  It seems that my move operation has no effect.


      My panel declration is as follows:

      <s:Panel id="nodeExplorer" backgroundColor="0xFFFFFF" creationComplete="hidePanelHeader(event)"  height="100%">
                <s:Group id="explorerGroup">



      My add and move function look like the following:


      public function exploreNode(image:Image):void {
           var topImage:BitmapImage = new BitmapImage();
           topImage.source=(new P7TopImage() as Bitmap).bitmapData;
           var bottomImage:BitmapImage = new BitmapImage();
           bottomImage.source=(new P7BottomImage() as Bitmap).bitmapData;
           var parallelMove:Parallel = new Parallel();                         
           var topMove:Move = new Move(topImage);
           var bottomMove:Move = new Move(bottomImage);
           parallelMove.children = [topMove,bottomMove];
           parallelMove.duration = 4000;



      Any idea on how I can make those images move?