Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 7
1 Users 7 Guests Online

Custom Menu

First off, lets create a bunch of functions for our menu, add as many as you need, I'm using three, the reason why I'm using functions for this
is because it is a lot easier to edit

Code


function one()
{
getURL(\"http://www.aussieferal.com\");
}
function two()
{
getURL(\"http://www.tutnation.com\");
}
function three()
{
gotoAndPlay(SOME FRAM NAME OR NUMBER);
}



Now edit the menu!


Code


NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();




Hide the in built menu buttons

Create the new buttons



Code


NewMenu.customItems.push(new ContextMenuItem(\"TITLE HERE\", menuChoiceOne));

NewMenu.customItems.push(new ContextMenuItem(\"Copyright AussieFeral.com\", menuChoiceTwo));

NewMenu.customItems.push(new ContextMenuItem(\"GO TO SOME PLACE IN THE FLASH MOVIE\", menuChoiceThree));



Make the new meny


Code
this.menu = NewMenu;




Enjoy!

I hope you learnt a bit from this tutorial, and I've broken up the code
so you can't just copy and past ;) you'll actually learn something this way.

Cheers, comments welcome.
chrism
Author:
Views:
2189
Rating:
There are currently no comments for this tutorial.