Theres a few solutions to what you're trying to do. One is to create the HTML at 100%, the other is to use the new Full Screen technique (Flash 9 Player). Both are pretty simple to implement, but the Full Screen in a browser only works with the latest player.
Full Screen:
Adobe can do a better job than me explaining this new fangled magic, check out:
http://www.adobe.com/devne
But in a nutshell, you just need to worry about:
- The user having Flash player 9
- Adding allowFullScreen=true to the flash <object> HTML
- Setting Stage.displayState = "fullScreen"
- Make sure you use the above code on a mouse click, not as a frame script.
OR
Setting it to the complete size of the HTML page, and making the HTML page the screen size.
A great example using the swf Object (which I would use when embedding your Flash) can be found here:
http://blog.deconcept.com/
Have a look at the HTML source, and then download the swf Object (http://blog.deconcept.com
FInally you'll want to set how flash deals with it's scaling. You mention you want it to scale up. This means it should be fine on it's default setting (showAll), which scales the Flash content but keeps it in proportion. Other settings can be added to the HTML to create different effects.
Hope this helps as a start.
Main Topics
Browse All Topics





by: jstretchPosted on 2007-05-11 at 06:39:20ID: 19071925
When embedding a flash object into HTML instead of hard coding the width and height try using percentages.
eg: width="100%" height="100%"
Also, having the browser open the flash file directly will resize it to the browser window.