trip96
03-14-2005, 11:45 PM
Hello, I have been making a menu for a site and i wanted to have a logo fade in and the menu text to fade out when the user rolls over the menu text. Then the opposite when it is rolled off the menu text. I have been able to get it to work but it only works for three rolls. then its liek actionscrupt isnt even there anymore. This is a strange problem an di was owndering if anyone had any ideas to help me here is code for one of the menu elements i am using :
//Roll over animations//////////////////////////////////////////////////////////
mcHome.onRollOver = function():Void{
var IntervalHomeO = setInterval(animateHomeO,1)
function animateHomeO():Void{
if (mcHome._alpha > 40){
mcHome._alpha--}
}
var IntervalEh = setInterval(animateEh,1)
function animateEh():Void{
if (mcEh._alpha < 100){
mcEh._alpha ++}
}}
//Roll out animations//////////////////////////////////////////////////////////
mcHome.onRollOut = function():Void{
var IntervalHomeT = setInterval(animateHomeT,1)
function animateHomeT():Void{
if (mcHome._alpha < 100){
mcHome._alpha++}
}
var IntervalEhT = setInterval(animateEhT,1)
function animateEhT():Void{
if (mcEh._alpha > 0){
mcEh._alpha --}
}}
//Roll over animations//////////////////////////////////////////////////////////
mcHome.onRollOver = function():Void{
var IntervalHomeO = setInterval(animateHomeO,1)
function animateHomeO():Void{
if (mcHome._alpha > 40){
mcHome._alpha--}
}
var IntervalEh = setInterval(animateEh,1)
function animateEh():Void{
if (mcEh._alpha < 100){
mcEh._alpha ++}
}}
//Roll out animations//////////////////////////////////////////////////////////
mcHome.onRollOut = function():Void{
var IntervalHomeT = setInterval(animateHomeT,1)
function animateHomeT():Void{
if (mcHome._alpha < 100){
mcHome._alpha++}
}
var IntervalEhT = setInterval(animateEhT,1)
function animateEhT():Void{
if (mcEh._alpha > 0){
mcEh._alpha --}
}}