I am currently making a site that references in information from XML. I created a movie clip (image_holder1_mc) that I populate with images referenced from an XML file (which is working well).
My question is: Is the movie clip ALWAYS called "image_holder1_mc" even after there is an image in it (I load the images in the following way - - -> image_holder1_mc.loadMovie(filename1[currentIndex])" or does the movie clip change to the name of the file that it has been populated with?
For example, the movie clip is called "image_holder1_mc" but after there is an image populating it, is it called "bubba.jpg" etc. and not "image_holder1_mc" any more?
The reason why I am asking is that I want to do a simple "on (rollOver)" and "on (rollOut)" to display the captions of the pictures using an invisible button but I don't know whether I call "image_holder1_mc" or the new file name (bubba.jpg). I have tried the "on (rollOver)" and "on (rollOut)" with a static image and it works but when the images are dynamic, it doesn't seem to work anymore.
I have tried the following and it isn't working:
On the invisible button, I have the following action script
on (rollOver) {
_root.mouse_over_image_holder1_mc = true;
}
on (rollOut) {
_root.mouse_over_image_holder1_mc = false;
}
In the first frame of the file, I have the following action script:
_root.image_holder1_mc.onEnterFrame = function() {
if (mouse_over_image_holder1_mc) {
_root.image_holder1_mc.nextFrame();
} else {
_root.image_holder1_mc.prevFrame();
}
};
Thanks.....
B.