Flasher Archive

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


Subject: FLASH: x,y position within a MC
From: Greg Wetmore
Date: Thu, 24 Aug 2000 16:34:00 +0100

hey y'all, here's one for you. I've got a project where I have flash create
a line connecting two points, both of which need to move. Here's the code
to connect the points:

Duplicate Movie Clip ("line", "newline", 1)
Set Property ("newline", X Position) = GetProperty("dragme",_x)
Set Property ("newline", Y Position) = GetProperty("dragme",_y)
Set Property ("newline", X Scale) =
GetProperty("followdrag",_x)-GetProperty("dragme",_x)
Set Property ("newline", Y Scale) =
GetProperty("followdrag",_y)-GetProperty("dragme",_y)

Ok, well here's the problem. When the user drags "dragme", I need to have
"followdrag" follow it, but with a bit of a delay. It's supposed to be like
if you had an object ("followdrag") at the end of a rope and you're moving
the rope around by grabbing the other end of it ("dragme")

I tried putting a MC ("dot") in the line MC, and getting the x,y position to
dictate where "followdrag" goes, but for some reason Flash is using the x,y
for "dot" from within the line MC. Right now I'd be content to just get
Flash to read the "dot" x,y the way I need it - the positioning I can figure
out. Here's the code for finding the x,y of "dot":

Set Variable: "dotx" = GetProperty ("/newline/dot",_x)
Set Variable: "doty" = GetProperty ("/newline/dot",_y)


So, the big question is: does anyone know how I can get it to give me x,y
relative to the stage?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: flash 5 player: installer on mac , David Wallach

Replies
  Re: FLASH: go to action with expression, Ulrich Sinn

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