PDA

View Full Version : NetStatusEvent error when Main class defined


clesueur
10-22-2009, 11:58 PM
Hi, has anyone come across/know what the problem is with this...

Ive got a flash file linking to a FMS, its just going to be a little game, all connects fine and I have a chat client working through this. My problem is when i come to use classes to import movieclips ect...

When i set the main Class name in the properties menu and play the swf,
NetStatusEvent and SyncEvent are give me the following error...

1046: Type was not found or was not a compile-time constant

If i remove the main Class name the swf connects to the server fine, or if i remove the code for the connection to the server and play the swf my movieclip attaches and behaves as the class files intended.

Has anyone had a problem like this before?

Im new to AS3 and to FMS so i may be doing a fundamental error here but i really cant see it and its annoying with the 2 aspects running independently but not together.

Help please :)

Chris

clesueur
10-23-2009, 11:05 AM
anyone?