We help IT Professionals succeed at work.

Flash AS2 Tweener Issue

metrade23 asked
Medium Priority
Last Modified: 2012-05-06
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

Watch Question

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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.