Flasher Archive

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


Subject: Re: FLASH: x and y positons to main movie
From: John Croteau
Date: Wed, 15 Sep 1999 00:15:10 +0100

Hi Miguel,

> Main movie, canvas size = 400 x 300
> movieclipe "m1", placed in main movie (any place).
> movieclipe "m2", placed inside "m1".
> m1 -> first frame, actions:
> Set Property ("m2", X Position) = 0
> Set Property ("m2", Y Position) = 0
> But is the "0" of the "m1" movieclip.
> I need the "0" location (both x and y) of the main movie (400 x 300 px).
The problem is you are using main timeline (stage) rules for symbol
timeline (symbol edit window) rules.

The _x and _y properties are specified in the local coordinate system of
the parent of the movie clip. If a movie clip is on the main timeline,
then its coordinate system refers to the upper left corner of the Stage
as 0,0. If the movie clip is (nested) inside another movie clip the
movie clip's coordinate system uses the center of the symbol edit window
as its center (0,0).

Therefore to move to the upper left corner:

Set Property ("M2", X Position) = -200
Set Property ("M2", Y Position) = -150

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  RE: FLASH: x and y positons to main movi, Miguel Castarde Neto

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