Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-19-2003, 02:26 PM   #1
oddo jespersen
Registered User
 
Join Date: Feb 2003
Location: in the icey north
Posts: 2
Exclamation Statement must appear within on handler

Statement must appear within on handler!

i get this message allmost every time i write a code, even in normal mode and im soo pluckin tierd of it, i asume it verry verry easy thats why its soo annoyng

pleace help me
oddo jespersen is offline   Reply With Quote
Old 02-19-2003, 03:42 PM   #2
snapple
member
 
snapple's Avatar
 
Join Date: Feb 2002
Location: London
Posts: 2,411
Send a message via MSN to snapple
Default

oddo jespersen,

Yeah, Flash is just telling you that your code (attached to an MC) must be contained in one of the following clip events :

onClipEvent (enterFrame) {

//statement here

}

enterFrame can be replaced with, load, Unload, Mouse down, Mouse up, Mouse move, Key down, Key up, Data.

snapple
snapple is offline   Reply With Quote
Old 02-19-2003, 04:13 PM   #3
bit-101
Registered User
 
Join Date: Feb 2003
Location: In the matrix.
Posts: 78
Default

unless you are specifically trying to add code to a movie clip or button, you should click on a time line frame before adding code.
bit-101 is offline   Reply With Quote
Old 02-19-2003, 04:23 PM   #4
oddo jespersen
Registered User
 
Join Date: Feb 2003
Location: in the icey north
Posts: 2
Default

thanks guys i sorted it out now
oddo jespersen is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.