Chcking for the existance of a movie clip by its instance name


hey, i'm working on as2 stuff , in 1 function have used

_root.attachmovie("box_mc", "box"+boxcount, _root.getnexthighestdepth());

to attach few boxes on stage(expecting 100+)...

what want (from different function) check see if box exists string of instance name e.g. ifmovieclipexists("box3");

is there function this?

cheers,
jamey

movieclipexists = _root.box3 <> undefined;

//will true if clip exists , false if not


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support