Hello! First time poster but longtime lurker… I’ve been going round and round with this problem all morning trying to solve it…
What I am trying to do is dynamically load a bunch of catalog images into a movie clip which will then be shown in a scrollpane… the images are coming from an array and everything is working fine there but they all load on top of one another. I can’t seem to doing anything to make the movieclips move? I’d like them to be in a line…
Granted I’m far from stellar with my Actionscript but this seems like I must be missing something easy! Here’s what I have
productList = new Array("1.jpg", "2.jpg","3.jpg","4.jpg");
function itemAdd(mcToUse,theProduct,placeToGo,theLevel) {
mcMain.createEmptyMovieClip(mcToUse,theLevel);
mcMain.setProperty(mcToUse, _x, placeToGo);
mcMain.loadMovie(theProduct, imageHolder);
}
for (j=0; j<productList.length; j++) {
itemAdd("item"+j,productList[j],150*j,j);
i++;
scrollPane.invalidate();
}
everything seems to load fine and I get no errors but the only image that I see is the last one as they are “stacking up” over one another… any ideas! Thanks!!