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 7049953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:05:03+00:00 2026-05-28T03:05:03+00:00

In my quest to learn ActionScript 3.0 I have stumbled across another situation where

  • 0

In my quest to learn ActionScript 3.0 I have stumbled across another situation where I know what I need to do, but just can’t figure out how to do. I have written code to animate a menu with 3 buttons. These 3 buttons reside in a seperate class file known as MenuButtons.as and I am animating them within my Main.as file which builds the application and places the relevant details onto the stage.

So in my Main.as file I have written the animation code that I would like to use to animate the buttons. Whenever a button is clicked, an event is dispatched which a handler listeners for then executes the relevant function. So the function for animating my 3 buttons looks like this (bear in mind that the buttons are arranged in a place holder in MenuButtons.as which in turn is loaded in a new MovieClip in the Main.as file)

function menuAnimate(e:Event):void
        {
            tweenMenu = new Tween(menuButtons.contactMeBtn,"y",Strong.easeInOut,200,300,0.2,true);
            tweenMenu.addEventListener(TweenEvent.MOTION_FINISH, button2);
            function button2(event:TweenEvent):void
            {
                tweenMenu = new Tween(menuButtons.galleryBtn,"y",Strong.easeInOut,100,300,0.2,true);
                tweenMenu.addEventListener(TweenEvent.MOTION_FINISH, button3);
                function button3(event:TweenEvent):void
                {
                    tweenMenu = new Tween(menuButtons.aboutMeBtn,"y",Strong.easeInOut,0,300,0.2,true);
                }
            }
            tweenLogo = new Tween(myImageLoader,"x",Strong.easeInOut,0,stage.width * -1,1,true);
        }

I also tween the logo from here too. It works fine which is great, but is there a way I can make this code more simpler? I may not be able to and I have tried to find my answer online but alas I cannot find what I am looking for.

I am loving how I am learning something new each day and by building up slowly I am learning more functionality and broadening my knowledge of ActionScript (although some of it is very confusing!)

Is there any good websites out there that can help? I have a subscription with Lynda.com but i find that their explanations can sometimes be hard to understand. I love text based tutorials where I can follow at my own pace.

Thank you

  • 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. Editorial Team
    Editorial Team
    2026-05-28T03:05:03+00:00Added an answer on May 28, 2026 at 3:05 am

    I would very much recommend getting to know TweenMax (http://www.greensock.com) which is a very powerful tweening engine.

    Using TweenMax your function could be done in one line of code:

    TweenMax.allTo([menuButtons.contactMeBtn, menuButtons.galleryBtn, menuButtons.aboutMeBtn], .2, {y:300, alpha:1 , ease:Strong.easeInOut, onComplete: tweenLogo}, .2);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm on a quest to see if I can figure out how to access
In my quest to learn C++, I have come across dynamic and static libraries.
Continuing my quest to learn more about Backbone.js I have arrived to a situation
In my quest in trying to learn more about OOP in PHP. I have
On my quest to learn NHibernate I have reached the next hurdle; how should
on my quest to learn and improve my JavaScript I came across a script
In my quest to learn C I've come across a task which is causing
In my ongoing quest to learn ruby by doing training exercises I came across
In my quest to learn javascript (which seems to be my latest source of
I'm on a personal quest to learn how the rsync algorithm works. After some

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.