|
-
[RESOLVED] [F8] Button not working?
For some reason, a button of mine that is on a seperate layer won't work. I turned it into a button, and added this code to it-
on(press){
gotoandStop(60);
}
When I roll-over the button, the cursor changes into a hand, as if it's a button, but when I click it, nothing happens.
Thanks in advance to any help. =]
-
Wait- what now?
gotoAndStop
you must capitalise the A
-
Oh.. it is capitilized, I just checked...
-
This code is on the button, correct? You are telling the button to go to frame 60 - is this correct?
Try giving the button an instance name (such as forwardBtn), then using this code in a separate layer called ACTIONS (first frame):
var forwardBtn:Button;
forwardBtn.onPress = function():Void {
gotoAndStop(60);
}
-
[Horse Thief]
are you navigating to frame 60 on your _root, or inside the button?
as in : _root.gotoAndStop(60);
OR : this.gotoAndStop(60);
1 Infinite Loop, Cupertino is a portal of Hell.
-
In the _root, gotoAndCrash.
-
[Horse Thief]
& using :
on(press){
_root.gotoAndStop(60);
}
doesn't work?
1 Infinite Loop, Cupertino is a portal of Hell.
-
No, that isn't working. I've uploaded the .fla to my website, I can't get it to attach to this post, it's too large.
http://www.tiffanydavisphotography.c...ertinytots.fla
It's the "photographer" button on the "photographer" layer. It's the same as all the other buttons, so I can't figure out why it isn't working like all the rest.
-
[Horse Thief]
found it - your photography button is a button in a button in a button!
so all you need to do is click on your photography button to select it & press (on a mac) command + B, which is Break Apart - whatever the equivelent is on a PC (if that's what you're on).
So do Break Apart two times, not just once - twice.
1 Infinite Loop, Cupertino is a portal of Hell.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|