Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Randomizing
Author: adrnmh
| Website: http://www.adrnmh.home.ro |
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
| » Level Basic |
|
|
Added: : 2005-01-04
Rating: 5.22 Votes: 9
Hits: 361
|
| » Author |
|
I hope you'll find it usefull.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|