Hi everyone, I am a bit stuck with the following code:
Simplified example:
//scaling occurs on mcCenter
mcCenter.height = stage.fullScreenHeight;
mcCenter.scaleX = mcCenter.scaleY;
mcCenter.x = (stage.fullScreenWidth - mcCenter.width)/2;
mcCenter.y = 0;
//now I need to center the variable vid (video object) into mcCenter.mcPlayerBackground middle <-- on the widths middle of this nested mc.
vid.x = (mcCenter.mcPlayerBackground.width - vid.width) / 2;
For some reason the code is using the previous mcCenter.mcPlayerBackground.width value = before mcCenter was scaled.
How would I go and use the new mcCenter.mcPlayerBackground.width value?
Thanks a lot in advance!
Cheers!