Prev | Current Page 660 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Part II: Server Side, JavaScript, and Flash: Oh My!
348
ActionScript Function
(Flash Version) haXe Equivalent
Boolean()
(F9)
Std.bool()
Converts a value into a Boolean; the conversion is different from AS
to haXe: in haXe false, null, and 0 are evaluated to false, all
other values are evaluated to true.
clearInterval()
(F6??“8, F9 in flash.utils)
Use class haxe.Timer.
To perform an action similar to clearInterval() you have to
instantiate a Timer object and call its stop() method when needed.
var t = new haxe.Timer();
t.run = function() {
// do something
};
// do something else
t.stop();
clearTimeout()
(F6??“8, F9 in flash.utils)
Not implemented.
decodeURIComponent()
(F9)
Not implemented.
decodeURI()
(F9)
StringTools.urlDecode()
It also decodes whitespaces encoded as + symbols.
duplicateMovieClip()
(F6??“8)
Use the duplicateMovieClip() method of a flash.MovieClip
instance.
encodeURI()
(F9)
Not implemented.
encodeURIComponent()
(F9)
StringTools.urlEncode()
escape()
(F6??“9)
StringTools.


Pages:
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672