Hey
ActionScript Code:
[LEFT][COLOR=#0000FF]import[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]Tween[/COLOR];
[COLOR=#0000FF]import[/COLOR] mx.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]easing[/COLOR];
[COLOR=#000000]var[/COLOR] popLoad:Tween = [COLOR=#000000]new[/COLOR] Tween[COLOR=#000000]([/COLOR]popupMC.[COLOR=#000080]bgMC[/COLOR], [COLOR=#FF0000]"_alpha"[/COLOR], Elastic.[COLOR=#000080]easeIn[/COLOR], [COLOR=#000080]0[/COLOR], [COLOR=#000080]80[/COLOR], [COLOR=#000080]40[/COLOR], [COLOR=#000000]false[/COLOR][COLOR=#000000])[/COLOR];
popupMC.[COLOR=#0000FF]pop[/COLOR].[COLOR=#0000FF]_visible[/COLOR] = [COLOR=#000000]false[/COLOR];
[COLOR=#808080]**[/COLOR]
showPopUp = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]popupMC.[COLOR=#000080]bgMC[/COLOR].[COLOR=#0000FF]_alpha[/COLOR] >= [COLOR=#000080]78[/COLOR][COLOR=#000000])[/COLOR]
popupMC.[COLOR=#0000FF]pop[/COLOR].[COLOR=#0000FF]_visible[/COLOR] = [COLOR=#000000]true[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]onEnterFrame[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
showPopUpCOLOR=#000000[/COLOR];
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR]popupMC.[COLOR=#000080]bgMC[/COLOR].[COLOR=#0000FF]_alpha[/COLOR] [COLOR=#000000])[/COLOR]
[COLOR=#000000]}[/COLOR]
hidePopup = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]popupMC.[COLOR=#000080]bgMC[/COLOR].[COLOR=#0000FF]_alpha[/COLOR] <= [COLOR=#000080]78[/COLOR][COLOR=#000000])[/COLOR]
popupMC.[COLOR=#0000FF]pop[/COLOR].[COLOR=#0000FF]_visible[/COLOR] = [COLOR=#000000]false[/COLOR];
[COLOR=#000000]}[/COLOR]
popupMC.[COLOR=#0000FF]pop[/COLOR].[COLOR=#0000FF]close[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]//trace(popupMC.bgMC._alpha )[/COLOR]
[COLOR=#808080]//unloadMovie(popupMC)[/COLOR]
hidePopupCOLOR=#000000[/COLOR];
[COLOR=#000000]var[/COLOR] popUnload:Tween = [COLOR=#000000]new[/COLOR] Tween[COLOR=#000000]([/COLOR]popupMC.[COLOR=#000080]bgMC[/COLOR], [COLOR=#FF0000]"_alpha"[/COLOR], Elastic.[COLOR=#000080]easeOut[/COLOR], [COLOR=#000080]80[/COLOR], [COLOR=#000080]0[/COLOR], [COLOR=#000080]40[/COLOR], [COLOR=#000000]false[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
What I’m trying to do is when the fla loads the background’s alpha will go from 0 to 80, then the “pop” will appear >80. How come when I trace the alpha stays at 79.6875?
Also,
When I try to hide popup, it doesn’t work.
If someone can look at my code and tell me whats wrong with it, it will be a great help.
thanks vxd