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 13:39:12 +0100

Hi again Antony

I've just been trying out this theory I had, and it does work in essence,
but it's a bit more complicated than I thought. You'll need 2 subroutines,
one that plays when the main picture is being dragged and one that plays
when the focus square is dragged. I think setting the property of whichever
clip is best done by multiplying (small to big) or dividing (big to small)
the x and y properties of the non-dragged clip by the scale ratio. So, if
the small image is 25% of the size of the big clip that amount would be 4
(as in my example below).
Anyway, I made a sample .fla. Email me off list if you'd like a copy.

hth

Paul

>>I wrote on 12 October 2000 11:56
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]