Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-28-2007, 05:41 PM   #1
Kris Jones
Registered User
 
Join Date: Jun 2007
Posts: 1
Default fade in and out

hi, is there a way of getting my content on screen to fade out whether a menu buttons is pressed, i then want the new information to fade in into its place. the only way i can think of doing it would mean that it only work if you pressed menu buttons in order but i want it so that it works whatever button u press, oh i also dont want to have millons of tweens on the timeline.thanks
Kris Jones is offline   Reply With Quote
Old 06-29-2007, 07:39 PM   #2
dzedward
Registered User
 
Join Date: Jun 2007
Location: Palm Springs, Ca
Posts: 122
Default

import mx.transitions.Tween;
import mx.transitions.easing.*;

targetMc._alpha = 100;
otherTargetMc._alpha = 0;

yourbtn.onRelease = function() {
var tw:Tween = new Tween(targetMc, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1, true);
tw.onMotionFinished = function() {
var tw2:Tween = new Tween(otherTargetMc, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true);
}
}
dzedward is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:38 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.