The following code is a function difined in my _root. If I create a variable _root.alpha and reference that in the function everything works fine. But when I use the function with an internally difined variable it doesn’t work. I need to be able to call this function from a number of movies in different timelines. Any help would be appriciated.
[INDENT]fade = function (alpha) {
if (alpha<=0) {
alpha = 0;
myColorTransform = {ra:‘100’, rb:alpha, ga:‘100’, gb:alpha, ba:‘100’, bb:alpha, aa:‘100’, ab:‘100’};
my_color.setTransform(myColorTransform);
break;
} else {
myColorTransform = {ra:‘100’, rb:alpha, ga:‘100’, gb:alpha, ba:‘100’, bb:alpha, aa:‘100’, ab:‘100’};
my_color.setTransform(myColorTransform);
alpha -= 25;
}
};
[/INDENT]