Hi guys,

I'm having a problems creating buttons and links in Flash CS4.

I'll try and explain as coherently as I can, but am really struggling to see where I've gone wrong.

I've got a movie with 8 layers, the lower 7 have instances that are animated from frame 1 to 189.
The top layer (8th) is then a layer of Buttons (named Buttons) that replaces these instances with buttons on the 190th frame.
On the 190th frame is where I've put the following actionscript:

Code:
about.addEventListener(MouseEvent.MOUSE_DOWN, aboutHandler);
function aboutHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("about.html"),"_self");
}

contact.addEventListener(MouseEvent.MOUSE_DOWN, contactHandler);
function contactHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("contact.html"), "_self");
}

publicbtn.addEventListener(MouseEvent.MOUSE_DOWN, publicHandler);
function publicHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("public.html"), "_self");
}

blog.addEventListener(MouseEvent.MOUSE_DOWN, blogHandler);
function blogHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("blog.html"), "_self");
}

design.addEventListener(MouseEvent.MOUSE_DOWN, designHandler);
function designHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("design.html"), "_self");
}

illustration.addEventListener(MouseEvent.MOUSE_DOWN, illustrationHandler);
function illustrationHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("illustration.html"), "_self");
}

film.addEventListener(MouseEvent.MOUSE_DOWN, filmHandler);
function filmHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("film.html"), "_self");
}
I've tried putting the code on a different layer, and on the first frame, but to no avail. When I put the code on the first frame, it just stops there, which confuses me as I thought you need a stop() code stop the movie.
I've managed to get buttons working on a similar single framed movie, so this is really puzzling me. Just moved on to CS4 from Flash 8, so ActionScript 3.0 is still very new to me, and I only knew very basic ActionScript in the first place, I always used to put code on the buttons rather than the timeline.


Thanks in advance for any help you can give, any question about what I've done I'll try and answer as detailed as I can.


midzt