NSNumber

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

    let myDouble = NSNumber(argv[0])
    

    Declaration

    Swift

    convenience init?(_ freObject: FREObject?)

    Parameters

    freObject

    FREObject which is of AS3 type Number

    Return Value

    NSNumber?

  • toFREObject: Converts a NSNumber into a FREObject of AS3 type Number.

    let fre = myNSNumber.toFREObject()
    

    Declaration

    Swift

    func toFREObject() -> FREObject?

    Return Value

    FREObject