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.

PHP Forum


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



Freelance Jobs

Reply
Auto resize flash in PHP
Old 05-10-2005, 01:10 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:40 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't do that with PHP you will need to use javascript and actionscript to operate client-side.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2005, 03:06 PM
Novice Talker

Posts: 5
Trades: 0
So how does ebaumsworld.com

and

gprime.net

do it ? I dont' see java anywhere.
zander is offline
Reply With Quote
View Public Profile
 
Old 05-10-2005, 04:22 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
dunno I don't see any flash files resizing any where. The page element resize around them but the swf is still the same size.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-11-2005, 01:53 AM
Logical Program's Avatar
Super Talker

Posts: 130
Location: Atlanta, Georgia
Trades: 0
From what it looks like, your specifying the embed source to be 100% of the width and 100% of the height of a table or something. The table might not be in the same proportion as the mbedded object.

Try only defining one, either the width or the height. Like images, the embed source may resize itself proportionately automatically.
__________________

Please login or register to view this content. Registration is FREE
- For all of your website programming and design needs, make the logical choice. Logical Assistance For Real-World Clients.
Logical Program is offline
Reply With Quote
View Public Profile Visit Logical Program'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.32250 seconds with 12 queries