• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

VerifyError: Error #1053: Illegal override

Explorer ,
Mar 26, 2012 Mar 26, 2012

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 :

http://beta.jalleyne.ca/2010/10/verifyerror-error-1053-illegal-override-of-isrelatedobjectinaccessib...

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/VerifyError-Error-1053-Illegal-ov...


TOPICS
ActionScript

Views

7.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 27, 2012 Mar 27, 2012

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

Votes

Translate

Translate
Community Expert ,
Mar 26, 2012 Mar 26, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 26, 2012 Mar 26, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2012 Mar 26, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 26, 2012 Mar 26, 2012

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

Screen Shot 2012-03-26 at 8.50.26 PM.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2012 Mar 26, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 27, 2012 Mar 27, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines