Flasher Archive

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


Subject: Re: FLASH: target detection
From: Cheri Harder
Date: Thu, 20 Apr 2000 22:12:01 +0100

On another note, Dana....you don't want this kind of action in a "loop
while" loop...you would want to put it in a regular frame action, in a
separate "controller movie clip" (that is, a mc with just the actions and
two frames so that the actions keep...um..."acting"...) then place your
controller mc on the timeline so that it "exists" and it will continue to
check your locations.....

~~~~Cheri Harder~~~~~
charderatawsolution [dot] com
Advantage Web Solution
www.awsolution.com
> Set Variable: "n" = 1
> Loop While (n<=3)
> Set Variable: "scan" = "/TA3"&n
> Set Variable: "dx" = GetProperty (scan,_x) - GetProperty ("/DA3",_x)
> Set Variable: "dy" = GetProperty (scan,_y) - GetProperty ("/DA3",_y)
> Set Variable: "dx" = dx*dx
> Set Variable: "dy" = dy*dy
> Set Variable: "rad" = GetProperty (scan,_width)
> Set Variable: "rad" = rad*rad
> Set Variable: "dp" = dx + dy
> If (dp < rad)
> Begin Tell Target ("/mcsound")
> goto and play "Beep"
> End Tell Target
> End If
> Set Variable: "n" = n+1
> End Loop
>
>
> trying to get the movie clip(DA3) to play beep on sweep of scan(TA3) while
> mouse is dragging MC not during release.
>



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: target detection, Johnson, Dana

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