일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- unity
- file
- Android
- path
- swf
- 영어
- texture
- 배열
- 경로
- AIR
- iphone
- unity3D
- class
- sdk
- flash builder
- Flash
- Game
- smartfoxserver
- 태그를 입력해 주세요.
- XML
- Ane
- builder
- AS3
- ios
- Mac
- Build
- 게임
- 단축키
- 3d
- 아이튠즈
Archives
- Today
- Total
목록객체 (2)
상상 너머 그 무언가...
변수의 값이 null일때에 객체 생성 ||=
private var character: Character;...character ||= new Character(); 이렇게 하면 character변수의 값이 null 인 경우, 아직 선언만 하고 생성하지 않은 상태거나 삭제되어 null인 경우에new Character() 생성자를 통해 새로운 객체를 생성해서 character에 담으라는 의미...
개발관련(Development)/플래시(Flash)
2013. 1. 16. 16:45
객체의 타입체크 ( type of instance )
typeof 라는 메소드가 있지만 좀더 쉽게 쓰는 방법은 is 메소드 이다. if( _target is DisplayObject ) 위와 같이 입력하면 _target 객체가 DisplayObject 인지 아닌지에 대한 true, false 값을 리턴한다.is 메소드를 사용하면 상속받은 부모클래스로도 타입체크가 가능하다. 출처 : http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f8a.html
개발관련(Development)/플래시(Flash)
2012. 10. 4. 11:36