statment must appear within on hanlder....
when keep code on button in action.. "statment must appear within on handler" erro generating.....
what should .,, code is....
nxt.onrelease = function(){
newthumb();
}
do not put code on button. put in timeline contains button has instance name of "nxt" - can create layer actionscript , place there easy find. if correctly lowercase "a" should appear in timeline frame place it. deally newthumb() function should in same timeline frame.
in as2 can place code on objects written differently. doing considered bad practice though because makes code harder find , can confuse targeting things properly.
the code show timeline version better.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment