Update... tried adding a get function, but it still doesn't work. Here's my
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 <[EMAIL PROTECTED]> wrote:

Here's how mainGame is defined. Maybe I need to make mainGame private and
use a get function?


_______________________________________________
[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

Reply via email to