
December 21st, 2004
12:55 PM
simple error. Flash2004
layer=Layer 31, frame=112:Line 2: Statement must appear within on handler
gotoAndPlay(1);
I am trying to simply have the video stop at the end, and have a button to reply it. I am using FlashMX2004 and I used to be able to do this with the orginal MX but for some reason I keep getting errors doing the basic things. can someone help me out.

December 21st, 2004
03:31 PM
Neverside Newbie
Status: Offline!
That error means you are missing an event handler of some sort, try:
on(release){
gotoAndPlay(1);
}
___________________
if(u.needActionScript){
getURL("http://www.lawley.de","_blank");
}

December 22nd, 2004
02:04 AM
what is a event handler.
For some reason when I use a stop action and the gotoAndPlay on the same frame (but different layer) it just runs through like I didnt set it.

December 22nd, 2004
02:16 AM
cssNinja
Status: Offline!
one thing to remmeber about mx2004 is that it deosn't automatically add event handlers like mx did. It's default actionscript mode is "expert"
___________________
:07 Seconds a Web Development/Web Design Blog

December 22nd, 2004
05:54 AM
Neverside Newbie
Status: Offline!
an event handler is just that...it tells flash to do something when an event happens such as the left mouse button being pressed, a key, or even every frame of the movie.
The reason your movie runs thru, is because ( I would imagine) it reads thru the code...stops because you told it to, then when it gets to the next bit its told to play...so it does...all this happens in a fraction of a second, thus giving you the impression that nothing at all happened:)
Hope that helps you get started, you should do the tutes taht come with flash, they are quite enlightening and can be found under the help.
Taff
___________________
if(u.needActionScript){
getURL("http://www.lawley.de","_blank");
}