Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-18 Thread Dani Bacon
hey Steven thanks for you help. well right now the problem happened only once more. This time it broke the inheritance connection between [Country] and [BoundedMarker]. I went through the same bizzar process of moving the [BoundedMarker] class out of its package .. compiling with MMC, then MTASC

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-15 Thread Dani Bacon
Hey Steven / Newsdee. Thx. Newsdee : i tried deleting cache [FlashDevelop] / ASOs [Flash IDE] before and it didn't help. I don't see how casting can solve the problem, it looks like the compiler itself is not acknowledging an inheritance connection, and i am not using any special drive config.

RE: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-02-14 Thread Steven Sacks | BLITZ
- Refactor to simpler class relationships (worst case but it did the trick for me - had to duplicate code, ewww). You could use Composition instead, which reduces the need for normal class inheritance. ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-09 Thread Newsdee
More on this... it' s getting quite weird. I've managed to track down this a bit further. The classes are fine, but the error happens in two other classes, Game and Collider. I can't explain why it happens but I managed to find out the lines of code that are causing it. Here's how I've spotted

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-09 Thread Newsdee
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

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-08 Thread T. Michael Keesey
Four levels of inheritance are certainly fine. You're not using exclude XML files, are you? -- T. Michael Keesey The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-08 Thread baskar subramanian
hi there is no limitation for inheriting we can inherit as much as we want. but there should be some implementation problem if u wish just send ur code i ll correct that bcoz i dont find any issue in ur mail that u stated. bye regards palanivel senior developer

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-08 Thread Newsdee
Thanks for the responses guys. I'm trying to replicate the error in a different FLA but it isn't simple... my test seems to work fine! Here is example (working) code. I'll keep trying and post back... Thanks, Gerard. ___

[Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-07 Thread Newsdee
Hi all, A quick OOP question... is there a limit in AS2.0 on how many levels of inheritance can be done? My latest class is not recognizing any of the methods from it superclass', even though the compiler doesn't raise any errors. Here is the inheritance tree (I'm making a game, as you can

Re: [Flashcoders] limits to AS2 levels of OOP class inheritance?

2007-01-07 Thread Ron Wheeler
You might want to post some code. At least from the start of the class with the imports to the constructor and the method. The code that calls the shows the error would help. Ron Newsdee wrote: Hi all, A quick OOP question... is there a limit in AS2.0 on how many levels of inheritance can