View Full Version : Building a docking station
Meridian
June 9th, 2003, 02:34 PM
Hi there, I tried to search all over the web, and several forums elsewhere, but haven't been able to find anything on how to build windows that minimize into a docking station in flash like these
www.crashshop.com
www.superhere.net
I have a basic understanding of how to move movies, but I don't know how to make them minimize, move to an empty slot, and return to their origional positions like in the links above.
If anyone knows a place where there's a tutorial, fla or even a book that I could buy that would be great. :)
meisje
June 10th, 2003, 04:21 AM
the 2 sites use different methods but this thread should give you some insight:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24435&highlight=scale+zoom
and for restoring to previous positions, store the values in.................... surprise, variables! :)
mlk
June 10th, 2003, 08:27 AM
meisje is right, basically i checked the first link and what flash does is minimize a movie (scale it with actionscript) and then set the _x and _y postions. Since it seems the order has no importance the _x postion is incremented each time, and if for example you close one of the windows that's in the beginning of the bar the _x value is decremented and each movie moves left...
senocular
June 10th, 2003, 10:21 AM
minimizing/maximizing can be handled just by pushing and popping windows on and off an array where you can then position their 'docked' icon based on that position in the array.
Meridian
June 10th, 2003, 12:38 PM
Hey thanks guys. I will take a look at the links and see what I can do. I'm much better at editing code to do what I need it to than I am at actually building something from scratch.
I'll take a look around in the forums for info on arrays and the other stuff you mentioned.
Meridian
June 17th, 2003, 01:53 PM
Ok it took me about a week but I finally figured out the moving part now I need to figure out how to move them to set positions and then incriment like mlkdesign stated.
I check this http://www.kirupa.com/developer/actionscript/tricks/incdec.asp
with is easy to understand but after that I'm lost.
Can I get a little nudge?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.