Prev | Current Page 675 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

hello());
}
}
haXe supports method redefinition on all the platforms but on Flash 9 the
methods to redefine must be marked with the keyword f9dynamic. This
has no effect on the others platforms. To allow this behavior, f9dynamic
methods are compiled as variables of type Function; a limitation of this
implementation is that a function variable cannot have direct access to the
same method defined in a parent class.
int
(F9)
Int
The Int type in haXe has no fields. To manipulate an Int value, use the
methods from Std, Math, and other classes.
Math
(F6??“9)
Math
Practically every static field that exists in the Math class of the ActionScript
language has an equivalent in haXe in its Math class. The following constant
values have no equivalent yet: E, LN10, LN2, LOG10E, LOG2E, SQRT1_2,
SQRT2.
Namespace
(F9)
Not implemented.
Number
(F6??“9)
Float
The Float type in haXe has no fields. To manipulate a Float value use the
methods from Std, Math and other classes.
Chapter 12: Building Interactive Content with Flash
359
Flash API Classes
haXe enforces the convention to use a capital letter as the first character of a class name returning a
compilation error otherwise; for this reason the two classes capabilities and security (in
Flash 6 to 8) have been renamed Capabilities and Security .


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