all groups > flash actionscript > january 2006 >
You're in the

flash actionscript

group:

Can someone check on this code please?


Can someone check on this code please? lt7817
1/10/2006 11:48:08 PM
flash actionscript: on (press) {
if(_parent.donePreLoading){
_parent.stopMovie(_parent.scrubTarget)
//_parent.playgelRight(true);
_parent.scrubTimeLineHandle = "scrub";
this.startDrag(false, 0, _parent.timeLine._y, _parent.preloadBar._width -
this._width, _parent.timeLine._y);
}
}
on (release, releaseOutside) {
if(_parent.donePreLoading){
_parent.scrubTimeLineHandle = "zero";
this.stopDrag();
if (_parent.scrubTargetState == "play") {
_parent.playMovie(_parent.scrubTarget)
_global.gelRight._visible = false;
} else {
_parent.stopMovie(_parent.scrubTarget)
_global.gelRight._visible = true;
}
}
}
Re: Can someone check on this code please? lt7817
1/10/2006 11:52:38 PM
Hi,

My scrub bar runs ok, but when I grab and drag it to somewhere, it's 1. stop
2. the play button is not visible (the pause button is still visible). I would
like to know what's wrong with my code. What should I add to the code so that
the play button is visible when I release the mouse? Thank you in advance.

lt
AddThis Social Bookmark Button