blog.visualp.com
[원문]http://www.campjohn.dk/wp/?p=820
생성 하고 넘겨 주는 방식..
var _theParameterFromURL:String = String(root.loaderInfo.parameters.whatParameter);
var _tempPercent:Number;
var _loader:Loader = new Loader();
_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, isloading);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishedLoading);
_loader.load(new URLRequest("howtograb.swf"));
function isloading(e:ProgressEvent):void {
_tempPercent = e.bytesLoaded / e.bytesTotal;
thePercent.text = String(Math.floor(_tempPercent*100))+"%";
}
function finishedLoading(e:Event):void {
removeChildAt(0);
_tempPercent = null;
addChild(_loader);
Object(_loader.content).init(_theParameterFromURL);
}
---------------------------------------------------------------------------------------'
stop();
var ctrl:MovieClipLoader = new MovieClipLoader();
var _listener:Object = new Object();
_listener.onLoadInit = function(_mc:MovieClip)
{
trace("Done loading...");
}
ctrl.addListener(_listener);
this.createEmptyMovieClip("_mc", this.getNextHighestDepth());
ctrl.loadClip("./menubar.swf", _mc);
// 접근 하려고 할 때
_root._mc.하위 객체명
A Boolean value that tells Flash Player which code page to use to interpret external text files. When the property is set to false
, Flash Player interprets external text files as Unicode. (These files must be encoded as Unicode when you save them.) When the property is set to true
, Flash Player interprets external text files using the traditional code page of the operating system running the player. The default value of
is useCodePage
false
.
Text that you load as an external file (using flash.display.Loader.load()
or the flash.net.URLLoader, flash.net.URLStream, or XML class) must have been saved as Unicode in order for Flash Player to recognize it as Unicode. To encode external files as Unicode, save the files in an application that supports Unicode, such as Notepad on Windows 2000.
If you load external text files that are not Unicode-encoded, set
to useCodePage
true
. Add the following as the first line of code in the first frame of the SWF file that is loading the data:
System.useCodePage = true;
When this code is present, Flash Player interprets external text using the traditional code page of the operating system running Flash Player. This is generally CP1252 for an English Windows operating system and Shift-JIS for a Japanese operating system. If you set
to useCodePage
true
, Flash Player 6 and later treat text as Flash Player 5 does. (Flash Player 5 treated all text as if it were in the traditional code page of the operating system running the player.)
If you set
to useCodePage
true
, remember that the traditional code page of the operating system running the player must include the characters used in your external text file in order to display your text. For example, if you load an external text file that contains Chinese characters, those characters cannot display on a system that uses the CP1252 code page because that code page does not include Chinese characters.
To ensure that users on all platforms can view external text files used in your SWF files, you should encode all external text files as Unicode and leave
set to useCodePage
false
. This way, Flash Player 6 and later interprets the text as Unicode.
public static function get useCodePage():Boolean
public function set useCodePage(value:Boolean):void
[원문] : http://2rang.tistory.com/2
var obj:Object = LoaderInfo(this.root.loaderInfo).parameters;
_aaa = obj["aaa"];
_bbb = obj["bbb"];
로 간편하게 ... 넘어온 변수를 사용하시면 되겠습니다.
FlashVar 방식..이든 쿼리스트링 방식..이든 데이터를 swf에 전달하기 위해 전문적으로 설계되지는 않았다고 합니다.
아주 작은 데이터 전송일때만 사용하고 복잡한 데이터엔 URLLoader.. 를 사용하기를 권한다고 합니다.
[download]
down load file
flash auto compile using jsfl
jsfl same like mecro ...script
core file : compileProject.jstl, compile_schma.txt
[원문] - http://note.marines.co.kr/45
1. 모든 무비클립에 Linkage를 걸어주는 jsfl
- 첩부파일 Linkage.jsfl
2. 1번의 반대 모든 무비클립의 Linkage를 없애는 jsfl
- 첩부파일 UnLinkage.jsfl
3. 라이브러리의 모든 이미지를 무손실압축(png)로 변경하고 AllowSmooth 적용
- 첩부파일 AllowSmoothing.jsfl
4. 라이브러리의 객체들을 종류별로 폴더에 정리합니다.
종류는 sound, bitmap, button, graphic, movie clip 입니다.
- 첩부파일 Arrangement.jsfl
4. 열려있는 fla파일을 한번에 퍼블리싱하는 jsfl
- 첩부파일 PublishAll.jsfl