Mini-Grounds
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Drag function AS2

3 posters

Go down

Drag function AS2 Empty Drag function AS2

Post  avatarbobo Sun Jan 17, 2010 1:14 pm

hey there! i want to show you how to make a drag function in Actioscript 2, here is the code:

Code:
function drag ():Void {
   this.startDrag();
   this.onMouseMove = refreshscreen;
}

function drop ():Void{
   this.stopDrag();
   this.onMouseMove = null;
}

function refreshscreen ():Void{
   updateAfterEvent();
}

that's all. now, to use it, you must create a Movie Clip, and then put on the frame actions:

mymovieclip.onPress = drag;
mymovieclip.onRelease = drop;

You can use it endless times!


Last edited by avatarbobo on Mon Jan 18, 2010 9:29 am; edited 2 times in total

avatarbobo
Admin

Posts : 33
Join date : 2010-01-08
Age : 34
Location : Guatemala

Back to top Go down

Drag function AS2 Empty Re: Drag function AS2

Post  Exzeta Sun Jan 17, 2010 9:49 pm

AS2,3?
Exzeta
Exzeta
Admin

Posts : 34
Join date : 2010-01-08
Location : Guatemala

https://minigrounds.forumotion.net

Back to top Go down

Drag function AS2 Empty Re: Drag function AS2

Post  blargitown Thu Jun 24, 2010 1:00 pm

yes
blargitown
blargitown

Posts : 51
Join date : 2010-01-08
Age : 27
Location : United States

http://WebStarts.com/CalebRandomness

Back to top Go down

Drag function AS2 Empty Re: Drag function AS2

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum