Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Auto resize flash in PHP
Old 05-10-2005, 12:37 PM Auto resize flash in PHP
Novice Talker

Posts: 5
Trades: 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
zander is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-10-2005, 01:05 PM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
Trades: 0
I belive you posted in the wrong section.... you may want to look here in the PHP section of the forum

good luck
__________________
It Happens

Please login or register to view this content. Registration is FREE
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Old 05-10-2005, 01:09 PM
Novice Talker

Posts: 5
Trades: 0
They'll just tell me it's a html problem and not a php one.

*sign
zander is offline
Reply With Quote
View Public Profile
 
Old 05-10-2005, 03:10 PM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
Trades: 0
ok well random thought.... play with the width in pixels.... or try just not even using the width variable (this usually defaults it to 100%)......

Just some random guesses
__________________
It Happens

Please login or register to view this content. Registration is FREE
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Old 05-10-2005, 06:02 PM
Novice Talker

Posts: 5
Trades: 0
actually NOT adding in a width and height just auto displays each flash file in 100x100.
zander is offline
Reply With Quote
View Public Profile
 
Old 05-10-2005, 06:48 PM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
Trades: 0
Ok.....I just read your orginal post again and I missed something before....I belive what you want to do is set the height and width to that of the orginal dimesnions of the flash file....you are going to have to find out the size of the flash you want to use and then set the height and width accordingly.....

Have you tried looking in the forums over at Flash Kit
__________________
It Happens

Please login or register to view this content. Registration is FREE
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Reply     « Reply to Auto resize flash in PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60316 seconds with 12 queries