View Full Version : RANDOM MOTIONNNNN
neomaster
March 30th, 2002, 01:22 PM
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]=-
ilyaslamasse
March 30th, 2002, 05:38 PM
I had the same problem, and I couldn't find what was wrong about it... Maybe Supra will know...
pom 0]
iceman4
March 30th, 2002, 10:22 PM
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
ilyaslamasse
March 31st, 2002, 04:17 AM
Thanks Iceman, but he was refering to a tutorial on this site. :D
pom 0]
neomaster
March 31st, 2002, 05:00 PM
iceman thats just what i needed, the tutorial didnt work for me so i neede help. Thx a lot! =)
neomaster
March 31st, 2002, 05:02 PM
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
iceman4
March 31st, 2002, 07:24 PM
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
Hope this Helps!
Kyle
Baka Otaku
April 1st, 2002, 06:00 PM
I created a MC
and named it "circle"
and then in frame 1 I entered your script and nothing happened.
iceman4
April 1st, 2002, 06:17 PM
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
Baka Otaku
April 1st, 2002, 07:24 PM
i did that and it still doesnt work.
iceman4
April 1st, 2002, 07:53 PM
Hey,
can you send me the .fla, at iceman4@sympatico.ca then I can for sure figure out whats going wrong!
Thanks
Kyle
neomaster
April 3rd, 2002, 05:43 PM
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
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.