[Laszlo-dev] Flash built-in objects

André Bargull andre.bargull at udo.edu
Tue Sep 16 07:38:05 PDT 2008


Some Flash8 built-in objects are too scary:

var id3 = audioplayer.getID3(); //audioplayer is a LzView
typeof id3; // 'object'
typeof id3.constructor; // 'undefined' -> aha, a built-in object
id3 == null; // true
id3 == undefined; // true
id3 != null; // false
id3 != undefined; // false
id3 === null; // false
id3 === undefined; // false
id3 !== null; // true
id3 !== undefined; // true
Finally:  !!(audioplayer.getID3()); // true

Whatever their indention was....!?


More information about the Laszlo-dev mailing list