amhutap
April 7th, 2003, 02:23 PM
So here is me, a smalltime C (not C++) programmer stuck with this new ActionScript thing and feel mega stupid to ask this..
A simple function won't respond, I have a trace before the call and after it and both check out, there is no error.
The function is in the main timeline and so is the call, in fact on the same frame. Function is added to the actions of buttons, and call is an action of one specific button.
What oh what could be wrong folks? I have checked all I could think of. I have careated a simple function with just a trace in it and still no love for me, the stupid button just would not call the function, but happily shows traces.
For example my call is
on (release){
search_array=[153,154,155,156];
trace(search_array[3]);
// gotoandstop(153);
meow();
trace("done");
}
and meow simply is
meow()
{
trace("meow");
}
in the same time line, and nothing happens. In the previous version of the same movie it all worked fine, now that the designer (??) has designed it more it refuses to comply.
any help/pointer would be appreciated, thanks.
A simple function won't respond, I have a trace before the call and after it and both check out, there is no error.
The function is in the main timeline and so is the call, in fact on the same frame. Function is added to the actions of buttons, and call is an action of one specific button.
What oh what could be wrong folks? I have checked all I could think of. I have careated a simple function with just a trace in it and still no love for me, the stupid button just would not call the function, but happily shows traces.
For example my call is
on (release){
search_array=[153,154,155,156];
trace(search_array[3]);
// gotoandstop(153);
meow();
trace("done");
}
and meow simply is
meow()
{
trace("meow");
}
in the same time line, and nothing happens. In the previous version of the same movie it all worked fine, now that the designer (??) has designed it more it refuses to comply.
any help/pointer would be appreciated, thanks.