hey, recurring problem.
i have a few functions on their own frame on the stage. sometimes i want to functions to work at the same time.how?
function revealImg() {
//set button size as above
buttSize = 20;
initY = stage._width;
holderMc._visible = 1;
holderMc._alpha = 0;
//
initR = buttRight._x;
initL = buttLeft._x;
t = 0;
duration = 50;
buttLeft._visible = 1;
buttRight._visible = 1;
pinkE._visible = 0;
this.onEnterFrame = function() {
if (t<duration) {
buttRight._x = Math.EaseOutExpo(t, initR, buttSize, duration);
buttLeft._x = Math.EaseOutExpo(t, initL, -buttSize, duration);
holderMc._alpha = Math.EaseOutExpo(t, 0, 100, duration);
t++;
}
};
}
function showPinkE() {
t = 0;
duration = 30;
this.onEnterFrame = function() {
if (t<duration) {
t++;
}
if (t>=duration) {
pinkE._visible = 1;
delete this.onEnterFrame;
}
};
}
my problem is that i use this.onEnterFrame(). i understand that only 1 function can use this at a time, but how can i use something else .onEnterframe without encountering the wierd problems?
i tried _root, things went odd.
tried anotherMc.onEnterFrame but probs as well.
please let me know how to deal with this.
kd