カテゴリー
未分類

今まで気づかなかったけど

icon_flash8.jpgMovieClipLoaderでファイルをテンポラリにLoadしてストックしておくときなど

mcl_listener.onLoadInit = function(ref) {
ref._visible = false;
ref.gotoAndStop(1);
};

見たいな感じでやってたんだけど、これflvとかの巨大なファイルでやるとムラグでて、何フレームか表示されちゃうのね・・。でマニュアルを読んでみると

Invoked when the actions on the first frame of the loaded clip have been executed. When this listener has been invoked, you can set properties, use methods, and otherwise interact with the loaded . Call this listener on a listener object that you add by using MovieClipLoader.addListener().

っていてあるわけで、すなわち”when the actions on the first frame of the loaded clip have been executed”がされないと発動しないということで、[最初のフレームのアクションが発動]=[ムービーの再生]と言うわけではないらしい。当然”onLoadComplete”は”onLoadInit”も後に発動するわけなので、仕方なく”onLoadProgress”でじりじり止めてみました。