package { import flash.display.Bitmap; import flash.external.ExtensionContext; import flash.utils.ByteArray; public class IOSExtension { protected var context:ExtensionContext; public function IOSExtension() { if(!context) context = ExtensionContext.createExtensionContext("com.krcha.IOSExtension","type"); } public function sum(number1:Number,number2:Number):Number{ var ret:Number = context.call("sum",number1,number2) as Number; return ret; } public function subtract(int1:int,int2:int):int{ var ret:Number = context.call("subtract",int1,int2) as int; return ret; } public function multiply(uint1:uint,uint2:uint):uint{ var ret:Number = context.call("multiply",uint1,uint2) as uint; return ret; } public function concatenate(str1:String,str2:String):String{ var ret:String = context.call("concatenate",str1,str2) as String; return ret; } public function opposite(bool:Boolean):Boolean{ var ret:Boolean = context.call("opposite",bool) as Boolean; return ret; } } }