일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- file
- 영어
- texture
- path
- Build
- smartfoxserver
- 아이튠즈
- Android
- Flash
- unity
- 배열
- 게임
- 단축키
- XML
- unity3D
- iphone
- swf
- sdk
- 경로
- Game
- AIR
- 태그를 입력해 주세요.
- 3d
- AS3
- builder
- Ane
- ios
- class
- Mac
- flash builder
Archives
- Today
- Total
상상 너머 그 무언가...
Flash Interface, 인터페이스 정의 및 구현 방법 본문
인터페이스
public interface IEventDispatcher { function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean = false):void; function removeEventListener(type:String, listener:Function, useCapture:Boolean=false):void; function dispatchEvent(event:Event):Boolean; function hasEventListener(type:String):Boolean; function willTrigger(type:String):Boolean; }
인터페이스 정의
public interface IExternalizable { function writeExternal(output:IDataOutput):void; function readExternal(input:IDataInput):void; }
인터페이스 확장
public interface IExample extends IExternalizable { function extra():void; }
인터페이스 구현
interface IAlpha { function foo(str:String):String; } interface IBeta { function bar():void; } class Alpha implements IAlpha, IBeta { public function foo(param:String):String {} public function bar():void {} }
--