Skip to main content
gamedev.net
🔒 Locked

[web] ActionScript: array of screen objects

Started by Pipo DeClown Sep 7, 2005 at 7:59 AM 1 replies 1.6k views
Original Post
Pipo DeClown
Pipo DeClown
Is it possible to get all objects (in my case they're all movieclips) from the _root? I haven't been able to find a function like _root.getChildrenArray(). Thanks in advance.
fnm
fnm
try something like this:

for (var name in _root) {
if (typeof (_root[name]) == "movieclip") {
trace("I have a movie clip child named "+name);
}
}

HTH

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.