-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
ScrollTrigger Demos
Downloads
Posts posted by battlejoyce
-
-
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, yR, wR, hR); 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; //...
and :
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
Anyone have any success using liquid stage & swffit
in TransformManager (Flash)
Posted
hello Icekomo
I've already done it (and with Gaia Framework)
I have no swffit code in my swf, only in the html page, ie :
swfobject.embedSWF("main.swf", "flashcontent", "100%", "100%", "10.0.0", "expressInstall.swf", flashvars, params, attributes);
swffit.fit("flashcontent", 1000, 550);
and my LiquidStage is created like this :
var ls:LiquidStage = new LiquidStage(this.stage, 1680, 920, 1000, 550);
as greensock pointed out :
Swffit init width/height = LiquidStage minimum width/height
I hope this will help