Actionscript 2.0_ rollOver/rollOut movie clips

Hi,

I have 2 movieclips (using Actionscript 2.0), “mc” and “tip”. When I click the “mc”, “tip” fades in at the postion where “mc” is clicked.

Now, when I rollout of the “mc”, unless the “tip” is being rolled over, the “tip” is supposed to fade out. (If tip is rolled over, it remains visible).

What happens now is that when I try to rollover the “tip” (after clicking the (mc), the “tip” fades out.

I noticed that the current state of Boolean “rollingOver_tip” doesn’t get passed to “mc.onRollOut = function()”.

Could anyone help me with this.:shifty:

Thanks,

Amel

Here is the code:

// Import Tween/Easing classes
import mx.transitions.Tween;
import mx.transitions.easing.*;

tip._alpha = 0;

mc.enabled = true;

var rollingOver_tip:Boolean = false;

tip.onRollOver = function()
{
	rollingOver_tip = true;
	trace("rollingOver_tip = " + rollingOver_tip);
}
tip.onRollOut = function()
{
	rollingOver_tip = false;
	trace("rollingOver_tip = " + rollingOver_tip);
}



mc.onRelease = function()
{
		tip.swapDepths(this.getNextHighestDepth());
		tip._x = _xmouse;
		tip._y = _ymouse;
		
		mc.enabled = false;
		
		var myTween:Tween = new Tween(tip, "_alpha", Strong.easeOut, tip._alpha, 100, 0.2, true);
		tip.tipLabel.text = "Show text";
		
		myTween.onMotionFinished = function()
		{
			mc.enabled = true;
		}		
}


mc.onRollOut = function()
{
	if(!rollingOver_tip)
	{
		var myTween:Tween = new Tween(tip, "_alpha", Strong.easeOut, tip._alpha, 0, 0.2, true);
		
		myTween.onMotionFinished = function()
		{
			//tip._y = -200;
		}
	}
	else
	{
		tip._alpha = 100;
	}
}