PDA

View Full Version : how do i reset progress bar. Only works for the 1st image


kool-Aid
09-20-2006, 10:07 PM
I have created an imageholder and buttons that put images there. My progress bar only works for the first image, then stays at 100%. This is how i did it. If anyone can help thanks in advance.

//my image holder
_root.createEmptyMovieClip("mcImageHolder",5);
mcImageHolder._x = 550;
mcImageHolder._y = 100;

//my buttons
girlThumb.onRelease = function() {
mcImageHolder.loadMovie("girl1.png");
textBox.text = "A young lady enjoys a Krank'd on a hot summer day.";
};
kidsThumb.onRelease = function() {
mcImageHolder.loadMovie("kids.png");
textBox.text = "Here are two kids drinking Krank'd Fruit Punch.";

my progress bar is the componant progress bar with all the settings done in the properties inspector under parameters. (It has this code in it's action panel)

onClipEvent (load) {
}.


I don't want to have to script each button to destroy the last mc and create another. And attach a componant to the new empty mc that just seems crazy.