Function call

Hi there, im currently using an onEnterFrame=function() comand, which works fine - but ive just been asked to make my movie flahs 5 compattable :frowning:

heres the code

on (release){
_root.sections.onEnterFrame=function(){
_root.sections._x-=(this._x-1103)*.25
}
}

flash 5 doesnt have an onEnterFrame event. Instead, you’d need to manually set up an onClipEvent(enterFrame) on the movieclip and handle it that way.

To make it easier on yourself, all you’d basically need to do is select _root.sections and add to it:

onClipEvent(enterFrame){
this.onEnterFrame();
}

and that should about cover you.