What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » AddTimer makes msn crash

Pages: (2): « First « 1 [ 2 ] Last »
AddTimer makes msn crash
Author: Message:
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: AddTimer makes msn crash
Thx dt :).
08-10-2006 08:57 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: AddTimer makes msn crash
also Flash uses SpiderMonkey to provide its javascript (which they call ActionScript)
so i would love to know what real "classes" you are talking about since im sure only the prototype one exists eg

code:
function moo(xxx){
this.xxx = xxx;
}

moo.prototype = {
"boo" : function(){
Debug.Trace(this.xxx);
}
}

var test = new moo();
moo.boo();

[Image: dt2.0v2.png]      Happy Birthday, WDZ
08-10-2006 09:05 AM
Profile PM Web Find Quote Report
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: RE: AddTimer makes msn crash
You are right that it actually only supports prototype based classes, BUT: In AS 2.0, you CAN write classes. But when you compile your movie, the compiler transforms your AS 2.0 class into AS 1.0 prototype based OO.

In AS 2.0, this is possible:

code:
class Foo extends SomeThing
{
   private static var myVar:String = "Hi";

   public function Foo()
   {
      trace("constructor called");
    }

   public static var saySomeThing():String
   {
       return myVar;
    }
}
08-10-2006 09:10 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On