onEnterFrame in a class

[COLOR=black][FONT=Arial]Dear All,[/FONT][/COLOR]

I am studying “classes” in order to develop one that allows me to drive a car. After some tries a doubt came out: where to put the controls to drive the car? I mean, where to put the OnEnterFrame handler to refresh the position of the car? In the class or in the main fla?

[COLOR=black][FONT=Arial]I tried this and worked, but I am not sure if this is the best way:[/FONT][/COLOR]

 
//Main .fla
stop();
var Car:car= new car ();
var onEnterFrame:Function = Update;
function Update(){
         Car.Run();
         }

[SIZE=3][FONT=Times New Roman]Is it possible to have the handler in the class?[/FONT][/SIZE]

[SIZE=3][FONT=Times New Roman]Thanks in advance for your help[/FONT][/SIZE]