var graphics:Array = new Array("ball01_mc", "ball02_mc", "ball03_mc");
function crossFade(theClip, startAlpha) {
theClip.onEnterFrame = function() {
theClip._alpha -= startAlpha/25;
if (theClip._alpha<1) {
trace("next");
gotoAndPlay("next");
}
};
}
//In the following an attempt to pass graphics * as a parameter of
crossFade() fails.
//any insight into my misuse would be appreciated.
for (var i = 0; i<graphics.length; i++) {
trace(graphics*);
ball01_mc.duplicateMovieClip(graphics*, i);
_root[graphics*]._x = _root[graphics[i-1]]._x+50;
graphics*.onEnterFrame = function() {
crossFade([graphics*], 100);
};
}