Hi,
I’m attempting to build a flash movie that can dynamically load in external images into empty movie clips… which need to load into a scrollpane and also be clickable.
So far my code for generating the movie clips and loading the images looks like:
depth = 5;
y = 10;
for (i=0; i<total; i++) {
categoryNum = xmlNode.childNodes[0].childNodes*.attributes.value;
createEmptyMovieClip("categoryImage" + i, depth);
_root["categoryImage" + i]._x = 670;
_root["categoryImage" + i]._y = y;
loadMovie("category_images/" + categoryNum + ".jpg", "categoryImage" + i);
_root["categoryImage" + i].onRelease=function(){
trace("HIT");
}
depth++;
y+=90;
}
This creates a nice vertical line of my images, lined up where I want it in the main movie.
My questions are:
-
How do I make the movieclips clickable?? You will see that I have code in there for an onRelease(), but it doesn’t seem to do anything.
-
How would I go about loading these clips into a scollpane?
Basically what I want to end up with is dipicted in the jpg I’m attaching to this message.