Answered
Get All instance names in the stage
hi,
is there any way to get all instance name of the objects presents on the stage ? trace them for example
thank you
hi,
is there any way to get all instance name of the objects presents on the stage ? trace them for example
thank you
traceF(this);
function traceF(mc:MovieClip):Void{
for(s in mc){
if(mc._parent==mc){
trace(s+" : "+mc);
// if you want to check for children add:
if(typeof(mc)=="movieclip"){
traceF(mc);
}
}
}
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.