Flash Problem
Out of context: Reply #5
- Started
- Last post
- 18 Responses
- CyBrainX0
Well, I tried your advice, but it's not working. This movie has a "next" button that increments the img variable.
This is my script on frame 1:
img = 0;
imgTotal = 194;
fadeTime = 2;
var imgArray:Array = new Array(193);
/**/
for (img = 0; i < imgTotal - 1; img++) {
// THIS LINE CAUSED FLASH TO FREAK OUT
var container:MovieClip = createEmptyMovieClip("container" + img + "_mc", getNextHighestDepth());
}
function onLoadComplete(mc:MovieClip) {
trace("img: " + img + 1 + " onloadComplete");
container._x = 0;
container._alpha = 0;
container.swapDepths(interface_m...
}
advance = function () {
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(imgArray[img], container);
container.alphaTo(100, fadeTime/2, "easeOutQuad");
trace("x= " + container._x + " alpha= " + container._alpha + " day: " + day + " img: " + img + " array " + imgArray[img]);
};
advance();Why can't I create an array of 194 empty movie clips?