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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:58:49+00:00 2026-05-30T01:58:49+00:00

a display object container on the stage has some bitmap images of sizes 50×50

  • 0

a display object container on the stage has some bitmap images of sizes 50×50 arranged in a order one by one. Now if i click on any of the thumbnail image (bitmap) the entire container should move and position itself so that, the bitmap image clicked is placed in the center of the stage.

How can we do this in ActionScript 3.0. Can somebody point out an example or a resource please?

  • 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-30T01:58:49+00:00Added an answer on May 30, 2026 at 1:58 am
    thumbnail.addEventListener(MouseEvent.CLICK, _position);
    
    function _position(e:Event):void
    {
        var thumb:Bitmap = Bitmap(e.target);
    
        container.x = -thumb.x + (stage.stageWidth / 2);
        container.y = -thumb.y + (stage.stageHeight / 2);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i reference a display object's coordinates according to it's parent object or
I need to create interface MultiLingual, that allows to display object's data in different
my movie is 500 by 200 px. However i am loading display object much
I am trying to display name object, but its not working. I seem to
This is pure curiosity. Let's write an object: var display = { res1:{ w:640,
Following the documentation, I am able to display the person object in the sayHelloView
This compojure question is twofold! How can I display an image object in a
I would like to display a line of text only if an object called
I'm having a problem with the drawing order of display objects when targeting html5.
Is it possible to have multiple view of the same display object? (e.g. same-computer

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.