so I was just messing around in flash, and noticed something rather strange about an onclip event.
[AS]onClipEvent (load) {
randomNumber = Math.floor(Math.random()*5);
_parent.holder.loadMovie(randomNumber+".jpg");
trace(randomNumber+".jpg");
}
[/AS]
That is the basic code, if I am to target holder or _parent.holder, or _root holder. This onclipEvent acts as I would suspect. but if I am to add “this” to the loadmovie line
this.loadMovie(randomNumber+".jpg");
I get a repeating trace…
why is that?
if I take out the two lines above the trace command it only traces once.
whats going on?