Re: [Flashcoders] Re: difference between coding in classes and in root directly

2007-08-23 Thread Marcelo de Moraes Serpa
This is the same code you sent in your first message. You can't have a class in a keyframe's code if you're using AS2, so, what I would like to know is where in your FLA you are creating this class' instance. You might be creating it in the first keyframe, like this: Keyframe1: var teste = new

Re: [Flashcoders] Re: difference between coding in classes and in root directly

2007-08-23 Thread Tom Huynen
Hi Marcelo, var test:Test = new Test(); on the first keyframe indeed. When I'm executing the code from the timeline I leave out the class definition and so. the make things a bit more clear: --- situation one (first keyframe): //setup netstream var connection_nc:NetConnection = new