Prev | Current Page 673 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The type
parameter T is used to express the correct type.//???a??? is an empty array
of integer values.
var a = new Array();
The majority of the fields that exist in the AS Array classes have a correspondent
field in the haXe Array class; some methods have been moved in
the class Lambda that introduces much functionality to deal with series.
AsBroadcaster
(F6??“8)
Not implemented.
Boolean
(F6??“9)
Bool
In haXe, a Boolean value is not an instance of a class but the constructor of
an enumerator. In AS the Boolean instance has a method toString() to
print true or false; the same can be obtained in haXe using the function
Std.string(boolvalue).
Class
(F9)
Class
To get the class of an object use Type.getClass(); to instantiate an object
from a Class definition use Type.createInstance().
CustomActions
(F6??“8)
Not implemented.
Date
(F6??“9)
haXe has adopted a unified Date class that behaves the same on all the target
platforms, not just Flash, and differs a little from the Flash implementation.


Pages:
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685