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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:35:21+00:00 2026-05-16T11:35:21+00:00

I have a symbol originally created at [-100,-100] coordinate (left top corner). Now I

  • 0

I have a symbol originally created at [-100,-100] coordinate (left top corner). Now I put an instance of this symbol on a stage at [0,0] stage coordinates (by dragging it with a mouse in IDE). Having this instance can I still determine original [-100,-100] position from actionscript somehow? (myInstance.x returns stage coordinate).

What I do:

  • create a new symbol in a library located at -100,-100 coordinates during its creation
  • put an instance of this symbol on the stage at some different coordinates
  • in actionscript try to get original -100 value from instance object, like:

this.myInstance.x (only this returns stage coordinates)

Why I am doing this:

I am trying to put this movieclip into a BitmapData:

var myClip:MovieClip = this.myInstance;
var bmp:BitmapData = new BitmapData(myClip.width, myClip.height);
bmp.draw(myClip);

The problem is BitmapData looks like taking only part of a clip that lies in positive coordinates. To overcome this I would need to provide transform matrix with corresponding offsets:

var m:Matrix = new Matrix();
m.tx = 100;
m.ty = 100;
bmp.draw(myClip, m);

I would be able to calculate this offset if I knew original symbol coordinates before it was dropped on a stage.

Hopefully this makes sense.

  • 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-16T11:35:22+00:00Added an answer on May 16, 2026 at 11:35 am
    // get bounds including strokes
    // traces (x=-105, y=-105, w=110, h=110)
    trace(myInstance.getBounds(myInstance));
    
    // get bounds excluding strokes
    // traces (x=-100, y=-100, w=100, h=100)
    trace(myInstance.getRect(myInstance));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen this symbol/operator in a block of code: a+=1; But I cannot
After creating the parse tree, i have to populate symbol table now. I have
I have a MovieClip symbol created with flash in a fla file library. There
This is my Source-XML. It is originally a Word-ML which have been reduced to
i have symbol type movie clip with name xmovie how to make this symbol
I have Symbol.h and Symbol.cpp working perfectly in a separate project now I need
In the interpreter for my experimental programming language I have a symbol table. Each
I'm trying to display a spanish price. Spanish prices have the currency symbol AFTER
I have a string using the pipe symbol | as the delimiter. However, the
I have the following error: LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

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.