Flash components, flash files, the best flash components source, download flash components and flash extensions, sell flash components, buy flash
 
Search

home » flash components » flash menus » textmenubar »

TextMenuBar

Open in larger window:
600x360 or 800x480
FlashStore rating:
User rating: Not rated yet.
Date: 16-02-07
Submited by: jumpeye
Skill: beginner
Price: $ 39.99
 
About
TextMenuBar is a highly customizable flash menu component that enables flash developers to embed advanced flash tweening menu bars inside their web pages in minutes, saving precious time and money. TextMenuBar works in particular with Flash 8 and Flash MX2004 and it is usable in flash or HTML site. The vertical and horizontal alignment can be set from the properties panel. TextMenuBar enables customization for each item from the menu through a XML file.
For customization, five ease effects are available from the XML file, allowing different colors, text size, text font, text format for each item in a rollover event.

Compatibility:
Flash MX2004/8 published for Flash Player 7+
UI Access
Components panel under UI Pro Components – jumpEYE.
Support address
Useful links
Download documentation
TextMenuBar documentation (65.48 KB)
Code samples
Properties
activeStates(defaultValue=true) :Boolean -property type boolean, true if the menu can have an active item, otherwise, if false, even an item is pressed, at the rollout event the text format for this item will change to the initialization properties.

horizontalAlign(default = "left") :String - property type string, indicates the horizontal alignment for the TextMenuBar. As default this is “left” and the TextMenuBar will have the fix point the X coordinate of the TextMenuBar, if it’s set to “right” the fix point will be the X coordinate of the TextMenuBar + the width of TextMenuBar. In addition, this property can be set to “center”.

verticalAlign (default="center"): String – property type string, indicates the vertical alignment of the TextMenuBar. It can be set to vertical alignment with “up”, “down” and “center”. If this property is set to “up” when the rollover event is taking place, the item will go down, if it’s set to “down”, the item will go up, otherwise if it’s set to “center” the item will have the fix position the center of its.

xmlPath(defaultValue="")-the path to the xml that will be loaded.

Methods
loadXML(arg:String)-this method can be used if there is a need to change the xml path to load another xml for the component, or if the component is attached from script one can use this method to load the xml.

setActiveItem(arg:Number)- method used to set active a menu item; arg – a number that indicates the index of the menu item that will be set as active. This method is used after the initialization of the component has been completed.

getActiveItem(arg:Number)- returns an integer, the index of the active menu item.

playIcon(index: Number, frame:Number ) - If there is an animation inside the icon clip, this method can be used to play the animation from the wanted frame. Index- optional, a number indicates the index of the menu item, if this parameter is undefined, it will play the animation from current roll over menu item. Frame – optional, a number representing the frame number to which the playhead is sent, if it is undefined the animation will play from the _currentframe.

Events
onLoadXmlComplete(arg:Object)-broadcast when the xml has been loaded completed successfully. Returns an object with an xml property, which is the xml file.

initializationComplete ()-broadcast when the initialization of the TextMenuBar has finished.

onItemPress (arg:Object)-broadcast when an item is pressed; returns an object with the three properties: properties, id, and target; properties is an XMLNode from the xml file for that item, id is the menu item’s from the menu and target, which is the reference of the item.

onItemRelease (arg:Object)-broadcast when an item is released; returns an object with the three properties: properties, id, and target; properties is an XMLNode from the xml file for that item, id is the menu item’s from the menu and target, which is the reference of the item.

onItemRollOver (arg:Object)-broadcast when mouse cursor roll over of an item; returns an object with the three properties: properties, id, and target; properties is an XMLNode from the xml file for that item, id is the menu item’s from the menu and target, which is the reference of the item.

onItemRollOut(arg:Object)- broadcast when mouse cursor roll out of an item; returns an object with the three properties: properties, id, and target; properties is an XMLNode from the xml file for that item, id is the menu item’s from the menu and target, which is the reference of the item.

Code Samples
var listener:Object=new Object();
listener.onLoadXmlComplete=function(arg)
{
//trace ("xml loaded"+arg.xml)
}
listener.initializationComplete=function ()
{
//trace("init complete")
}
listener.onItemRollOver=function(arg)
{
//trace("item roll over "+arg.id+"::"+arg.target)
}
listener.onItemRollOut=function(arg)
{
//trace("item roll out "+arg.id)
}
listener.onItemRelease=function(arg)
{
//trace("item released "+arg.id)
}
listener.onItemPress=function(arg)
{
//trace("item press "+arg.id)
}
clip.addEventListener("onLoadXmlComplete", listener)
clip.addEventListener("onItemRollOver", listener)
clip.addEventListener("onItemRollOut", listener)
clip.addEventListener("onItemRelease", listener)
clip.addEventListener("onItemPress", listener)
clip.addEventListener("initializationComplete", listener)


Buyer reviews

No reviews.


User Comments

awsome by papusharu   date: 02-05-07   
Very nice elastic menu, i like it a lot! It saves very much time..
read all comments   login to post your comment  

Advertising

Credentials

FlashStore is now Adobe Solution Partner for Flash Components

As seen advertised at theFWA.com