Search tutorials
STEP1
You make a button.Write as Instance name:"button"
You atach this code to it:
on (release) {
_root.button._x = random(500);
_root.button._y = random(500);
}
STEP2
You refer to the object(button)using the absolute method.
then you set random to choose numbers between 0 and the number you
want(500 in this case.)You this to the x and y axis and its done.:)
hope you find this usefull
You make a button.Write as Instance name:"button"
You atach this code to it:
on (release) {
_root.button._x = random(500);
_root.button._y = random(500);
}
STEP2
You refer to the object(button)using the absolute method.
then you set random to choose numbers between 0 and the number you
want(500 in this case.)You this to the x and y axis and its done.:)
hope you find this usefull
| » Level Basic |
|
Added: 2005-01-04 Rating: 5 Votes: 9 |
| » Author |
| I hope you'll find it usefull. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!