Could be a related issue. You can try a few things:

- Clear the ASO cache and recompile.
- Force the type via a casting var a:ClassA = ClassA(yourVar)
- Ensure your files are not on a network drive (had a weird bug with classes
once and that fixed it!)
- Refactor to simpler class relationships (worst case but it did the trick
for me - had to duplicate code, ewww).

Regards,
Newsdee.


On 2/14/07, Dani Bacon <[EMAIL PROTECTED]> wrote:

Newsdee or anyone ... any ideas concerning this kind of problem ? im
having
a similar inheritance problem where class B extends class A and the
compiler
ignores it. class A isnt class B.__proto__ and instead class B.__proto__
equals Object ???
anyone ever encounter such a bug ?

On 10/01/07, Newsdee <[EMAIL PROTECTED]> wrote:
>
> 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
>
_______________________________________________
[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

Reply via email to