Use int() method to convert boolean value to integer
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ int(true); // Yields 1 int(false); // Yields 0 } } }