-
Tracing all instances on the stage
Is there a way to trace all movie clips instances on the stage? Im attaching and removign clips threw a loop and cant tell if there gettign removed is there a way to trace all instances curringt in the movie?
-
Senior Member
to trace all the instances on _root level use:
Code:
for(var z in _root){
if(_root[z] instanceof MovieClip){
trace(_root[z])
}
}
to trace all the instances on the stage i.e child and parent clips, use:
Code:
function getAllInstances(level){
for(var z in level){
if(level[z] instanceof MovieClip){
trace(level[z])
getAllInstances(level[z])
}
}
}
getAllInstances(_root)
but if you only want the instances, on say the _root level, then use the first script as it will be more efficient,
HTH,
zlatan
-
Originally Posted by dudeqwerty
to trace all the instances on _root level use:
Code:
for(var z in _root){
if(_root[z] instanceof MovieClip){
trace(_root[z])
}
}
to trace all the instances on the stage i.e child and parent clips, use:
Code:
function getAllInstances(level){
for(var z in level){
if(level[z] instanceof MovieClip){
trace(level[z])
getAllInstances(level[z])
}
}
}
getAllInstances(_root)
but if you only want the instances, on say the _root level, then use the first script as it will be more efficient,
HTH,
zlatan
Thanks allot ill try that!!!!!!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|