RE: [Flashcoders] First attempts at wirting code in AS2

2006-07-18 Thread Paul Steven
Behalf Of Steven Sacks | BLITZ Sent: 17 July 2006 20:17 To: Flashcoders mailing list Subject: RE: [Flashcoders] First attempts at wirting code in AS2 You need to declare your class variables before you use them: class GameObject extends MovieClip { var little_stars_mc:MovieClip; var

RE: [Flashcoders] First attempts at wirting code in AS2

2006-07-17 Thread Steven Sacks | BLITZ
You need to declare your class variables before you use them: class GameObject extends MovieClip { var little_stars_mc:MovieClip; var game_number:Number; function GameObject() { game_number = 1; little_stars_mc.gotoAndStop("game" + game_numb

Re: [Flashcoders] First attempts at wirting code in AS2

2006-07-15 Thread Adam Pasztory
Classes don't share scope with the main timeline. You should pass in little_stars_mc as an argument to the Constructor when you create your Class, then store it as a member variable so all your methods have access to it. The fact that it worked before with AS 1.0 was merely a side-effect of the

[Flashcoders] First attempts at wirting code in AS2

2006-07-15 Thread Paul Steven
Hi there I am finally starting to write my code in AS2 thanks to my client asking me to program the latest project in Flash 8. Anyway I am up against the clock as always so do not have time to read my "Essential Actionscript 2.0" book in order to get the first game up and running by Monday. Prev