6 Replies Latest reply: Mar 27, 2012 8:42 AM by leaflashdev RSS

    VerifyError: Error #1053: Illegal override

    leaflashdev Community Member

      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-isrelatedobject inaccessible-in-remappedmouseevent/

      http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/VerifyError-Error-1053- Illegal-override-of-requestSoftKeyboard/m-p/1163209#M30785

       


        • 1. Re: VerifyError: Error #1053: Illegal override
          kglad MVP

          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 Community Member

            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 MVP

              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 Community Member

                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

                • 5. Re: VerifyError: Error #1053: Illegal override
                  kglad MVP

                  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 Community Member

                    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