Solved

make a child use stage (_root) coordinates

Posted on 2002-04-10
2
137 Views
Last Modified: 2010-05-18
I'm working on  a quiz interface at: http://dev.ttstrain.com/comp/quiz.swf

After answering a given question a reply is presented with text that explains why the answer is right or wrong. The 'reply' clip holds two children, one for the text itself and one for the brownish color block behind it. (note...3 of the questions there have a sample graphic inside the question...these questions don't have a reply block...ignore 'em);

I'm dynamically controling the background's _height property depending on the number of lines in the text block. But the _y property flucuates depending on the _height value. ... even though I have the reg point at teh top of the clip.

I wanna know how to use the globalToLocal/localToGlobal method(s) to create a stable position for the background. Or I wanna know why I'm too dense to understand why those methods aren't for this sort of situation. I can figure out how to control _y by reversing the calculation that gives me the _height property but I do this sort of thing often enough and it seems like it's time to learn to do it right.

...i'm only starting at 50 in case the answer is 'don't try to use localToGlobal... I've read and tried to reproduce what AS Definitive Guide says...I don't get errors...i just don't get results.

thankx
--steve...

0
Comment
Question by:juststeve
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 50 total points
ID: 6936271
try mc.getBounds this allows you to get absolute positions
0
 
LVL 7

Expert Comment

by:ssdesign
ID: 6976207
have you placed your backgroud graphics, which changes height and width dynamically, at absolute locations?

That means, are the x and y round figures?

if not try by placing the registration point of the clip at rounded X and Y co-ordinates.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question