I want to know how to position a movieClip(my_mcB) nested inside a resized movieClip(my_mcA);
my_mcA is originally 1080 wide.
my_mcA is set to resize according to the stage width and scale proportionally to the device width it is loaded in. Here is the resize code that works fine:
my_mcA.width = stage.stageWidth;
my_mcA.scaleY = my_mcA.scaleX;
I am testing on a stage that is 500 wide. my_mcA rescales fine. However, if I try to reposition my_mcB that is inside my_mcA it seems to use the old values of the 1080. If I used this code:
my_myA.my_mcB.x = stage.stageWidth; // NEED HELP WITH THIS LINE
my_mcB should be off the stage but it shows up half way in the middle of the screen.
In my project I will be using a screen swipe and many tweens so I need to get formula to place the objects on screen in the right places as well as the length of the movement in the tween etc... How can I correctly position a nested movieClip in a resized movieClip?