NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Auto resize flash with html in php

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-25-2005, 03:32 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



Question Auto resize flash with html in php


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
zander is offline  
Old 05-25-2005, 05:50 PM   #2 (permalink)
Senior Member
Join Date: May 2005
Location: Ontario Canada
Posts: 3,088
unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold
 


Diabetes
instead of width= "100%" u can try 80% or something
it might work
unknowngiver is offline  
Old 05-26-2005, 09:57 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



Yeah, I tried 80% , 85% and so on.

However, it doesn't work for all flash videos.
zander is offline  
Old 05-27-2005, 04:58 AM   #4 (permalink)
New Member
 
camilord's Avatar
Join Date: May 2005
Posts: 5
camilord is an unknown quantity at this point
 



i don't think there's auto resize.
camilord is offline  
Old 05-27-2005, 07:48 AM THREAD STARTER               #5 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



Anyone else have any other suggestions ?
zander is offline  
Old 06-01-2005, 12:35 PM THREAD STARTER               #6 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



so how do those two site pull that off then ?
zander is offline  
Old 06-01-2005, 12:36 PM THREAD STARTER               #7 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



Bump!
zander is offline  
Old 06-15-2005, 10:57 AM THREAD STARTER               #8 (permalink)
New Member
Join Date: May 2005
Posts: 9
zander is an unknown quantity at this point
 



bump bump bumP!
zander is offline  
Old 06-15-2005, 12:40 PM   #9 (permalink)
NamePros Regular
Join Date: Oct 2003
Location: Sweden
Posts: 395
cerebus has a spectacular aura aboutcerebus has a spectacular aura about
 


Animal Rescue Wildlife Animal Cruelty
Use getimagesize() and set width and height for the <embed> tag
cerebus is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 10:09 AM
Flash Deadly Sins (that can kill your web business) abacomedia Graphic Design / Flash 2 06-26-2004 10:32 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:56 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger