View Full Version : need help with button
soundgarden
07-23-2003, 01:16 PM
I have a movieclip called happy. I put an instance of it on the stage with the instance name happy1. What i want is when i click on a button the alpha of the instance slowly decreases. I tried putting a Mc in the down state of the button and put this script on the MC:
onClipEvent(enterFrame){
_root.happy1._alpha -=10;
}
Why is it not working?
Ricod
07-23-2003, 01:33 PM
Let me get this right. You put the "happy1" mc in the downstate of a button, yes ? Then the path is not _root.happy1, as the happy1 mc is not on the main timeline. Try using a relative url for this instead.
onClipEvent(enterFrame){
this._alpha -=10;
}
But to have more control over a mc, most people place an invisible button (a button with only a graphic on the "hit state") and place it in / on / under the mc they want to use as the button graphics.
soundgarden
07-23-2003, 01:41 PM
NONONONONO...
To make it simpler, what I want is a button that gradually decreaces the alpha of a MC unitl it reaches zero.
akschinas
07-24-2003, 10:56 AM
Try this...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.