Like the www.macromedia.com site’s menu bar, when you rollover the menu bars it slowly fades to the color, and when you rollout it fades back. How is that done? Best I have been able to do is instant color fades? :evil: :evil: :evil:
in my opinion … that’s just another shape fading in
but if you want to change the color … :bad:
onClipEvent (load) {
myColor = new Color (this)
myColorTrans = myColorVars = myColor.getTransform ()
}
onClipEvent (enterFrame) {
for (k in myColorVars) {
myColorVars[k] += (myColorTrans[k] - myColorVars[k]) / 4
}
myColor.setTransform (myColorVars)
}
on (rollOver) {
myColorTrans = { ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:0, ab:0 }
}
on (rollOut) {
myColorTrans = { ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:0, ab:0 }
}
all you have to do is change the values of [color=red]myColorTrans[/color] in the rollOver and rollOut handlers
ra is the percentage for the red [size=1][ -100 to 100 ][/size]
rb is the offset for the red [size=1][ -255 to 255 ][/size]
ga is the percentage for the green [size=1][ 00 to 100 ][/size]
gb is the offset for the green [size=1][ -255 to 255 ][/size]
ba is the percentage for the blue [size=1][ -100 to 100 ][/size]
bb is the offset for the blue [size=1][ -255 to 255 ][/size]
aa is the percentage for alpha [size=1][ -100 to 100 ][/size]
ab is the offset for alpha [size=1][ -255 to 255 ][/size]
For what it is worth, the intro to flash tutorial has 3 buttons that are black/white and they have a matching shape behind them that fade in when you move the mouse over them.
in my opinion … that’s just another shape fading in
what did i say?
Hehehe, Your quoting yourself and asking what you said at the same time?? I think you need a break more than I do
nope …
what did i say?
was for you !!
but yes … i do need a break