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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create object to scale based on users input 2

Status
Not open for further replies.

thirtyottsixx

Technical User
Aug 7, 2002
27
0
0
US
I'm trying to create a virtual classroom in Flash MX. People will be able to drag and drop lab items into the room to create a classroom. I want to have 2 form fields for Width and Length of the room in feet. (1 square foot will be 9x9 pixels.) When visitors enter their room in width in feet and length in feet, I want the flash movie to show a rectangle to scale.

You can view a rough mockup diagram at this URL:
Can anyone help with this? I have had no success looking for help from other resources.

Thanks in advance.
 
2 varaibles a,b input by user

moveTo(0,0);
lineTo(0,b*9);
lineTo(a*9,b*9);
lineTo(a*9,0);
lineTo(0,0);

hope this gets you on the right lines
 
Here's something Dave (davedesign) had done a while back!


Check the room.swf. Regards,

oldman3.gif
 
Thanks alot... that's a perfect explanation of what we're trying to do. You guys are great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top