experimenting with a click drag menu for navigating a site. however this menu sometimes gets in the way of text so i was thinking of adding a minimise function so it pops to, lets say, top right of the screen, no matter where the minimise function is called.
i’m pretty new at actionscript so i can only give pseudo-code as a rough guide to what the minimise function will do.
1)onclick, note the x and y coordinates of menu (this is where i need help, how can you ask for the x-y coordinate and create variables from them?)
2)apply x and y coordinate to formula to have it “slide” into place
3)scale down respectively until about 10% of original size / replace with “restore” button
btw, i have a sample code i have been staring at for a while (i didn’t write it, would it come in useful?)
onClipEvent(load){
this._x = -100;
endPosx = 850;}
onClipEvent(enterFrame){
currentPosx = this._x;
diffPosx = endPosx - currentPosx;
movex = diffposx/3.5;
this._x = this._x+movex;}
Thanks!