Can't get actionscript to work

I'm very new to flash and I've watched many tutorials and I'm pretty  much doing exactly as I've seen others doing, but mine won't work.  I'm  trying to build an application that serves as a header for a website.  I  want there to be animations by the logo and several mouse generated  events: over, leave, click.  I'm no longer getting any compiling errors  on my actionscript, but when I test the movie none of it works.  The  "stop();" doesn't work at all.  None of the mouse related events work.   FRUSTRATING!!!
I'm attaching my fla document and I  would love it if someone could help me so I don't lose my mind.
Note:  I haven't finished animating all the differnet mouse related events,  but none of the valid code actually works, so I've stopped until I can  get it to work.  Thanks in advance.
Spencer

I created a layer and named it "actions" to put all of my code in.  It is the top layer if that matters.  Within that layer I have put keyframes, and within those keyframes lies the code(option F9 on my mac to get to the actions screen).  In the first keyframe(frame 1), this is the code:
portfolioButton.addEventListener(MouseEvent.MOUSE_OVER, gotoOverPortfolio)
portfolioButton.addEventListener(MouseEvent.MOUSE_LEAVE, leavePortfolio)
portfolioButton.addEventListener(MouseEvent.CLICK, gotoPortfolio)
pricingButton.addEventListener(MouseEvent.MOUSE_OVER, overPricing)
pricingButton.addEventListener(MouseEvent.MOUSE_LEAVE, leavePricing)
pricingButton.addEventListener(MouseEvent.CLICK, gotoPricing)
homeButton.addEventListener(MouseEvent.MOUSE_OVER, overHome)
homeButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveHome)
homeButton.addEventListener(MouseEvent.CLICK, gotoHome)
servicesButton.addEventListener(MouseEvent.MOUSE_OVER, overServices)
servicesButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveServices)
servicesButton.addEventListener(MouseEvent.CLICK, gotoServices)
contactButton.addEventListener(MouseEvent.MOUSE_OVER, overContact)
contactButton.addEventListener(MouseEvent.MOUSE_LEAVE, leaveContact)
contactButton.addEventListener(MouseEvent.CLICK, gotoContact)
function gotoOverPortfolio(event:MouseEvent):void
    gotoAndPlay (61);
function leavePortfolio (event:MouseEvent):void
    gotoAndPlay (61);
function gotoPortfolio (event:MouseEvent):void
    gotoAndPlay (61);
function overPricing (event:MouseEvent):void
    gotoAndPlay (61);
function leavePricing (event:MouseEvent):void
    gotoAndPlay (61);
function gotoPricing (event:MouseEvent):void
    gotoAndPlay (61);
function overHome (event:MouseEvent):void
    gotoAndPlay (61);
function leaveHome (event:MouseEvent):void
    gotoAndPlay (61);
function gotoHome (event:MouseEvent):void
    gotoAndPlay (61);
function overServices (event:MouseEvent):void
    gotoAndPlay (61);
function leaveServices (event:MouseEvent):void
    gotoAndPlay (61);
function gotoServices (event:MouseEvent):void
    gotoAndPlay (61);
function overContact (event:MouseEvent):void
    gotoAndPlay (61);
function leaveContact (event:MouseEvent):void
    gotoAndPlay (61);
function gotoContact (event:MouseEvent):void
    gotoAndPlay (61);
In the second and third keyframe(frame 60 and frame 99) I have the code:
stop(); and I have also tried this.stop();
******I'm aware that all the functions are pointing to the same frame but that's because I haven't created the animations yet.
Nothing the code is supposed to do works.
The entire timeline loops when I test the movie.  So I am seeing the first animation between Frames 1-60 and then instead of stopping it continues to frame 61-99.
I'm also now getting a compiling error when I test the movie:
1119: Access of possibly undefined property MOUSE_LEAVE through a reference with static type Class.

Similar Messages

Maybe you are looking for