samedi 30 mai 2015

AS3 - how to extend this function

This is first class with "gordz()" function

public class Model extends Object implements IModel
   {

     public static function gordz() : void
      {
          newobject = gallas.pop();
      }

}

Now i try to override the function but i still want that old code is executed... How can i extend this function correctly?

 public class LOL extends Model
   {
       override public static function gordz() : void
       {
         ... //New code + execute old code
       }  

   }

Aucun commentaire:

Enregistrer un commentaire