Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- scaleform3
- scaleform
- Chart
- GDC
- 플래시
- 수학정석
- MMOKit
- 클릭
- as3
- DataBinding
- 강좌
- KGC 2013
- 태그클라우드
- flash
- scaleform4
- Document Class
- 스케일폼
- flash cs3
- addChild
- 형변환
- as3.0
- as2
- 집합의 연산
- 애드온
- ApplicationDomain
- autodesk
- watch
- 샌프란시스코
- flash player 10
- CLIK
Archives
- Today
- Total
scaleform.minarto.com
Load 한 swf 파일의 속성 읽기 본문
일단 다음을 기본으로 깔아주고...
타임라인에 속성이 있을 경우...
헤맬 필요 없다. 간단하다...
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(new URLRequest(swf 파일명));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(new URLRequest(swf 파일명));
타임라인에 속성이 있을 경우...
function complete(e:Event):void
{
var mc:MovieClip = MovieClip(loader.content)
trace(mc.속성명)
}
Document class 가 있는 swf 파일을 불러왔을 경우...(Document class 명이 Main 이라면...)
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(new URLRequest(swf 파일명));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(new URLRequest(swf 파일명));
function complete(e:Event):void
{
var main:Main = Main(loader.content)
trace(main.속성명)
}
헤맬 필요 없다. 간단하다...