Thanks Steven This extends MovieClip solution looks interesting, I will investigate this further.
I am having trouble getting my head around the separation of the timeline elements with the classes. Thanks Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 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 game_number:Number; function GameObject() { game_number = 1; little_stars_mc.gotoAndStop("game" + game_number); } } _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

