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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:59:34+00:00 2026-05-11T19:59:34+00:00

I am converting a room editor I had made in AJAX to Flash where

  • 0

I am converting a room editor I had made in AJAX to Flash where users can move furniture around where they want, but I am running into some issues with the x,y coordinates. With the Javascript/AJAX setup, I recorded the X,Y coordinates of the furniture image, and it worked fine from the top left corner of the image. However, now trying to make it work, and load the same setups into Flash instead of with AJAX, the placement is all off. It appears that X,Y coordinates that are returned to me are from the center of the image instead of from the top left (if I drag something to the top left corner of a “room,” it shows X & Y as being half of the width and height).

Any reason why this would be? I as under the impression the X,Y coordinates worked the same in both Javascript and Flash.

  • 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-11T19:59:34+00:00Added an answer on May 11, 2026 at 7:59 pm

    I would assume that you are doing all of this with the Flash IDE, because had you loaded this all at runtime with purely code, you would have went out of your way to force these to center by specifying an x and y that is half it’s height and width. This all leads me to believe that you have put these into movieclips that you created with a centered registration.

    You need to check the x,y of the bitmaps you are using as furniture. Make sure that they are at 0,0 inside their parent movieclips. Then you simply move the parent around. If your bitmaps have negative values of half their width and height as their x and y values, this would center your bitmap in the middle of the MovieClip/Sprite as opposed to having a top-left registration.

    If you created a movieclip with centered registration, you do not have to destroy it a make a new one with another registration; Merely open the movieclip and set the bitmap/asset that is inside to a position of X: 0, Y: 0, then leave from inside the movieclip and once on the outside you will have to adjust it accordingly.

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

Sidebar

Related Questions

Converting WSDL to C# classes using microsoft net wsdl.exe tool but the tool is
I have a grid on which users can draw rectangles (actually rooms in a
am converting a flash animation to jquery# i basically have a load of divs
I'm converting pdf to html with help GS 9.04. But in result i'm getting
Converting numbers to strings is no problem, but the string created uses ascii numbers.
I am converting a SL3 application to SL4 and facing some issues. Can anyone
Converting json to oher type should be easy. From the Play! documentation : var
Converting to ODB.NET from System.Data.OracleClient and need help converting my connection string. Here is
After converting project to ARC, The converting operation removed all the - assign, retain
When converting a project (in which a template method of IComparable was used a

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.