NameSilo

Auto resize flash with html in php

SpaceshipSpaceship
Watch

zander

New Member
Impact
0
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
instead of width= "100%" u can try 80% or something
it might work
 
0
•••
Yeah, I tried 80% , 85% and so on.

However, it doesn't work for all flash videos.
 
0
•••
i don't think there's auto resize.
 
0
•••
Anyone else have any other suggestions ?
 
0
•••
so how do those two site pull that off then ?
 
0
•••
Bump!
 
0
•••
bump bump bumP!
 
0
•••
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back