• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Flash AS2 Tweener Issue

I am creating a flash project which includes the tweener transitions.  I'm trying to hide login fields until the user rolls over a clip displaying the fields.  The problem is when I try to access the fields my RollOver state changes and my fields disappear.  Is there a way to make this function using the tweener?
import caurina.transitions.Tweener;
mc1.onRollOver = function() {
	Tweener.addTween(this, {_y:90, time:.25, transition:"easeinoutback", onComplete:function() {this._visible = true;}});
	Tweener.addTween(login, {_y:70, _alpha:100, time:.80, transition:"linear"});
	login._visible = true;
mc1.onRollOut = mc1.onReleaseOutside = function() {
	Tweener.addTween(this, {_y:51, time:.25, transition:"easeoutback"});
	Tweener.addTween(login, {_alpha:0, _y:70, time:.0, transition:"linear"});
	login._visible = false;

Open in new window

1 Solution
Hi metrade23

You can make the field as part of your movie clip then you wont have to worry about the state change.

I have attach a sample, Hope it helps you.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now