Skip to main content
Inspiring
June 13, 2006
Question

attachmovie problem

  • June 13, 2006
  • 2 replies
  • 216 views
i have this actionscript:
on(press){
i=1
mc = attachMovie("ketchupsplatter","ketchupsplatter"+i,i)
i++
mc._x = _xmouse;
mc._y = _ymouse;
mc._rotation = random(360);
}

its on a movie clip that i want the splatter to appear on only. my problem is that whenever i click on it again to put more splatter on it, the previous one disappears. what can i do or add to this script to make it so that it just adds more splatter?

thanks
This topic has been closed for replies.

2 replies

JimmathyAuthor
Inspiring
June 13, 2006
okay, i now know what the problem is, but what i dont know is how to make the variable( i ) co up consecutively after each splatter is made. How is this done?
kglad
Community Expert
Community Expert
June 14, 2006
among the ways:

kglad
Community Expert
Community Expert
June 13, 2006
i is always 1 when you attach your movieclip at depth i.