Need a bit of help with buttons and using functions that i already created in the past
Alright, i'll try to keep this brief. I'm working on a little project wheree it switches between a lot of scenes via buttons and on many of them only partial changes are applied, so my question is this: What command/commands could i use to recall/reuse a function originally created. As an example, here is one of the functions for the main screen.
BigPurpleButton1.addEventListener(MouseEvent.CLICK, Database);
function Database(evt:MouseEvent):void {
gotoAndStop(1, "Database");
}
There you go, i'd rather not make 231564 variations of the database function if there's a way to reuse it.
But so far i've made 3, i don't really want to complicate the code so for now i'll take a break until this can be figured out.
Any help would be greatly appreciated, thank you.