PDA

View Full Version : Fullscreen Centered Flash Elements


icefreez
01-24-2008, 05:33 PM
I have been trying to find a good TUT on this for quite some time. Does anyone know any tuts or can give me an explanation of how to do something like this?

The flash fills 100% of the browser window. However if you resize the browser window instead of just shrinking or expanding the entire flash it just repositions the items in the flash to the new stage width. I am pretty sure this is some sort of onEnterFrame repositioning but I have been unable to reproduce it. :(

http://www.flashcomponents.net/upload/samples/205/index.html?full=true

Any help is appreciated.

adrianTNT
01-25-2008, 11:52 AM
Hi Icefreez, have you seen the StageSize sample in Flash 8?
I think this is what you need, I will attach the flash sample files, it reads the current stage size, if you open the html page and resize the page by dragging the corners the text fields will instantly update with the current width/height of the swf file.