Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/client/src/Aphlict.as
| Show All 28 Lines | public class Aphlict extends Sprite { | ||||
| final protected function externalInvoke( | final protected function externalInvoke( | ||||
| type:String, | type:String, | ||||
| object:Object = null):void { | object:Object = null):void { | ||||
| ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object); | ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object); | ||||
| } | } | ||||
| final protected function error(error:Error):void { | final protected function error(error:Object):void { | ||||
joshuaspence: Is this necessary? | |||||
Not Done Inline ActionsIt seems that Flash lets us get away with it, but it's more correct to use Object since we sometimes pass strings, not errors. epriestley: It seems that Flash lets us get away with it, but it's more correct to use `Object` since we… | |||||
| this.externalInvoke('error', error.toString()); | this.externalInvoke('error', error.toString()); | ||||
| } | } | ||||
| final protected function log(message:String):void { | final protected function log(message:String):void { | ||||
| this.externalInvoke('log', message); | this.externalInvoke('log', message); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
Is this necessary?