you need to do it in actionscript, heres how you can do it (based on your requirement description):
that SHOULD do what you wanted to do, tell me if you have any trouble.Code://for each button on the stage, give them a class name, eg: Button1 //give each button an instance name and place them in array var buttons:Array - new Array(button1, button2, button3, etc); //loops though the buttons giving eventlistener for function showItems and hideItems foreach(var button in buttons) { button.addEventListener(MouseEvent.ROLL_OVER, showItems); button.addEventListener(MouseEvent.ROLL_OUT, hideItems); } //the easy way to display the items on the right is to make a movieclip //for each item containing the image and text //place each item movieclip on top of eachother where you want them to appear //and set each of their alpha properties to 0 //dont forget to give them the relative instance names: item1, item2, item 3 etc //for each button create a new property called targeter //and attach the relative item to each one button1.targeter = item1; button2.targeter = item2; button3.targeter = item3; //etc for all 9 function showItems(e:MouseEvent):void { e.currentTarget.targeter.alpha = 1; } function hideItems(e:MouseEvent):void { e.currentTarget.targeter.alpha = 0; }
flos




Reply With Quote
