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

1 1549
Xinito
offline
Xinito
111 posts
80

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
111 posts
80

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

Showing 1-1 of 1