Copy link to clipboard
Copied
Hello,
It's been 1 day that I am trying to resolve an issue
I did a clean up of my project and part of the clean up has been to switch my swf from FP 9 to FP 10
I have one SWF (FP 10) that loading another SWF (FP 10)
Whenever its trying to load the second one now I have
VerifyError: Error #1053: Illegal override of release_vars in com.videoplayer.RELEASES.MAIN_JUKEBOX_****.
The original release_vars function look like
public function release_vars():void
{
}
the override look like
override public function release_vars():void
{
GLOBALS.vars.ads_enabled = false;
GLOBALS.vars.playertype = "internal";
}
Nothing crazy
it was working fine
Any ideas ?
I found some other guys that had the same issue, but nothing resolve it :
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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