I want to set coordinates of some movieclips. But it's shows the movieclips based on their their own origins. So I think I have to use "parent". Here's my code:
...
d2: {
piece: wp1_txt,
pieceLoc: {
parent.x: "147",
parent.y: "297"
}
},
...
addChild(squareArr.d2.piece);
squareArr.d2.piece.x = squareArr.d2.pieceLoc.parent.x;
squareArr.d2.piece.y = squareArr.d2.pieceLoc.parent.y;
TweenLite.to(currentPiece, 0.3, {x:squareArr[newSquare].pieceLoc.parent.x, y:squareArr[newSquare].pieceLoc.parent.y, ease:Linear.easeNone, onComplete:isMovingFunction});
Above code (without parent) is moving the textfield out of the stage. When I set x and y to 0, the textfield remaining it's own position instead of appearing on top left.
addChild()w.r.t parent. How is yourMovieClipsstructure?TextField. on thestageor inside anyMovieClip?