Bool

public extension Bool
  • init: Initialise a Bool from a FREObject.

    let myBool= Bool(argv[0])
    

    Declaration

    Swift

    init?(_ freObject: FREObject?)

    Parameters

    freObject

    FREObject which is of AS3 type Boolean

    Return Value

    Bool?

  • toFREObject: Converts a Bool into a FREObject of AS3 type Boolean.

    let fre = true.toFREObject()
    

    Declaration

    Swift

    func toFREObject() -> FREObject?

    Return Value

    FREObject