code:
for (i=1; i<21; i++) {
buttons_mc["btn"+i+"_mc"].itemNum=i;
buttons_mc["btn"+i+"_mc"].onRollOver = function() {
////change text field to yellow on rollovers
myColor = new Color(this);
myColor.setRGB(0xFFFF00);
//Display Name in larger text
_root.name_txt.text = this.btn_txt.text;
//Hide description text and family kit picture
_root.see_product_mc._visible = false;
_root.description_txt._visible = false;
//show detailed product
items_mc.gotoAndStop(this.itemNum);
}
buttons_mc["btn"+i+"_mc"].onRollOut = function() {
myColor.setRGB(0xFFFFFF);
_root.name_txt.text = "";
_root.see_product_mc._visible = true;
_root.description_txt._visible = true;
};
}