Flasher Archive

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


Subject: RE: FLASH: drag property
From: Paul Willoughby
Date: Thu, 12 Oct 2000 12:42:07 +0100

Hi Antony

I don't think they are using a tell target for this, they're just moving the
image according to where you drag the square or the bitmap image.

>how can you detect where a dragged object is while the user is still
>dragging it

You need a looping movie clip subroutine like this (this presumes all clips
on _level0):

Frame 1
SetVariable: "squareCurrentX" = /square:_x
SetVariable: "bitmapCurrentX" = /bitmap:_x
SetVariable: "squareCurrentY" = /square:_y
SetVariable: "bitmapCurrentY" = /bitmap:_y

Frame 2
Go to and play (1)

Once you've got all these variables you would have to write another
expression into frame 2 that sets the property of the square and the bitmap
depending on their values, something like:

Set Property ("/square", X Position) = bitmapCurrentX/4

This relationship (bitmapCurrentX/4) is arbitary, it might be something like
bitmapCurrentX - 200, I can't see immediately what the mathematical
relationship is between the 2 objects, but I think there is one, rather than
it being a TellTarget.

hth

Paul


>>Anthony Faust wrote on 11 October 2000 19:37

go to www.nueweb.com , click on "samples"...and click the 4th from the left,

top row, the ritz camera.......

i'm trying to figure out how they did the detail view part.....you see where

you drag the rectangle at the top left and the camera in the big box moves
correspondingly?

how can you detect where a dragged object is while the user is still
dragging it and be able to use a tell target to go to a particular frame in
a MC depending on where the dragged object is?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


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