Another Resize Question
Posted on 2005-04-05
In HTML I can define the width of an JPG image to be 100%. If I put that image in a table with a width of 40%, I can resize the window and the table will become wider and smaller, always taking up 40% of the screen space. Resepectively, the JPG image will resize itself to fit 100% of the table, getting bigger and smaller with the screen.
I would like to do this with a flash movie. I'm not very experienced in flash, but I've managed to build a game that I want to resize the same way as a JPG image. So far I have been able to make it resize, but then one of two things happens depending on my Flash publishing settings:
1) When the movie gets smaller, a white frame appears on the top and the bottom.
- or -
2) The movie does not scale properly and becomes squished or stretched.
I just want it to resize like the JPG image does. Here's how I'm getting the JPG to resize correctly in HTML:
<table border="0" cellpadding="0" cellspacing="0" width="40%">
<img border="0" src="testimage.jpg" width="100%"></td>
I've read a bunch of other answers about flash resizing and I'm not finding anything helpful to my problem.