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

Joined: 22 Apr 2007
Posts: 19885
Location: Orlando, FL
36626
0
|
Posted:
Tue Aug 14, 2007 6:14 pm |
  |
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. |
|
|
  ![[ Hidden ] [ Hidden ]](templates/fisubgrey/images/lang_english/icon_email.gif)    |
 |
RyanKajito

Joined: 22 Aug 2006
Posts: 13640
Location: Live, Bomberman, Live!
58413
10
|
Posted:
Tue Aug 14, 2007 6:43 pm |
  |
Well yeah, I kinda figured that they were obvious. |
|
|
  ![[ Hidden ] [ Hidden ]](templates/fisubgrey/images/lang_english/icon_email.gif)   |
 |
x2i

Joined: 21 Jun 2007
Posts: 854
Location: Derby, England
4121
0
|
Posted:
Fri Aug 17, 2007 9:09 am |
  |
| 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); |
|
|
  ![[ Hidden ] [ Hidden ]](templates/fisubgrey/images/lang_english/icon_email.gif)  |
 |
|
|
|
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
| |