I was wondering if you can set the stage size at 100 percent when the swf is embeded in a browser, the way you can do it localy in the flash player.
That means that you see the stage at its own size + you have all the area surrounding that stage which is part of the same swf.
Basicaly I've got my main area (800/600 px) that people can use for those who have small resolution screen, and I want to let the possibility for those who'll see it on a 1024/768, to have the main area still on 800/600 + access on the outer zone around that 800/600 to play with, for instance to drag and drop things out of the main area.
Kinda impossible to explain really, so I attached a gfx to get it clearer.
So basicaly I want to have the "100 %" feature when swf is in a browser.
I aint asking for my swf to scale 100% with the browser (I know how to do that), but for the main stage of my flash to remain at 800/600 while - if browser maximize - the zone around is still my swf.
Actually I am even wondering if its possible whithin a browser.
Jee
Hope nobody knows I am still on Flash 5
______________________________________
All artists are prepared to suffer for their work
but why are so few prepared to learn to draw?(Banksy)
make sure you have them just right, or it will not work.
in case you dont understand, just view the source on my page and you'll get it
Now the swf will expand its borders to fit the window, without scaling its content.
PS be sure you dont put your flash inside a table with fixed width, as this will not allow it to expand.
it's still a work in progress, so lot of things still to be loaded/optimized/finished.
No table allow here, so can I get the swf to be centre horizontaly and verticaly with this technique?
I have tried: ALIGN="middle" but it stay stuck on the top left.
Hope nobody knows I am still on Flash 5
______________________________________
All artists are prepared to suffer for their work
but why are so few prepared to learn to draw?(Banksy)
centering is done from flash.
you have to add this to the first frame of your movie
Code:
function center() {
center the content;
}
center();
myinterobj = {};
myinterobj.onResize = center();
Stage.addListener(myinterobj);
ok, and now to explain:
have all your content placed in a MC in the root of the flash (called for example main, and the function center should be something like:
Hope nobody knows I am still on Flash 5
______________________________________
All artists are prepared to suffer for their work
but why are so few prepared to learn to draw?(Banksy)