Flash help
- Started
- Last post
- 6 Responses
- machito
I'm trying to figure out a way to take various objects/images in flash and allow a script to place them randomly on the stage till it fills up the stage completely. Anyone have any ideas?
- gun0
you could always use hitTest.
- machito0
I'm not familiar with this Hit Test.
- mrming0
Here's a script I used to distribute some stars randomly on a stage measuring 450 x 300:
for (i = 2; i <= 50; i++) {
duplicateMovieClip("starholder.s... "starclip"+i, i);
setProperty("starholder.starclip... _y, random(300));
setProperty("starholder.starclip... _x, random(450));
setProperty("starholder.starclip... _alpha, 300-(this["starholder.starclip...
}
- machito0
Thank you , I really appreciate that.. I'll try it out and see how it works.
- machito0
Thanks again, it works great.. I'll try to play with it a bit but the basic idea is there.
- mrming0
No probs - glad I could help!