tr394
11-17-2002, 05:48 PM
Hello,
I'm looking to create a flash movie which has the following behavior:
At the beginning mc1 is attached from the library at a random location. When it is clicked mc1 disappears and mc2 is attached randomly. When mc2 is clicked mc3 is attached randomly.
I've been having trouble getting anything to attach randomly. First of all, do I need to use linkage? I'm running flash XP. Secondly, I'm wondering why the following code won't work for the first attachment (it's on the first frame):
attachMovieClip(mc1, mcBlue, 1);
mcBlue._x = random;
mcBlue._y = random;
Any help would be appreciated, thanks!
Tim
I'm looking to create a flash movie which has the following behavior:
At the beginning mc1 is attached from the library at a random location. When it is clicked mc1 disappears and mc2 is attached randomly. When mc2 is clicked mc3 is attached randomly.
I've been having trouble getting anything to attach randomly. First of all, do I need to use linkage? I'm running flash XP. Secondly, I'm wondering why the following code won't work for the first attachment (it's on the first frame):
attachMovieClip(mc1, mcBlue, 1);
mcBlue._x = random;
mcBlue._y = random;
Any help would be appreciated, thanks!
Tim