Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-10-2008, 12:57 PM   #1
Kimchee
Senior Member
 
Join Date: Nov 2008
Location: Provo, UT
Posts: 110
Default temporarilay pause program?

I have a program that when a certain action is performed I want to be able to stop computing for about .5 seconds and have text pop up and then fade out.

2 problems. How can I pause the program while the text is fading out, and how can I get text to fade out? I image mytext.alpha +=.1 in a loop or something, but I imagine there is a slicker tween function or soomething.
Kimchee is offline   Reply With Quote
Old 11-10-2008, 02:11 PM   #2
raydowe
Senior Member
 
Join Date: Jan 2007
Posts: 357
Default

For text, you can use a tween. Put the textbox inside a movie clip (holder_mc).

ActionScript Code:
import fl.transitions.Tween; import fl.transitions.easing.*; var t:Tween = new Tween(holder_mc, "alpha", None.easeNone, 1, 0, 0.5, true); // this creates a tween on holder_mc, changing it's alpha, easing it neither in // or out but at a constant rate, from 1 to 0 over 0.5 seconds // (seconds = true, frames = false)

to "pause the program", I'm not sure exactly what you mean, but you'll probably want to open Flash CS3 Help and search for 'Timer Class'
raydowe 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pause the animation kleave ActionScript 3.0 3 07-24-2008 11:18 AM
A pause loop? Legacy ActionScript 1.0 (and below) 5 03-04-2008 03:57 AM
Pause function trouble (audio) priceofacoke910 ActionScript 2.0 32 09-18-2007 04:01 PM
Play / Pause Buttons and Timeline Control! Jason64 ActionScript 2.0 4 01-25-2006 03:53 AM
Flash chump looking for help with a pause button. Selftaught Other Flash General Questions 3 06-29-2005 03:08 PM


All times are GMT. The time now is 10:33 AM.

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