Flasher Archive

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


Subject: RE: FLASH: position of a movie clip REVISED
From: Paul Willoughby
Date: Thu, 9 Nov 2000 16:44:12 GMT

I'm assuming your using Flash 4.
If burger is on the main timeline and you just want to set a variable
based on it's position use this syntax:

SetVariable: "burgerX" = /burger:_x
(with the variable field set to expression)

And for the bun in the burger (what kind of restaurants do you eat at?):

SetVariable: "bunX" = /burger/bun:_x

If you wanted to use it in a more complicated expression, like if you
wanted to do something based on relative positions without bothering to
set variables first, you need to use the GetProperty syntax. Here's an
example:

If(GetProperty("/burger", _x) > GetProperty ("/burger/bun", _x))
Put the burger back in the bun!

hth

paul

Quack the Duck wrote on 10 November 2000:

> 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


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