You may try using getChildByName("instance name"); also.

var mc:MovieClip=_items.getChildByName("item2");


-- 
Warm Regards
Deepanjan Das
W: http://deepanjandas.wordpress.com
|| Om Manasamarthadata Shri Aniruddhaya Namah ||

*"Think of the environment before printing this email"

*


On Thu, Jan 13, 2011 at 9:00 PM, natalia Vikhtinskaya <natavi.m...@gmail.com
> wrote:

> I need to convert game from AS2 to AS3. This game has movie clip
> “_items” on the stage with frames. Each frame has different mc.
> frame 1- has mc “item1”
> frame 2- has mc |”item2” …
>
> _items.gotoAndStop(2)
> trace(_items.item2) // for AS2 it gives mc
> In AS3 it gives none
> (it works correctly only _items.gotoAndStop(1); trace(_items.item1))
>
>
> I need to have variable with reference
> var mc:MovieClip=_items.item2
>
> How to solve this situation in AS3?
>
> Thank you in advance.
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to