Hello, I have a button called home in each of my frames that goes back to the main screen but how can I code this so I dont have to repeat the code in each of those frames with the button “home”–
//Home
home_btn.addEventListener(MouseEvent.CLICK, home3);
function home3(event:MouseEvent):void{
gotoAndStop(1);
}