-
1. Re: VerifyError: Error #1053: Illegal override
kglad Mar 26, 2012 2:53 PM (in response to leaflashdev)copy and paste the original release_vars function and copy and paste the override and copy and paste the original class declaration/constructor and the class containing the override.
-
2. Re: VerifyError: Error #1053: Illegal override
leaflashdev Mar 26, 2012 3:01 PM (in response to kglad)The original release_vars function look like
public function release_vars():void
{
}
HERE IS THE CLASS : http://pastebin.com/jt0EumLF
the override look like
override public function release_vars():void
{
GLOBALS.vars.ads_enabled = false;
GLOBALS.vars.playerbrand = "***";
GLOBALS.vars.playertype = "internal";
GLOBALS.vars.server = "www.****.com";
GLOBALS.vars.stats_flags = {*****: true, ****: true, *****: true};
GLOBALS.vars.usingJukebox = true;
}
HERE IS THE CLASS WITH THE OVERRIDE : http://pastebin.com/msitEhn3
Some info are private that why I replaced by *** don't worry of that
Thanks for your reply.
-
3. Re: VerifyError: Error #1053: Illegal override
kglad Mar 26, 2012 5:32 PM (in response to leaflashdev)you have all sorts of potential path problems and may be seeing an error message from some other MAIN_JUKEBOX_*** and/or you may have a problem if Main is a document class.
-
4. Re: VerifyError: Error #1053: Illegal override
leaflashdev Mar 26, 2012 6:22 PM (in response to kglad)all sorts of potential path problems what do you mean ? ( all the *** are here to replace name that I cannot copy / paste online )
MAIN_JUKEBOX_*** is my document class
Main is not my document class
Here my project structure
The thing that I change also between the working version and this one is that I added Main in the default package, do you think this might cause the problem ?
Thanks
-
5. Re: VerifyError: Error #1053: Illegal override
kglad Mar 26, 2012 11:20 PM (in response to leaflashdev)well, let me say this: there's nothing wrong with your override method IF the file you showed with the override is the one causing the error and IF the class with the overriden method is the Main class you showed.
because of your setup i suspect, at least, one of those IF's arent' true.
use the trace() function to check which class files are being used.
-
6. Re: VerifyError: Error #1053: Illegal override
leaflashdev Mar 27, 2012 8:42 AM (in response to leaflashdev)Thanks for your help !
I finally got the solution
I moved Main.as back to src/com/videoplayer
and no more error
Not sure exactly why placing Main .as in the src folder does not work



