Need help with actionscript!

Guys i want write an actionscript that can take a movieclip or jpeg file from the library onto the stage. And at the same time the movieclip or jpeg file taken must be random. Help please! Thanks alot :angel:

hi
put some movieclips in library (5 for example)
in the linkage-indentifier write (m1,m2,m3,m4,m5 for different movies)
then in main movie use attachMovie(“m”+random(5),“new name”)
good luck

[quote=angelbc;2358851]hi
put some movieclips in library (5 for example)
in the linkage-indentifier write (m1,m2,m3,m4,m5 for different movies)
then in main movie use attachMovie(“m”+random(5),“new name”)
good luck[/quote]

thanks angelbc. I did it exactly as you said, but the movieclip doesnt appear…

OK! I finally got it, Thanks alot! :beer2: