Flash Stage resize
- Started
- Last post
- 13 Responses
- Carty0
have a look at mine... http://stevecarty.com fully scalable at all window sizes.
my coder is a genius.... email me if you want some help- Tell your coder to go fuck himself for forcing my window to resize.ornj
- rabattski0
My coder is a genius. Works best in ff on mac. What part of genius don't i understand?
- rabattski0
True @ maximillion.
I always construct it like this:
function onResize () {
// Code, e.g.:
container._width = Stage.width;
container._height = Stage.height;
Stage.addListener (this);
}And call it:
onResize();
- maximillion_0
yeah, call the resize function twice once on load and then after a short interval
- Carty0
u need the latest flash player.
- PonyBoy0
never had the problem... but i like to put my stage listener on the first frame...
... make the function _global. and call it anytime you need the resize action to occur (even if the stage hasn't been resized... there will be times you want that action to occur).
- rabattski0
You should use a listener object within flash that will trigger code after a resize.
- rabattski0
Ah, what PonyBoy already said.
- kerus0
i reloaded and it worked fine, but gave me the error again later
no big deal
- maximillion_0
Stage.onResize is an event listener