Re:
asi <[email protected]> Fri, 19 Sep 2003 10:54:53 -0700
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Hi! always put a semi colon at the end of the function block. That should do it. Ogla >From: alessandro pasotti <[email protected]> >To: [email protected] >Date: 2003-09-19 10:42:41 am PST >Subject: [ming-fun] "prototype" actionscript keyword >Hi All, > >I'm desperately trying to develop a map viewer with ming CVS 3a, >now I have problems compiling short actionscript code like that below. > >Does anybody know if ming 3.a actioncompiler supports the keyword >"prototype"?? > > >[...] >$movie->add( new SWFAction(" >Dog = function( age ) >{ > this.age = age; >} > > >Dog.prototype.haveBirthday = function( ) >{ > this.age++; >} > >yeller = new Dog( 12 ); >info_text = yeller.age; >yeller.haveBirthday( ); > >[...] > > >there is a parse error on the line where prototype is. > >(I had the same problem in other pieces of code where prototype was) > > >TIA > > >-- >Alessandro Pasotti > > >_______________________________________________ >ming-fun mailing list >[email protected] >http://www.opaque.net/mailman/listinfo/ming-fun -- ----------------------------------------------------- FREE Premium WebMail, like [email protected] Get YourName@ any of 1000+ GREAT .ws "WebSite" Domains! http://e.WS