Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

116 users online



simple error. Flash2004

simple error. Flash2004

Currently viewing this thread: 1 (0 members and 1 guests)


thejoe

thejoe

Status: Offline!

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.

Taff

Taff

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");
}

thejoe

thejoe

Status: Offline!

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.

admiralskeet

admiralskeet

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"

___________________

http://www.userbars.com/galerie/images/files/3/4/phpuser.jpg
:07 Seconds a Web Development/Web Design Blog

Taff

Taff

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");
}

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0071 seconds.