I have on my stage different sub menues which Id like to have fade out when I press a certain button.
Thought I could do with _alpha, but I only fades a certain procentage. Not all the way.
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000ff]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]</p>
<p>_root.[COLOR=#000080]contact[/COLOR].[COLOR=#0000ff]_alpha[/COLOR] -= [COLOR=#000080]5[/COLOR];</p>
<p> [COLOR=#0000ff]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]</p>
<p> [COLOR=#0000ff]_root[/COLOR].[COLOR=#000080]contact[/COLOR].[COLOR=#0000ff]_alpha[/COLOR] = [COLOR=#000080]0[/COLOR];</p>
<p> [COLOR=#000000]}[/COLOR][COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]
which I thought would work, but it only fades it 5% add a time.
how do I make it fade completely?
At last after many months as a newbie and asking for help I can offer something back.
//this will go straight to 0
[COLOR=royalblue]_root[/COLOR].contact.[COLOR=royalblue]_alpha[/COLOR] = 0
//this will fade it with an ease. forgive me as I can’t remember exactly what the numbers represent. The first (0) is the alpha, the second (1) if I recall, is the delay.
[COLOR=royalblue]_root[/COLOR].contact.[COLOR=royalblue]alphaTo/COLOR;
For the ease to work you have to download the source.
http://laco.wz.cz/tween/?page=download
okay…
so I have downloaded this.
easing_equations.as
lmc_tween_as1.as
how do I use them ???
Once the file is in your Flash download manager, which should be automatic once downloaded. Paste this code at the top of you AS where you intend to use the ease.
#include “lmc_tween.as”
okay - this works. thats great. Thanks so much!
No probs. Glad I could be of some help. It’s only thanks to all the guys on here that have helped me.