Topic: Fullscreen flash "liquid" layout problem
Hey, i'm loading the gallery into a fullscreen "liquid" layout flash site (i'm using TweenMax LiquidLayout engine). Once gallery loaded it breaks the whole site layout. Please help)
You are not logged in. Please login or register.
SimpleViewer Forum → SimpleViewer-Pro v2 → Fullscreen flash "liquid" layout problem
Hey, i'm loading the gallery into a fullscreen "liquid" layout flash site (i'm using TweenMax LiquidLayout engine). Once gallery loaded it breaks the whole site layout. Please help)
How is it breaking the layout? do you have an example of the issue that we can look at?
Here's the link:
The section with the simpleviewer is Events & Promotions
http://paperbirdcrew.com/simpleviewerTest/
Thanks a lot!
Please post the embed code you are using.
var galleryLoader:Loader = new Loader();
var svAPI:Object;
galleryLoader.load(new URLRequest("simpleviewer.swf"));
galleryLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
galleryLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onGalleryLoadComplete);
function onGalleryLoadComplete(e:Event):void{
this.addChild(galleryLoader);
galleryLoader.y = -130;
this.setChildIndex(arrowL as MovieClip, this.numChildren - 1);
this.setChildIndex(arrowR as MovieClip, this.numChildren - 1);
}
function onViewerInit(e:Event):void{
Object(galleryLoader.content).addEventListener("svComplete", onGalleryLoaded);
}
function onGalleryLoaded(e:Event):void{
svAPI = Object(galleryLoader.content).api;
trace("svAPI: " + svAPI);
}
Please respond as soon as you can, i'm really behind on the project because of this. Or just send me the source files, i'll figure it out...
Thanks
SimpleViewer uses StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT. Check the resize code in the example FLA to see how to handle resizing with these parameters set.
http://www.simpleviewer.net/simpleviewe … html#flash
I just tried it, it didn't work with TweenMax Fullscreen layout. How can i controll StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT? I need to remove these lines of code completely. Stage scale and align modes are set initially in one of the TweenMax classes, i specify that layout structure in my wrapper swf:
var ls:LiquidStage = new LiquidStage(this.stage, 900, 555, 900, 555);
ls.attach(topNav, ls.TOP_CENTER, false, true, 0.9, {ease:Back.easeOut});
ls.attach(bottomBack, ls.BOTTOM_CENTER, false, true, 0.9, {ease:Back.easeOut});
ls.attach(homepageHolder, ls.TOP_CENTER, false, true, 0.9, {ease:Back.easeOut});
ls.attach(extSwfHolder, ls.TOP_CENTER, false, true, 0.9, {ease:Back.easeOut});
ls.attach(footer, ls.BOTTOM_CENTER, false, true, 0.9, {ease:Back.easeOut});
...
and then the simpleviewer is loaded and with its StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT breaks the layout. Is there a way to provide me with the source files or find a way to remove any stage refferences from the simpleviewer code?
I appreciate your help.
You are not going to be able to change SimpleViewer's StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT you will need to adapt your flash to work with it.
Hi,
SimpleViewer-Pro does not include the source code.
SimpleViewer requires StageScaleMode.NO_SCALE and StageAlign.TOP_LEFT. If you want to embed it you have to modify the loading SWF to work with those parameters.
Can you tell me how to change StageScaleMode and StageAlign from the parent swf using the svAPI oblect? There should be a way to access those from a parent movie.
Currently you can not change SimpleViewer's StageScaleMode and StageAlign using the svAPI. You must change your parent swf to work with SimpleViewer's StageScaleMode and StageAlign settings. You should be able to set all of your pieces the top_left and have it work.
SimpleViewer Forum → SimpleViewer-Pro v2 → Fullscreen flash "liquid" layout problem
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.