As you can see all Moveclip programmatically located on the current scene. For example, I created Moveclip from the library, I threw them in N number, now how can I access them in the code

    1 answer 1

    Something like this, just keep in mind that there may be other movie clips on the container, as it is necessary to identify them or store them separately.

    var parent:DisplayObjectContainer = new DisplayObjectContainer(); // Тут нужна ссылка на ваш собственный контейнер где сидят мувиклипы for (var i:uint=0; i < parent.numChildren; i++) { var o:Object = parent.getChildAt(i); if (o is MovieClip) { var mc:MovieClip = o as MovieClip // Cсылка на мувик. } }