I'm trying to make an easily reusable button object for navigating to different frames in my main timeline. So after importing the object you would only need this one line of code, calling the updateButton member function to change the label text and target frame for the button:
Unfortunately I am having issues with calling updateButton from the main timeline. I think the function is not declared until after the 1st frame of myButton3 executes, so I am getting errors about this.myButton3.update() being undefined.
Is there a better way to declare the updateButton member function to make it easily callable from the main timeline?