AS3 - framerate independent game

im trying to switch my game, that is using onEnterFrame to update the game, over to a timer based update so it will be frame rate independent. how is something like this achieved?