Staredit Network

Staredit Network -> Art & Images -> Flash Button Doesn't Work
Report, edit, etc...Posted by Screwed on 2005-06-25 at 20:07:40
Hey, I've seen a lot of you experienced with flash, but I've got a problem.

At some scenes, I have buttons, with actionscripts that are assigned to to the button, like this.

on (release) {
gotoAndstop("Plot", 1);
}

and it'll go to the scene plot, and stop at frame 1.
That's what I wanted.

However, I did the same format for buttons at other scenes, and the buttons dont work, I can click on it but the nothing happens. I even searched the net, to look for answers, but it was no good. I made sure I assigned the script to the button and not the frame. I even copied the a 'functioning' button from another scene and copied it onto the scene which buttons weren't working and the button doesn't work. So it couldn't be my actionscripts that are wrong. However, one thing I discovered is that the button actually did something when I pressed it. Instead of going to the assigned scene and frame, it stays at the current scene but goes to the assigned frame.

It's very odd, and I hope someone can figure it out for me.
I use Flash MX.
Report, edit, etc...Posted by RexyRex on 2005-06-25 at 20:46:20
I don't know anything about actionscript or pretty much any flash at all, but if it works when you click it, maybe you're using the wrong actionscript function?
Report, edit, etc...Posted by www.com.au on 2005-06-25 at 22:44:44
when you say that it goes to the same frame on that scene as you told it to, but not the right scene.

the problem is kind of obvious, youve set it to the wrong scene..

im guessing "plot" is the name of the scene, so just make it say

on (release) {
gotoAndstop("scene1", 1);
}

or whatever scene you want it to be..

if that doesnt fix it, then there must be something else making the actionscript not work for the scene jump.
Report, edit, etc...Posted by Screwed on 2005-06-26 at 01:25:27
I kind of figured that a while ago, but after already having this problem like 2 weeks ago, I checked at least 20 times that its the right scene. And it not only happens to one button, it happens to all the buttons on the same scene. So that really gets me annoyed. I think its that somehow the script cannot recognise the scene I specified in for the parameter.
Next Page (1)