# Random motionnnnn

**URL:** https://forum.kirupa.com/t/random-motionnnnn/1984
**Category:** Uncategorized
**Created:** [March 30, 2002, 6:22pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984 "2002-03-30T18:22:51Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 30, 2002, 6:22pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/1 "2002-03-30T18:22:51Z")

</div>

i read the tutorial for flash 5 to make a symbol move randomly. I tried to use it with flash mx and it doesn’t work. I really need help because im getting payed for this. Please anybody helpppp mmeeeeeeeeeeeeeeeeeee

[[n30m@$t3r]]

-=[ViVeRe MiLiTaRe EsT]=-

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 30, 2002, 10:38pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/2 "2002-03-30T22:38:28Z")

</div>

I had the same problem, and I couldn’t find what was wrong about it… Maybe Supra will know…

pom 0]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 31, 2002, 3:22am UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/3 "2002-03-31T03:22:33Z")

</div>

Hey,

This should help, its pretty simple, to make a symbol move randomly your code should be something like this. For example say you have an MC named circle.  
onClipEvent(enterFrame){  
\_root.circle.\_y=random((100) + 50);  
}  
}

I’m sure you know what this does, if not post again.  
Hopefully this will help you!

Kyle

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 31, 2002, 9:17am UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/4 "2002-03-31T09:17:35Z")

</div>

Thanks Iceman, but he was refering to a tutorial on this site. 😃

pom 0]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 31, 2002, 10:00pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/5 "2002-03-31T22:00:11Z")

</div>

iceman thats just what i needed, the tutorial didnt work for me so i neede help. Thx a lot! =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 31, 2002, 10:02pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/6 "2002-03-31T22:02:39Z")

</div>

i tried to use youre code but it didn’t work…please tell me if i need to do something else because im just starting to know actionscript

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 1, 2002, 12:24am UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/7 "2002-04-01T00:24:55Z")

</div>

Hey neomaster,

Without the .fla I can’t really see whats wrong your code maybe you forgot to name the instance or something, but if you want to send me the .fla, I could see whats going on!  
E-Mail: [iceman4@sympatico.ca](mailto:iceman4@sympatico.ca)

Hope this Helps!

Kyle

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 1, 2002, 11:00pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/8 "2002-04-01T23:00:17Z")

</div>

I created a MC  
and named it “circle”  
and then in frame 1 I entered your script and nothing happened.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 1, 2002, 11:17pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/9 "2002-04-01T23:17:05Z")

</div>

Hey,

The reason its not working is because you attached the code to a frame rather then a movieclip. When you create the circle mc attach the code to that circle mc on the stage, because the onClipEvent(enterFrame){ part of the code that I gave you will only work if you attach it to a movie clip. The enterframe part of the code keeps repeating everything that you enter after the onClipEvent(enterFrame) part of the code. So just attach the code that I posted to the circle mc and make sure its onClipEvent(enterFrame) and not onClipEvent(load). Hope this helps!

Kyle

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 2, 2002, 12:24am UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/10 "2002-04-02T00:24:40Z")

</div>

i did that and it still doesnt work.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 2, 2002, 12:53am UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/11 "2002-04-02T00:53:30Z")

</div>

Hey,

can you send me the .fla, at [iceman4@sympatico.ca](mailto:iceman4@sympatico.ca) then I can for sure figure out whats going wrong!

Thanks

Kyle

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 3, 2002, 10:43pm UTC](https://forum.kirupa.com/t/random-motionnnnn/1984/12 "2002-04-03T22:43:55Z")

</div>

Hey my pc crashed with some virus and now i have to get the flash mx again. anyways im sure i did what u said. i made an MC called circle and i placed it on the first frame i selected the circle and in actions i pasted what you had posted. i wont be able to send you the .fla until i get flash. thx neways
