Take a look at Chapter 6 to see how to use the extern class
modifier.
private
(F6??“9)
In ActionScript 3, private fields are not accessible in derived classes but
protected fields are. In haXe, only private fields are visible in the
declaring class and in the derived classes as it happens in ActionScript 2.
get/set
(F6??“9)
Variable getters and setters in haXe are implemented using the variable
access modifiers. See Chapter 5 for further instructions.
set variable
F(6??“8)
This statement does not make any sense in haXe because a global variable
does not exist. Use Reflect.setField() to set object variables.
try ..catch..
finally
(F7??“9)
In haXe there is no finally statement and a type for the captured error
must always be specified. The catch all type is Dynamic. In Flash 9 the
try..catch block is not allowed inside an expression.
with
(F6??“9)
Not implemented.
label
(F9)
Not implemented.
final
(F9)
Not implemented.
import
(F6??“9)
When a type is imported in ActionScript but not used, the resulting swf
will not include that portion of code; in haXe, an import implies the
inclusion of the code even if the imported types are not used.
Pages:
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682