Advanced
Lesson Five: Generating
a Movie Clip to place on a random location.
1.)
In this tutorial I will show you how to generate a symbol
you have created to randomly select a location on the
x axis .
----------------------- -----------------------
2.)
You will first of all be working with 2 symbols and
your actions panel..
3.)
Select your symbol, and make sure it has been given
an instance name. .
----------------------- -----------------------
4.)
Open your actions panel,
and assign the object to pick a random location on the
axis using the ._x extension, and the random() function.
I chose 500, so it will be generated on a random location
within 500 pixels of the main timeline. I also used
the onClipEvent(load) function, so that the code would
only be executed once, and he will only be assigned
1 locaion when executed..
----------------------- -----------------------
5.)
When published you will
see that the location of the symbol you have placed,
was set on a random place on the screen.
.