AS3 rollover, rollout and click.

Hello Everyone. Im learning Flash along with AS3. Im making a menu for flash website asignment which includes 5 movieclips (mc) with build-in rollover, rollout and click animation. It seems not to work as all (mc) can’t play click animation nor hold rollover animation (if i use* rollover animation* for click animation).

Besides, there is a problem that whenever I move my cursor over a mc, it keeps playing rollover animation ( I did solve the problem by removeevenlistener rollover when rollover function being executed and add it again when rollout function runs ).I think this may cause the problem i listed above.

Here is my code:

var M =[tc1_mc,tc2_mc,tc3_mc,tc4_mc,tc5_mc];

for(var i=0; i<5; i++) {
var Me=M[i];
Me.addEventListener(MouseEvent.CLICK, Click);
Me.addEventListener(MouseEvent.ROLL_OVER, RO);
Me.addEventListener(MouseEvent.ROLL_OUT, RU);

var Be=tc1_mc;
var Cur;

function Click(evt:MouseEvent):void {
if (Be) {Be.gotoAndPlay(34);
Be.addEventListener(MouseEvent.ROLL_OUT, RU);
Be.addEventListener(MouseEvent.ROLL_OVER, RO);
Cur.removeEventListener(MouseEvent.ROLL_OUT, RU);
Cur.removeEventListener(MouseEvent.ROLL_OVER, RO);


function RO(evt:MouseEvent):void {;, RO);
function RU(evt:MouseEvent):void {;, RO);

with Be: before; Cur : current target; 6, 34 , 63 : Rollover, Rollout, Click animation begining frame respectively. ( i did create label keyframe in a new layer within the mc with RO, RU and Click , when i click something, this error : ArgumentError : Frame label Click not found in scene Click at Maintimeline/Click() and at movieclip/gotoAndPlay() )

Here is the mc design:

Here is my file (no virus):

Thanks all in advance and SORRY FOR MY BAD ENGLISH (im not native). Have a nice day ahead!

Thank you guys for taking a look. I’ve solved my problems but i dont know how to delete this topic.