티스토리 뷰
1. LoadTarget.swf (불러올 swf)
2. LoadTargetLoader.swf ( 불러오는 swf )
-
ackage demos {
-
-
public function LoadTarget()
-
{ }
-
-
public function loadTrace():void
-
{
-
trace("LoadTarget 접근 완료!!");
-
}
-
-
}
-
}
2. LoadTargetLoader.swf ( 불러오는 swf )
- package demos {
-
-
import com.greensock.loading.display.ContentDisplay;
-
import com.greensock.*;
-
import com.greensock.easing.*;
-
import com.greensock.events.LoaderEvent;
-
import com.greensock.loading.*;
-
/**
-
* ...
-
* @author turfrain@yahoo.co.kr
-
*/
-
private var _queue:LoaderMax;
-
-
public function LoadTargetLoader()
-
{ trace("=====로드시작=====");
-
_queue = new LoaderMax( { name:"childQueue", requireWithRoot:this.root, maxConnections:1, onChildComplete:_childCompleteHandler } );
-
_queue.append( new SWFLoader("LoadTarget.swf", { name:"loadMoviClip",container:this, autoPlay:true, repeat: -1, x:10, y:10, width:550, height:400 } ));
-
_queue.load();
-
}
-
-
private function _childCompleteHandler($e:LoaderEvent):void
-
{
-
LoaderMax.getContent("loadMoviClip").rawContent.loadTrace();
/// 접근 0 -
//LoaderMax.getContent("loadMoviClip").getChildAt(0).loadTrace(); /// 접근 1
-
//LoaderMax.getLoader("loadMoviClip").content.getChildAt(0).loadTrace(); /// 접근 2
-
//$e.target.rawContent.loadTrace() /// 접근 3
-
}
-
}
-
}
'ActionScript3.0 > LoaderMax' 카테고리의 다른 글
1. LoaderMax 사용법 (0) | 2011.04.21 |
---|
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday