Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resize Flash (movie itself) on the fly

Status
Not open for further replies.

klaforce

Programmer
Mar 25, 2005
124
US
Is it possible to resize the size of the Flash movie itself on the fly? For example if you go to Modify->Document and set the width and height to 500 by 500. Is it possible to change it to 600 by 600 with actionscript? Thank you for the help.



Keith


The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
 
well if had some server side script like php you could use a getURL function on the movie to the same page but add a ?w=600&h=600.

Then get the data by

$w = $_GET['w'];
$h = $_GET['h'];

Then for the movie, where it says width="500" replace with $w

e.g.

width="500" height="500" >> width="$w" height="$h"


Regards,

Martin

Computing Help And Info:
 
Well that was not really what I was looking for, but your post triggered me to think up another way to do it. Thanks for your help.


Keith


The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
 
Well the data organization turned out to be too large to even try to fit into one page, so I used Flash forms to generate 24 pages (one per hour) and I should be able to fit all the data I need in one hour on a page. Thus, I do not need to resize at all. Thanks again for your post.


Keith


The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top