Flasher Archive

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


Subject: Re: FLASH: position of a movie clip REVISED
From: Scott Rouse
Date: Thu, 9 Nov 2000 16:24:51 GMT

You first have to decide if you want the local coordinates (the x,y from
within MC "burger") or the global coordinates.

For global coordinates simply add the x of the MC "burger" with the x of MC
"bun"

burgerx0 = (_root.burger._x + _root.burger.bun._x)
or
burgerx0 = getProperty ("burger",_x) + getProperty("burger/bun",_x)

There is some code that does directly change coordinates from local to
global in Flash 5, but I haven't dealt with it yet (at least successfully).

Otherwise if you do want local...if you just do the
getProperty("burger/bun", _x) you will get where bun is within Burger.


>
>
>
> I have a movie clip "burger" with instance name burger0
>
> If i want to get the x position ( burgerx0 )and the
> y position ( burgery0 ) of a movie clip "bun" within the burger movie
clip.
>
> MC bun has instance name bun
>
> what is the action for this ? I've tried a few things but it's having a
> temper tantrum.
>
> Thank you
> Quack
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: position of a movie clip REVISED, Quack the Duck

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