Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: tracking _x of object w/in MC (newbie)
From: Muzak
Date: Mon, 8 Jan 2001 06:23:28 GMT

Hi Ted,

If I'm not mistaken, what you need is localToGlobal() and/or globalToLocal().

localToGlobal(point)
Description
Method; converts the point object from the movie clip�s (local) coordinates, to
Stage (global) coordinates.

globalToLocal(point)
Description
Method; converts the point object from Stage (global) coordinates to the movie
clip�s (local) coordinates.

I haven't used this myself (yet), but from what I read in the manual, it looks like that's what you need.
hth,
Muzak

----- Original Message -----
From: "Ted Buson" <tbusonathotmail [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Sunday, January 07, 2001 10:08 PM
Subject: FLASH: tracking _x of object w/in MC (newbie)


> Hi all, stupid newbie question, hope you can help:
>
> So I've got an MC, box_mc, contained within another MC, master_mc. When I
> click on a button, the x position of master_mc changes. There's another
> button, which when clicked changes the _x of another MC, circle_mc. What i
> want to do is set the _x of circle_mc based on the _x of box_mc, but as it
> relates to the _root, not master_mc. In other words, if I just grab
> master_mc.box_mc._x, it always gives me the same number, because in relation
> to master_mc it is always the same, but what I really want is the _x as it
> actually relates to _root, i.e. where it actually looks like it is onscreen.
> Does this make sense? Can this be done? Any help much appreciated.
>
> Ted



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: tracking _x of object w/in MC (ne, Ted Buson

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]