PDA

View Full Version : Flashmenu with static pages


gijsgg
09-15-2009, 04:42 PM
I'm new with Flash and i am totally flipping out, i tried everything and searched for 3 days...

I've made a menu for the head of a website with a few pages:
-home
-page1.html
-page2.html
-page3.html
-about.html

I made a layer with the buttons and a layer with actions, it al works fine but now i want to have the button from de current page in the down state. I tried a lot and with gotoandstop(); but i can't get it to work...

the actionscript i currently use:
home.addEventListener(MouseEvent.MOUSE_DOWN, homeHandler);
function homeHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("home.html"),"_top");
}

page1.addEventListener(MouseEvent.MOUSE_DOWN, page1Handler);
function page1Handler(event:MouseEvent):void {
navigateToURL(new URLRequest("page1.html"),"_top");
}

Etc...

Do you know some examples or good illustrated tutorials?