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

Re. Furniture Layout

Status
Not open for further replies.
Jan 26, 2001
550
GB
Hey there, i posted a query about a furniture design layout application in flash a few days back.. Just wondered if Dave had had chance to look at it for me? If your busy dont worry just didnt want u to forget about me!

Thanks

Nick Price
 
NICK, APOLOGIES!!!!

I'm on the case just now, will post back within an hour or so!

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
ok nick

have a look at this:


the files are available as a zip at:


This is just for starters, I guess you'll be looking for something slightly different. But it gives us a basis to launch from. Just tell me what you want the user to be able to do.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
oops, better explain the above a little cos I didn't put any user instructions in the fla.

What you get is a couple of input boxes for the dimensions of the space. The blue rectangle in the corner is a very comfy sofa (not a table!! ;-) ) and can be dragged into position and rotated through 45-degree increments using the 'left' arrow key.

any more questions?

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Thanks Dave thats just what i was looking for, but 1 problem- i only have flash 4 and i can't open the .fla file! Also one more point: i need to leave a copy of each piece of furniture in a library at the side of the screen, so the user can use more than one of each piece. Is there a simple way of doing this?

Thanks a lot for your time

Nick Price
Web Designer
Solihull
 
Sure nick, no problem. I'm at the office just now so you'll have to hang on till tonight, unless someone else on the other side can make the necessary alterations in the meantime.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Hi Nick, sorry for the delay (hungover)


Clicking on an item of furniture creates a duplicate and intiates a "startdrag" function on the duplicate automatically, you then drop it in location be pressing the mouse again.

Once items are in place they can be dragged elsewhere just by clicking and dragging.

In order to allow the rotation of each item, each duplicate contains a button with the following "press" action:

Set Variable: "/:currentitem" = getproperty("",_target)

as well as the action which allows the user to drag each item of furniture independently.

Hope this all helps you, if you need more info on it, just shout and I'll do my best to respond quickly to you.

dave


dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
cheers for those mate, sorry about the delay getting back to you but i was off ill (not self induced hehe)
Those files are perfect, im just in the process of adding my own graphics and stuff.
Ill give u a shout if i need anymore help but i should be ok for now - ill give you the link once the site is done!

Thanks again for your time Nick Price
Web Designer
Solihull
 
nice one!

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Just one quick query dave.. is the room scale measured in pixels or just an arbitrary flash unit? I ask this because i need to create furniture graphics to scale in order for the application to be useful.

Cheers mate! Nick Price
Web Designer
Solihull
 
sorry to keep bothering u but i might as well ask this along with my last question: is there a simple way of clearing the room of all duplicated furniture, if the user wishes to start again? Or would it just be easier to reload the .swf to begin again? Nick Price
Web Designer
Solihull
 
You could just create a button, assign the button a Loadmovie action to reload the movie into level0. It should refresh instantly because the user would have the swf in their cache. That would be the easiest solution.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
if you wanted the room to be retained, then split the existing movie into 3 movies.

Cut out the frames which contain the room input boxes and room mc's, paste them into a new movie.

Create a new movie which loads what's left of (ie: furniture) the original movie into level1 and the room movie into level2. (simple loadmovie action in first frame of empty movie)

You're 'refresh' button would then contain an action to load the 'furniture' movie into level1.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
if you wanted the room to be retained, then split the existing movie into 2 movies.

Cut out the frames which contain the room input boxes and room mc's, paste them into a new movie.

Create a new movie which loads what's left of (ie: furniture) the original movie into level1 and the room movie into level2. (simple loadmovie action in first frame of empty movie)

You're 'refresh' button would then contain an action to load the 'furniture' movie into level1.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
heya dave, this is going ok but i have a slight problem: I have done as you suggest and created a furniture movie, a roommaker movie, and a movie to load them both into. The only problem is, when i load the movie, the roommaker doesnt work (even though it works when i load the roommaker movie independently). When I upload the files, the roommaker movie does not even appear at all!

Here is a link to the files if u need to have a look:


and the actual movie link:


Any help would be greatly appreciated. Thanks again for your help ;)
Nick Price
Web Designer
Solihull
 
i better just elaborate on the last post a bit: i have made the roommaker movie less high than the main movie window and have used a movieclip in the choiceloader movie to determine its position in the main window. I did this in an attempt to avoid the overlapping of the 'room' with the furniture controls when the user entered larger dimensions. Maybe this could be something to do with the problem? Nick Price
nick.price@misuk.net
 
having a look now Nick davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Simple problem here Nick. Because movies have been loaded onto differing levels/tagets, the targeting within the 'room maker' mc is topsy-turvy, so I changed the code thus:

Duplicate Movie Clip ("_level0/roomhere/h", "h1", 1)
Duplicate Movie Clip ("_level0/roomhere/h", "h2", 2)
Duplicate Movie Clip ("_level0/roomhere/v", "v1", 3)
Duplicate Movie Clip ("_level0/roomhere/v", "v2", 4)
Comment:
Set Property ("_level0/roomhere/h1", X Scale) = /:horizontal*10
Set Property ("_level0/roomhere/h2", X Scale) = /:horizontal*10
Set Property ("_level0/roomhere/v1", Y Scale) = /:vertical*10
Set Property ("_level0/roomhere/v2", Y Scale) = /:vertical*10
Comment:
Set Property ("_level0/roomhere/h1", X Position) = 230
Set Property ("_level0/roomhere/h2", X Position) = 230
Set Property ("_level0/roomhere/v1", Y Position) = 120
Set Property ("_level0/roomhere/v2", Y Position) = 120
Comment:
Set Variable: "/:vheight" = (getproperty("_level0/roomhere/v2", _height))/2
Set Variable: "/:hwidth" = (getproperty("_level0/roomhere/h2", _width))/2
Comment:
Set Property ("_level0/roomhere/h1", Y Position) = 120-/:vheight
Set Property ("_level0/roomhere/h2", Y Position) = 120+/:vheight
Set Property ("_level0/roomhere/v1", X Position) = 230-/:hwidth
Set Property ("_level0/roomhere/v2", X Position) = 230+/:hwidth


...to take into account that the movie has been loaded into another mc-target.

Sorted.
dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
nice one mate im on the case now. thanks again Nick Price
nick.price@misuk.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top