Topic: Problem resize - center - SV - Full Flash

New problem... New Post

My full Flash Website is almost ready
But i have, i hope, a last problem to solve

My webiste is 800x600
The simpleviewer area is 800x 550
I publish my swf with percentage publication parameter, to have the max dimension on my window

When i compile my swf, all is perfect
http://www.hiboox.fr/go/images/divers/l … 6.jpg.html

When i put the website online,there is a problem,
the menu on the bottom is hidden, but when you minimize the window and extend it manually, you can see the menu.
http://www.hiboox.fr/go/images/divers/o … f.jpg.html
I don't know why
The mcloader, is 800x550, why it doesn't want to follow the website dimension?

http://www.lampegras.fr/web/gras_fr.html "presse" section

Last edited by godak (2010-05-28 07:25:18)

Re: Problem resize - center - SV - Full Flash

No idea ?

You can see the problem
www.lampegras.fr/web/gras_fr.html

-Choose "la lampe gras"
-Choose "presse" or "stores"

the menu is moved too much on the bottom (this sentence is not very english...)

What's the problem?

Re: Problem resize - center - SV - Full Flash

Are you saying the orange menu at the bottom of the SWF is being cut off?

You need to change your HTML embed code to explicitly set the height of the swf to a pixel value. Currently you have it set to 100%.

Felix Turner
SimpleViewer Support Team.

Re: Problem resize - center - SV - Full Flash

Hi Felix,

There is a problem i can't explain.

I create a page with flash, in the publishing parameters, i put 100%

> my page is great with all the screen resolutions

The same page with SV on it, the bottom of the page is cut off

- I solved this problem,with the flash parameter : exact fit.

But there is a new problem, i didn't see before

I create my page, and publish it.It's great and center horizontaly and verticaly
I put SV on it >> all the website goes on the top left corner

I suppose stage.align.TOP_LEFT is the problem
I can't center my website because of SV

Why ??

Re: Problem resize - center - SV - Full Flash

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.

Felix Turner
SimpleViewer Support Team.

Re: Problem resize - center - SV - Full Flash

Hi,

As you say, i observ the AS code concerning the resize.

My AS code :
The method:

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

The resizing part:

function onGalleryLoaded(e:Event):void {

    svAPI = Object(svLoader.content).api;
    svAPI.setSize(mcLoader.mcFrame.width,mcLoader.mcFrame.height);

}

The html export parameters :
Dimensions : percentage (100x100)
html alignment : Top
Scale : par défaut (afficher tout) in french - ShowAll, i think in english

I already use this configuration with another websites (html parameters).
Normally, the website use all the space of html page,it keeps the proportion, it is center.

The same parameters with SV on my website, the result is different :
The webiste is on top left corner you can see (http://lampegras.fr/index2.html)
If i delete the galleries, the website is centered.

Why the SV gallery is not limited by mcLoader(dimensions) ? Why SV gallery is not at the same place than mc Loader ?
What is the solution to have a center webstite (horizontally at less) ?

Re: Problem resize - center - SV - Full Flash

up

Re: Problem resize - center - SV - Full Flash

Check the resize code in the example FLA to see how to handle resizing with these parameters set.

Felix Turner
SimpleViewer Support Team.

Re: Problem resize - center - SV - Full Flash

Thanks for this reply, but i don't want this kind of result.

I have a 800X600 website wich contains galleries, and i don't want that galleries follow the size of the stage.

I solved my problem yesterday.

I put all my webiste in movieclip, and this movieclip is dynamically centered with AS code.
The website is now centered verticaly and horizontaly.

But simpleviewer bring many problems

A new one.
Now, you can watch a centered website at www.lampegras.fr/index3.html
>> If you are on a page wich contain a SV gallery
>> Active or desactive fullscreen mode (the button just on the left of the red cross of your red browser)
>> The screen is white !!!


If you do the same manipulation on contact area for example, it works great because there is no gallery.

WHy ??

I precise : the website is normally always 800X600