can you help me find where I can change the spacing, size and add sound to the button its a nav component…
====== actionscript code below ==========
//------------------------------------------
// Settings
//------------------------------------------
s_bar._y = -12
ro_bar._y = 10
ease = 4
//------------------------------------------
// Setting up the menu
//------------------------------------------
// The menu holder
menu=holder
// the list of the buttons
var itemList = []
var current:MovieClip;
var tarBtn:MovieClip;
//------------------------------------------
// Loading the XML file
//------------------------------------------
// The xml data
var xmlSource:XML = new XML
// Loading the xml
xmlSource.onLoad = function(success:Boolean):Void {
// When the load finishs...
if (success) {
// The first node of the xml
xmlRoot = xmlSource.childNodes[0]
// The item nodes
xmlItems = xmlRoot.childNodes
// The total of items
total = xmlItems.length
// Creating the buttons
for (i=0; i<total; i++){
// Attachs the buttons
holder.attachMovie("button", "button" + i, i)
// Pushs them in the itemList[]
itemList* = holder["button" + i]
// Puts the text
itemList*.txt.text = itemList*.txtColor.text = itemList*.ref.mcReflect.txt.text = itemList*.ref.mcReflect.txtColor.text = xmlItems*.[attributes.name](http://attributes.name/)
// Resizes the textField to the text length
itemList*.txt.autoSize = true
itemList*.txtColor.autoSize = true
itemList*.ref.mcReflect.txt.autoSize = true
itemList*.ref.mcReflect.txtColor.autoSize = true
// Centers the text in the _y axis
itemList*.txt._y = itemList*.txtColor._y = -itemList*.txt._height/2
// Resize and repositionates mask and reaction area to the text dimentions
itemList*.area._width = itemList*.txt._width
itemList*.area._height = itemList*.ref.mask._height = itemList*.txt._height
itemList*.area._y = itemList*.txt._y
itemList*.area._x = itemList*.txt._x
itemList*.ref._y = 0
// Hides the color of the text
itemList*.txtColor._alpha = 0
// Gives the respective color to the buttons
itemList*.txtColor.textColor = itemList*.c =itemList*.ref.mcReflect.txtColor.textColor = "0x"+xmlItems*.attributes.color
// Sets the link
itemList*.link = xmlItems*.attributes.link
// Information for the "wave" effect
itemList*.minScale=minScale
itemList*.yProx=yProx
itemList*.xProx=xProx
// Gets the total width of the menu
menuWidth = menu._width
// Starts centering the buttons and the repositionation of the them
for (z=1; z<=total; z++){
// Makes the buttons to be next to the other
itemList[z]._x = itemList[z-1]._x + itemList[z-1]._width
}
//the startung button
if (i==0){
current=itemList*
current.current=true
tarBtn=current
changeBarColor(itemList*.c, ro_bar)
changeBarColor(itemList*.c, s_bar)
}
}
}
}
level = 1
// ignore white
xmlSource.ignoreWhite = true;
// Loads the .xml file
xmlSource.load(“source.xml”);
holder.onEnterFrame = function(){
ro_bar._x += (tarBtn._x - ro_bar._x)/ease
ro_bar._width += (tarBtn._width - ro_bar._width)/ease
s_bar._x += (current._x - s_bar._x)/ease
s_bar._width += (current._width - s_bar._width)/ease
if (ro_bar.color2._alpha<100){
ro_bar.color2._alpha+=12
}
if (ro_bar.color1._alpha<100){
ro_bar.color1._alpha+=12
}
if (s_bar.color2._alpha<100){
s_bar.color2._alpha+=12
}
if (s_bar.color1._alpha<100){
s_bar.color1._alpha+=12
}
}
function changeBarColor(color, bar){
if (level==1){
level=2
bar.color2.swapDepths(_root.getNextHighestDepth())
ROBarColor = new Color (bar.color2)
ROBarColor.setRGB(color)
bar.color2._alpha=0
} else {
level=1
bar.color1.swapDepths(_root.getNextHighestDepth())
ROBarColor = new Color (bar.color1)
ROBarColor.setRGB(color)
bar.color1._alpha=0
}
}