View Full Version : Flash ActionScript button prob
Lincoln
12 Feb 2004, 7:16pm
Using Flash MX 2004 I wrote some text, converted it to a symbol (behavior: button) and now I want it to go to frame 315 when it's clicked so I added this script to the keyframe it's in:
on (press) {
gotoAndPlay(315);
}
When I check it, it says:
Mouse events are permitted only for button instances
on (release){
I find this very perplexing, since it definitely is a button instance :scratch: Any thoughts?
Screenshot:
DogSoldier
12 Feb 2004, 7:33pm
Did you establish the Up, Down, Over and Hit states? Double click the button, and just paste itself into the down state.
Lincoln
12 Feb 2004, 8:11pm
I inserted keyframes in those states also - still the same error.
Lincoln
12 Feb 2004, 10:05pm
:banghead:
Look closely at that screenshot... particularly which tab is highlighted under the actionscript. Definitely not the button tab.
:banghead:
5 hours of my life... wasted.
DogSoldier
12 Feb 2004, 11:36pm
I know exactly how you feel. I'm a Flash n00b. It's not enough I'm proficient with Illustrator, Photoshop, Acrobat, QuarkXpress and Dreamweaver.. now they want me to learn Flash in order to redevelop our website. And I find the interface so counter-intuitive, I had to buy a book in order to better get a handle on it. :(
Lincoln
13 Feb 2004, 2:30am
Oh, and there's the ActionScript ridiculousness. We seriously suspected it was just Flash deciding to not read the scripts right for no reason at all... because that happens. It's the only language where you can code one thing and it decides whether or not it really wants to do it that way :rolleyes: You'd think after all these years they'd have a more reliable and user-friendly product...
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.