Int

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

    let myInt= Int(argv[0])
    

    Declaration

    Swift

    init?(_ freObject: FREObject?)

    Parameters

    freObject

    FREObject which is of AS3 type int

    Return Value

    Int?

  • toFREObject: Converts a Int into a FREObject of AS3 type int.

    let v:Int = 3
    let fre = v.toFREObject()
    

    Declaration

    Swift

    func toFREObject() -> FREObject?

    Return Value

    FREObject