Flash AS2 Tweener Issue

Posted on 2009-02-09
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

Question by:metrade23
    1 Comment
    LVL 4

    Accepted 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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Dreamweaver CC 2015

    Adobe Dreamweaver Creative Cloud is used by web designers and front-end developers and allows you to visualize your site in real-time as you code. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    Suggested Solutions

    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now