« Bizarre Signs of Success | Main | FITC Feedback »
April 29, 2008
Incompatible Override
So for the first time, I've seen this lovely 1023 error - Incompatible Override. I checked the code - the signatures are the same, the number and type of arguments are the same, the method declaration are the same... etc etc. It looks as it should be, but suddenly upon compilation, boom - getting this awesomeo highly descriptive error. If there was a difference between the methods in any way, I'd understand... but there isn't.
Any thoughts, ideas etc? People have suggested linking and unlinking classes in the fla etc as well... that has often worked for me in the past but not in this case...
Posted by bitch at April 29, 2008 04:04 PM
Comments
Can you post the function's definition? Offhand, I'd say, make sure that the function is public or protected, if it's private (which is default), the child class won't inherit it, and therefore, can't override.
Posted by: Ryan Magnon at April 29, 2008 08:18 PM
Can you show us the code you are overriding and the code you are trying to override it with. You'd get a better error coding in a decent coding environment (sounds like your coding in Flash).
Posted by: Tink at April 29, 2008 11:30 PM
Are you also bitchwhocantusegoogle?
http://www.google.com/search?hl=en&q=1023+error+Incompatible+Override&btnG=Google+Search&meta=
Posted by: pan69 at April 30, 2008 12:21 AM
hahah bitchwhocantusegoogle - actually i did. Its a very simple error to resolve you'd think, hence why i posted it because...i had checked everything that the google results had said to do...
I'm thinking it had to to with a classpath that was set in global overriding the local one in the fla... not entirely sure as it wasn't me getting the error.
But in terms of the code - and the methods and signatures - the code was fine, multiple people looked at it.
I was wondering if it was more of Flash being odd/retarded.
Posted by: bitch at April 30, 2008 12:36 AM
Post a comment