You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/10/14 16:01:51 UTC

[GitHub] [royale-compiler] SolidSoft-Lda opened a new issue #162: Royale compiler does not support using super to access variables from base class

SolidSoft-Lda opened a new issue #162:
URL: https://github.com/apache/royale-compiler/issues/162


   Example 1, using super to use the base base variable
   
   ```as3
   public class MyBaseClass
   {
       protected var myProtectedVar:String;
   }
   ```
   
   ```as3
   public class MyExtendedClass
   {
       public function MyExtendedClass
       {
           super.myProtecedVar = "Hello World"; // this will throw an JS error at runtime
       }
   }
   ```
   
   Example 2, using super at an event
   
   call a remote AMF service to a resultHandler event:
   
   ```as3
   private function resultHandler(event:ResultEvent):void
   {
       super.entities = event.data as ArrayList; // this will throw an internal JS error that will stop the result event and fire the AMF fault event
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-compiler] joshtynjala closed issue #162: Royale compiler does not support using super to access variables from base class

Posted by GitBox <gi...@apache.org>.
joshtynjala closed issue #162:
URL: https://github.com/apache/royale-compiler/issues/162


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org