hello all greensockers
I have a video nested into some other movieclip and I want it to go to full screen mode (with hardware scale).
So I have to find the rectangle that fits the video to scale it.
But I cannot find the right coordinates and dimensions for this f*****g Rectangle.
- I have this :
var ls:LiquidStage = new LiquidStage(this.stage, 1680, 920, 1010, 548);
- and this :
var area : LiquidArea = new LiquidArea(stage, 0, 0, 1680, 920);
area.attach(stage.getChildAt(0), ScaleMode.PROPORTIONAL_INSIDE, AlignMode.CENTER, AlignMode.CENTER);
- and in a nested movieclip
var screenRectangle:Rectangle = new Rectangle( xR,
stage.fullScreenSourceRect = screenRectangle;
stage.displayState = StageDisplayState.FULL_SCREEN;
So, what values for xR, yR, wR and hR ?
I tried :
p = new Point(myVideo.x, myVideo);
p = myVideo.localToGlobal(p);
xR = p.x;
yR = p.y;
xR = stage.getChildAt(0).scaleX * myVideo.x;
yR = stage.getChildAt(0).scaleY * myVideo.y;
but both don't fit.
Am I missing something ? It is to much for my exhausted mind ?
thanks in advance