タイムラインから動的なムービー クリップを取得しようとしています。
キー フレームの 1 つ (この場合は 88 と想定) にインスタンス名「blah」のムービー クリップを含む長さ不明のタイムラインがあります。
何をしても、上記のムービークリップへの参照を取得できません。
これが私が試したことです:
trace(blah); // null
trace(this.blah); // null
trace(getChildByName("blah")); // null
if(currentFrame == 88)
trace(getChildByName("blah")); // null
for(var i:int=0; i<numChildren; ++i)
trace(getChildAt(i));
/* Returns:
* [object MovieClip]
* [object Shape]
* null
* [object TextField]
*/
// Assuming the first movie clip is the correct one
trace(getChildAt(0).name); // instance?? where ?? are random digits, I'm expecting "blah"
コードを介してタイムラインで生成されたオブジェクトをインポートする方法を明らかにしてもらえますか?