- Home
- Tutorials
- Flash
- Intermediate
- Flash MX Object Oriented Menu using PHP
Flash MX Object Oriented Menu using PHP
This article has been added to your 'Articles to Read' list.

PART2 - ActionScript - Define some variables and set up a Text Format Object
First we need to set up some variables we will use later.
The itemNum array allows for the number of menus items we can create, ten is about all that will fit in the 400px movie height.
itemNum=new Array("one","two","three","four","five","six","seven","eight","nine","ten");
defX = 40;// starting _x for menu items
defY = 40;// distance _y btw each menu items
Now a basic Text Format Object. The TextFormat Constuctor lets a set of text properties bo grouped and applied, see the ActionScript Dictionary for further detail. myformat = new
TextFormat();
myformat.color = 0x999999;
myformat.font = "verdana";
myformat.bold=true;
myformat.align="left";
myformat.size=14;
The color, font and size are set here, which is why we weren't to concerned with this when setting up the 'but' MovieClip. Changes here are reflecteed in all the menu items, kind of like a style.
