More concise script?
Is there a way I can shorten this script so that I don't have to copy and paste it for each button?:
myContent(scrollPane.content).RetClip_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_SealInstaller);
function fl_ClickToGoToAndStopAtFrame_SealInstaller(event:MouseEvent):void
{
gotoAndStop("SealInstaller");
}
It seems like it would be pretty lengthy and messy of me just to copy and paste that same code for each of my 21 buttons. Now, I don't want to load them as an array. That's not my goal, but I was hoping there was another way to combine the script for all the buttons or just shorten it up.
I hope I'm making sense.
