[AS]for (var p=1; p < 5; p++) {
// create the clip where you load the picture
var mc=this.createEmptyMovieClip(“dodo”+p, p);
mc.loadMovie(“w.swf”, p);
// create the clip that will preload the picture
this.createEmptyMovieClip(“controller”+p,p+500).onEnterFrame=function(){
// actual preload
var clip=eval(“dodo”+p);
var l=clip.getBytesLoaded();
var t=clip.getBytesTotal();
// when the clip is loaded
if (l && l >= t) {
// declare the rollover
clip.onRollOver = function() {
this._x += 10;
this._y += 25;
};
// delete the preloader clip
delete this;
}
}
}[/AS]Something like this. Reassigning the onRollOver handler onEnterFrame like you did was, in my opinion, a bad idea.