thatrenowned
MIS
Is there a way to affect all movie clips, i.e. set them all to 0% Alpha (using Flash 5)
Thanks...
Thanks...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
for (var property in _root) {
if (typeof _root[property] == "movieclip") {
trace("Found instance: " + _root[property]._name);
_root[property]._alpha = 0;
}
}
function findPrimaryClips () {
primaryClips = new Array;
i = 0;
for (property in _root) {
if (typeof _root[property] == "movieclip") {
primaryClips[i] = _root[property]._name;
i += 1;
}
}
for (j= 0; j < primaryClips.length; j++) {
trace (primaryClips[j]);
eval(primaryClips[j])._alpha = 0;
findNestedClips(eval(primaryClips[j]));
}
}
function findNestedClips (myClip) {
for (property in myClip) {
if (typeof myClip[property] == "movieclip") {
trace (myClip[property]._name);
myclip[property]._alpha = 0;
findNestedClips (myClip[property]);
}
}
}
_root.findPrimaryClips();