This should randomly decide whether to continue playing on through the clip or waiting on frame 112 until random is high enough. But for some reason it’s not even detecting currentframe == 112 :S I tried a trace statement just after the first if and i get nothing.
Any ideas?
stars.onEnterFrame = function() {
if (this._currentframe == 112) {
if (Math.random() >= 0.99) {
this.gotoAndPlay(113);
} else {
this.gotoAndPlay(112);
}
}
}