Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/client/src/Aphlict.as
| Show All 21 Lines | public function Aphlict() { | ||||
| super(); | super(); | ||||
| this.recv = new LocalConnection(); | this.recv = new LocalConnection(); | ||||
| this.recv.client = this; | this.recv.client = this; | ||||
| this.send = new LocalConnection(); | this.send = new LocalConnection(); | ||||
| } | } | ||||
| protected function externalInvoke(type:String, object:Object = null):void { | final protected function externalInvoke( | ||||
| type:String, | |||||
| object:Object = null):void { | |||||
| ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object); | ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object); | ||||
| } | } | ||||
| protected function error(error:Error):void { | final protected function error(error:Error):void { | ||||
| this.externalInvoke('error', error.toString()); | this.externalInvoke('error', error.toString()); | ||||
| } | } | ||||
| protected function log(message:String):void { | final protected function log(message:String):void { | ||||
| this.externalInvoke('log', message); | this.externalInvoke('log', message); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||