| |||||||||||||||||||||||||||||||
|
code: In Game.as: private static var mainGame:Game; static function getGame():Game { if(mainGame == undefined) { mainGame = new Game(); } return mainGame; } In Collider.as: var walls_mc:MovieClip = Game.getGame().level.walls_mc; It looks like a Flash bug to me at this point... but how can I work around it? On 1/10/07, Newsdee <newsdee> wrote: > > Here's how mainGame is defined. Maybe I need to make mainGame private and > use a get function? > > _______________________________________________ Flashcoders 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
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com