Topic: Resize

I'm using the simpleviewer_flash_embed.fla as a template to build my site. I've embedded 2 galleries.

I'd like the simpleviewer.swf with the gallery to resize, NOT the entire flash file. Is that possible?

Here's an example of what I'm trying to achieve: the fullscreen button, logo, and nav stay anchored to the frame, but the image gallery resizes: http://jeromepix.com/#/Portfolio/Portfolio/1


Thanks!


btw
I found this in the simpleviewer_flash_embed.fla file:
"
//example resizing code
stage.addEventListener(Event.RESIZE,onResize);
onResize(null);

//called on stage resize
function onResize(e:Event){   
    //strecth bkgnd to match stage dimensions
    mcBkgnd.width = stage.stageWidth;
    mcBkgnd.height = stage.stageHeight;
   
    //resize mcFrame insude mcLoader
    mcLoader.mcFrame.width = stage.stageWidth - mcLoader.x - 20;
    mcLoader.mcFrame.height = stage.stageHeight - mcLoader.y - 20;
   
    //resize SV to match frame size
    if (svAPI != null ) svAPI.setSize(mcLoader.mcFrame.width,mcLoader.mcFrame.height);

Re: Resize

I'd like the simpleviewer.swf with the gallery to resize, NOT the entire flash file.

I'm not exactly sure what you mean, but the flash embed example has a fixed size nav and a resizing simpleviewer gallery. Is this what your aiming for?

Felix Turner
SimpleViewer Support Team.

Re: Resize

Yes, I used that specific file as a template, just replaced fonts and linked my galleries, however the gallery is NOT resizing.

Is there a something in the code (see first post) that tells the gallery whether or not to resize? Do I need to change something?

Thanks!

Last edited by kkphoto (2010-01-14 18:11:16)