Groups | Blog | Home
all groups > flash actionscript > may 2007 >

flash actionscript : startDrag save position



leothomas
5/22/2007 11:07:31 PM
I'm using startDrag and stopDrag along with movie clips to allow the user to
drag image thumbnails around within a browser window. They can then click on a
smaller button within any thumbnail to be taken to a larger version of the
image via loadMovie. When the user returns to the thumbnails, I would like the
thumbnails to be right where the user dragged them to earlier.

I've read this is possible via cookies, but I'd prefer to stay in flash and I
shudder at the thought of learning how to script a cookie.

thanks
kglad
5/22/2007 11:59:54 PM
leothomas
5/23/2007 1:11:33 AM
Only when the user returns to the thumbnails during the same session. I really only need the "memory" of the thumbnail position to last 15 minutes or so.

Please, thank you.

kglad
5/23/2007 4:06:01 AM
then store each thumbnails initial position as a property of the thumbnail. for example,

thumb1.initialX=thumb1._x;
AddThis Social Bookmark Button