I've added a pill button to a scene ("getting_started") whose actions are supposed to go to another scene ("main_menu"). I've tried a number of things with no luck:
1. In the pill button's properties in the library -
The onRelease function (one of a few in the component):
this.onRelease = function() {
_root.gotoAndStop("main_menu", 1);
pressing = false;
No result, but I did add a trace("clicked!") to debug, and saw output when clicked.
2. added the above code to the frame of the button
3. added the above code to the movie clip in the frame
4. added the name of the instance of the button (I called it "main") to the previous attempts code
I've been trying to figure this out through other sites and similar posts, but found no luck. Any suggestions?
Thanks
There's a post on here that was of no help to me
1. In the pill button's properties in the library -
The onRelease function (one of a few in the component):
this.onRelease = function() {
_root.gotoAndStop("main_menu", 1);
pressing = false;
No result, but I did add a trace("clicked!") to debug, and saw output when clicked.
2. added the above code to the frame of the button
3. added the above code to the movie clip in the frame
4. added the name of the instance of the button (I called it "main") to the previous attempts code
I've been trying to figure this out through other sites and similar posts, but found no luck. Any suggestions?
Thanks
There's a post on here that was of no help to me