PDA

Click to See Complete Forum and Search --> : Flash error message


ssides
05-15-2006, 04:14 PM
I am creating a blur with a fade out. Simple right? Well I keep getting this error message:

**Error** Symbol=pic 1 blur, layer=Layer 1, frame=130:Line 1: Statement must appear within on/onClipEvent handler
stop();

Total ActionScript Errors: 1 Reported Errors: 1

Why? And how can I correct the problem? I this going to effect the way the flash runs in the website?

Thanks for any help.

DesignerScott
05-15-2006, 05:13 PM
you typed the stop(); command with a movieclip symbol selected instead of the timeline frame.

go back and find the symbol "pic" on "layer 1" at "frame 130" and select it. then delete the command stop();

then if you do need to stop playing there: select the timeline frame and press "F6" to make a blank keyframe and then type stop();

Hope that helps out.

What happened was that Flash thought you were trying to add actions to the movieclip, which need to have either onLoad(){...} or onEnterFrame(){...} etc. specified.

To prevent this from happening again I recommend that you always add actions to the timeline (that way you can always see the little "a" in the timeline) instead like so:
sample_mc.onEnterFrame = function(){
blah blah blah.do this...;
};

ssides
05-15-2006, 05:46 PM
ahhh I did do that, makes sense now
Error message is gone, you rock.

Thanks