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 |
Tags
- flash
- 스케일폼
- CLIK
- 태그클라우드
- as3.0
- DataBinding
- scaleform
- 클릭
- 샌프란시스코
- MMOKit
- ApplicationDomain
- scaleform3
- addChild
- 수학정석
- flash cs3
- as2
- as3
- 플래시
- KGC 2013
- autodesk
- Chart
- 집합의 연산
- Document Class
- watch
- GDC
- 강좌
- 형변환
- 애드온
- scaleform4
- flash player 10
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.속성명)
}
헤맬 필요 없다. 간단하다...