This content has been marked as final. Show 9 replies
are you trying to do it in actionscript or can you do it with Tween?
i think i need to use actionscript (or, i was hoping, an extension or something). with tweening i presume i would create the tween in the movie clip, then have the buttons tell the movie clip to go to the starting point of the tween?
you reply, i thank you
the code below the dotted line adds a new method to movieclips, colorFadeF(). it requires 6 parameters: start rgb, start alpha, end rgb, end alpha, duration in seconds and steps (an integer to specify the number of intermediate colors you want to display when going from start to end).
the code above the dotted line is an example of how to apply this method:
Thanks kglad. i think it may be a little beyond me right now but i'll see.
appreciate it, cheers
if this is beyond you, your best bet would be tweening it and tell your MC to play on roll over and roll out
yeh, that is beyond me, it's tweening or bust for now. thanks all.
there's nothing you need to do to use the code i gave except copy and paste the code below the dotted line into your fla.
then apply the colorFadeF() method to any movieclip you like.
using the tweening class for color fading is more complex to apply than the above method.
i feel slightly sheepish for saying this after getting everyone involved, but even with your instructions i am slightly confused. my knowledge of actionscript is pretty much zero - i got into flash when we were on about flash 5, and have had a few years haitus since then. so until i figure out a bit more about how actionscript works i'll have to skip this and keep it simple for now - need to finish this thing!
when I said Tweening I meant to say use the timeline to change the color by changing the Tint.
kglad, ponch is really beginner. People that dont understand actionscript won't be able to apply the code. even though it is simple (for us) as you said