Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 176275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:50:51+00:00 2026-05-11T13:50:51+00:00

I have this code that is supposed to take an array with some words,

  • 0

I have this code that is supposed to take an array with some words, and apply the tweens to them, one by one, with a specified timeout. I think I have to make an empty movieclip out of them and then animate them with a foreach loop with a timeout, but I’m lost in how I would do that exactly.

This is where I’m at:

var array:Array = new Array('word', 'is', 'here');  var bounce:Function = function(mc:MovieClip):void { mc.bounce1 = new Tween(mc, '_y', Bounce.easeOut, 35, 75, 1, true); mc.bounce2 = new Tween(mc, '_xscale', Bounce.easeOut, 0, 400, 4, true); mc.bounce3 = new Tween(mc, '_yscale', Bounce.easeOut, 0, 400, 4, true); mc.bounce4 = new Tween(mc, '_alpha', Regular.easeInOut, 100, 0, 2, true); }; array.forEach(bounce, me); 

Could really need some assistance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:50:51+00:00Added an answer on May 11, 2026 at 1:50 pm

    I don’t have CS3, but I whipped up a quick example using a free tweening library called Tweener. You can find it here.

    import flash.events.Event; import flash.display.MovieClip; import flash.text.TextField;     import flash.text.TextFormat; import flash.text.TextFieldAutoSize; /* this is a free Tweening library. I don't have flash CS3 but this is analogous to fl.transitions.Tween */  import caurina.transitions.Tweener;   public class Main extends MovieClip  {     public function Main():void      {         if (stage) init();         else addEventListener(Event.ADDED_TO_STAGE, init);     }      private function init(e:Event = null):void      {         removeEventListener(Event.ADDED_TO_STAGE, init);          /* your array of words */         var array: Array = new Array('word', 'is', 'here')          /*we'll use this to control the position of each word*/         var x : int = 0          var delay : Number = 0.0          for each(var s : String in array)         {             var word: TextField = new TextField()             word.autoSize = TextFieldAutoSize.LEFT              /* here we can adjust text format */             word.defaultTextFormat = new TextFormat(null, 75, 0xff0000)              word.text = s             word.x = x             word.y = 75              /* put the new word into our MovieClip */             addChild(word)              /* apply some tweens */             bounceText(word, delay)              /* adjust our animation and position variables */             delay += 1.3             x += word.width         }     }      private function bounceText(a_textField : TextField, a_delay : Number) : void     {         /* duration of each tween */         var t:Number = 0.75          /* this is the 'up' part of the tween, from y=75 to y=35 */         Tweener.addTween(a_textField, { y:35, delay:a_delay, time:t, transition:'easeOutQuad' } );          /* this is the 'down' part of the tween. note the 'delay' parameter is offset by the time of the first tween.          * the 'onComplete' function calls BounceText again when the second Tween is complete. If you are using fl.transitions.Tween,          * you can add an event listener for a TweenEvent.MOTION_FINISH event, or set the 'looping' property of the Tween to true.          * */         Tweener.addTween(a_textField, { y:75, delay:a_delay + t, time:t, transition:'easeInQuad', onComplete:bounceText, onCompleteParams:[a_textField, 0.25] } );     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 223k
  • Answers 223k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer using (TransactionScope transactionScope = new TransactionScope()) { using (SharedDbConnectionScope sharedConnectionScope… May 13, 2026 at 12:35 am
  • Editorial Team
    Editorial Team added an answer Do you want the URL in the address bar to… May 13, 2026 at 12:35 am
  • Editorial Team
    Editorial Team added an answer dbm convert key and value to string, so : p… May 13, 2026 at 12:35 am

Related Questions

When coding new javascript heavy websites, which order or web browser do you code
I have a WPF UserControl that I'd like to inject dependencies into. What's the
I'm writing some plugin code in a dll that is called by a host
I would like to know, in a practical sense, on a large scale (Java

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.