[osflash] Exceptions Flash 8 mtasc

Martin Heidegger mastakaneda at gmail.com
Fri Aug 3 16:31:26 PDT 2007


I know this sounds a little bit outdated - in fact it is ... but
nevertheless its my problem so:

I tried to throw a exception (code is simple) via mtasc (1.13). Actually the
exception was thrown BUT the toString method was not executed.
So the following code just traced nothing - it shut off silently. While same
code is working is screaming "hi" compiled by flash8.

class Main {
  public static function main() {
     throw {
       toString: function() {
          trace("hi");
          return "hi";
       }
     };
  }
}

So does somebody else gets that mistake?

yours
Martin.

PS.: Its some little horrifying mistake - to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070804/d538308e/attachment.html 


More information about the osflash mailing list