Auto resize flash in PHP
I'm having some trouble getting a few flash files to auto resize on my
webpage.
here's my PHP code
<?echo "<embed height=100% width=100% src=\"games/$image\"> <br>";?>
The thing is that, that code makes the width too long and the height just
right.
so when the flash loads up you can see all the events that are going on off
screen, before they get on screen.
Does anyone know how to fix that ?
I tried using Iframes as suggested, but it's still the same problem just in a iframe now.
The better question would be. How to I fix/fit the height and width so that it remains true to the default size of the flash. So that when you maximise the window it doesn't stretch all out of proportion.
I want the flash file to auto resize itself to ITS original size.
SEE links
http://gprime.net/flash/ <-- They all resize them selves.
http://www.ebaumsworld.com/games/lightsout.html <-- here too