These forums are closed for viewing purposes only. To join the McLeodGaming community, please register at the new forums here.

McLeodGaming.com Forum Index
 FAQ  •  Search  •  Memberlist  •  Usergroups   •  Register  •  Profile  •  Log in to check your private messages  •  Log in
 Common flash errors View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.
Author Message
NintendoFlash
Level 30


Joined: 22 Apr 2007
Posts: 19885
Location: Orlando, FL
Gold 36626
Pixel(s)
Demerits 0

PostPosted: Tue Aug 14, 2007 6:14 pm Reply with quoteBack to top

Lets talk about some common errors. By the way, feel free to add any other errors that you know of and can explain, or you can ask questions of some errors.
One of the most common errors are these:
Code:
Unexpected '}' encountered

This simply means that somewhere in your code, you put an extra '}'
Code:
Statement block must be terminated by '}'

This means that you forgot to close a code with '}'

If anyone has a better explanation then this, then be guess to criticize and correct.
View user's profileSend private message[ Hidden ]Visit poster's websiteAIM AddressYahoo Messenger
RyanKajito
Level 30


Joined: 22 Aug 2006
Posts: 13640
Location: Live, Bomberman, Live!
Gold 58413
Pixel(s)
Demerits 10

PostPosted: Tue Aug 14, 2007 6:43 pm Reply with quoteBack to top

Well yeah, I kinda figured that they were obvious.
View user's profileSend private message[ Hidden ]AIM AddressMSN Messenger
x2i
Level 10


Joined: 21 Jun 2007
Posts: 854
Location: Derby, England
Gold 4121
Pixel(s)
Demerits 0

PostPosted: Fri Aug 17, 2007 9:09 am Reply with quoteBack to top

Code:
Mouse events are permitted only for button instances
     on (press) {


This occurs when you try to add an button event to a frame

Code:
Clip events are permitted only for movie clip instances
     onClipEvent (load) {


This error occurs when trying to add an 'onClipEvent' function to any other element than a Movie Clip

Code:
Left side of assignment operator must be variable or property.
     5+=5


This is because flash can do the sum however it has nowhere to store the answer - so a variable will need to be given on the left like so: var num += 5

Code:
Expected a field name after '.' operator.
     _root..lol


This is because two dots have been used, flash expects another entry after the first dot if there is to be a second dot, for instance: _root.player.lol

Code:
Wrong number of parameters; duplicateMovieClip requires exactly 3.
     duplicateMovieClip();


This error is because the wrong number of parameters have been given - flash will usually tell you how many are needed, this would be correct: duplicateMovieClip(_root.lol, _root.lol2, 1);
View user's profileSend private message[ Hidden ]Visit poster's website
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: All times are GMT - 4 Hours