hey everyone,
i’ve been struggling with this for a while.
i have a mc (named mask) which on enterFrame i want to go from _yscale = 0 to _yscale = 100 when a variable _myClip.myBytes == 100;
simple.
onLoad there is also a variable called _root.Section = 1;
this sits inside a button.
i have another button with _root.Section=2;
when i press this, i want the mask mc to go from _yscale = 100 to _yscale = 0 (so basically the opposite to what it was).
can’t do it!
i understand that the problem because myClip.myBytes is still = 100, but how do i get rid of that?
wrote this:
_root.mask._yscale=0;
_root.holder.loadMovie(“pana1.swf”);
this.onEnterFrame = function(){
if(_root.holder.myBytes == 100){
if(_root.mask._yscale<100){
_root.mask._yscale +=2;
if(_root.buttons._y>105){
_root.buttons._y +=(105 - _root.buttons._y)/10;
}
}
}
}
delete this.onEnterFrame();
buttons.onEnterFrame = function(){
if(_root.Section!=1){
if(_root.mask._yscale>0){
_root.mask._yscale -=2;
}
}
}
the myClip.myBytes var basically = 100 when pana1.swf has completed loading.
i thought using delete this.onEnterFrame would do it, but no!
any ideas?
thanks
kd