I've been searching support to get "fade-in fade-out" effect and at last i found it. But it works en mail timeline, and i'm unabled to get it work ina mc.
The code is:
onClipEvent (enterFrame) {
// if the mouse IS over the button ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the button is NOT at 100% alpha...
if (_root.fade._currentframe<_root.fade._totalframes) {
// keep playing the next frame...
_root.fade.nextFrame();
}
// if the mouse is NOT over the button
} else {
// if the button is NOT at 0% alpha
if (_root.fade._currentframe>1) {
// keep playing the previous frame...
_root.fade.prevFrame();
}
}
}
What i have to change to get it work in a movieclip?
Thanks in advance to all
The code is:
onClipEvent (enterFrame) {
// if the mouse IS over the button ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the button is NOT at 100% alpha...
if (_root.fade._currentframe<_root.fade._totalframes) {
// keep playing the next frame...
_root.fade.nextFrame();
}
// if the mouse is NOT over the button
} else {
// if the button is NOT at 0% alpha
if (_root.fade._currentframe>1) {
// keep playing the previous frame...
_root.fade.prevFrame();
}
}
}
What i have to change to get it work in a movieclip?
Thanks in advance to all