ForumsProgramming ForumNeed help with a error I dont know how to fix - AS3

1 4093
Xinito
offline
Xinito
109 posts
Nomad

Hello, I got a few Class files and when I test the game I keep getting this error:

C:\\Documents and Settings\\*******\\My documents\\AvoiderGame\\Classes\\DocumentClass.as, Line 1 5006: An ActionScript file can not have more than one externally visible definition: DocumentClass, onAvatarDeath

DocumentClass is a class and onAvatarDeath is a function

I have no idea what to do to fix this error, please help.

  • 1 Reply
Xinito
offline
Xinito
109 posts
Nomad

Nevermind my function was out of the class by some reason, took me only 1 week to fix this -.-

Showing 1-1 of 1