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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:30:13+00:00 2026-05-12T15:30:13+00:00

This may be obvious but it’s been ages since I used flash. I have

  • 0

This may be obvious but it’s been ages since I used flash. I have an object drawn in flash lets say a clock. When the clock is clicked I want to animate the hands spinning round.

So do I create the clock as a button and call the animation on the down state? Or is it better to create a movie clip and have it act like a button? Atm I’m using listeners to listen for clicks on objects and navigate to its animation in the main timeline. If I have many objects the main timeline is going to get huge so I need a good way to make everything into movieclips but still be able to click them. I’m using CS4 AS3

Thanks

  • 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-12T15:30:14+00:00Added an answer on May 12, 2026 at 3:30 pm

    Make it a MovieClip. Lets say your instance name for the clock is “mcClock”. Since we access the target you can use the same function handler for all your MovieClips.

    mcClock.addEventListener(MouseEvent.CLICK, handleClickOnObject);
    mcClock.buttonMode = true; //to display hand cursor
    //easily use the same functon for another MovieClip
    mcClock2.addEventListener(MouseEvent.CLICK, handleClickOnObject);
    
    function handleClickOnObject(e:MouseEvent):void
    {
         e.target.play(); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this may seem obvious, but I've been researching this all night to no avail.
This may have an obvious answer, but I am very new to js so
This may be obvious to you, but I'm definitely clueless. I basically have a
This may be something obvious but I've been banging my head against it for
This may be obvious to some, but I've been wondering: why should I depend
This may have been already asked but I can't seem to find this specific
I may be missing something obvious here, but how could I rewrite this code
This may be obvious but I can't see to find my way to the
This may be obvious but I can't figure out how to bind a static
This may seem obvious to most people, but I'm just trying to confirm that

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.