Flasher Archive

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


Subject: RE: FLASH: _droptarget question
From: Tim Walters
Date: Wed, 23 Feb 2000 01:19:05 GMT

First off, make sure that the red circle has an Instance name of "red.clip",
not just it's name in the library (Instance name can be different here if
you want). The instance name is what will be checked.

Second, for 'triggered sounds', I like to use a seperate clip, in this case
create a clip with these frames:
Frame 1: Label=NoSound, Action=Stop, Sound=none
Frame 2: Label=PlacedGood, Action=none, Sound=GoodSound.wav
Frame 3: Lable=PlacedBad, Action=none, Sound=BadSound.wav

Place it on the main timeline on it's own layer, Instance name "DropSound",
with extra frames so it exists everywhere it is needed. I'll detail it's use
below...

Now, the blue circle is a MC with a button inside it, the button has actions
for the Press and Release to handle the drag.. right?

On (Press)
Start Drag ("", lockcenter)
Begin Tell Target ("/DropSound")
Go to and Stop ("NoSound")
End Tell Target
End On

On (Release, Release Outside)
Stop Drag
If (_droptarget eq "/red.clip")
Begin Tell Target ("/DropSound")
Go to and Stop ("PlacedGood")
End Tell Target
Else
Trace ("Droptarget=" & _droptarget)
Begin Tell Target ("/DropSound")
Go to and Stop ("PlacedBad")
End Tell Target
End If
End On

Also, the method it uses to get the Drop target is the cursor, if the cursor
(when released) is on any part of a movieclip, the topmost MC is the
Droptarget (I think).

Hope this helps!
---
Tim Walters MVP
Glasshouse101
timatglasshouse101 [dot] com [dot] au

> -----Original Message-----
> From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Frank
> Joerdens
> Sent: Wednesday, 23 February 2000 3:03 AM
> To: flasheratchinwag [dot] com
> Subject: FLASH: _droptarget question
>
>
> I am trying to understand how this is supposed to work. My experimental
> setup consists of a blue and a red circle, each in its own layer and
> each assigned Movie Clip behaviour and Button behaviour, to make them
> draggable. That works; I can drag both around on the screen. Now I want
> to trigger some sort of action when I drag the blue circle onto the red
> circle (which is somewhat larger than the blue circle - how does flash
> evaluate the limits of a target by the way?). To this end, I have added
> a second keyframe to the movie and assigned a sound to it. I also added
> to the Actions tab of the Frame properties dialog box of the 1st Frame,
> in the layer which contains the blue circle, the following code:
>
> Stop
> If (_droptarget eq "/red.clip")
> Go to Next Frame
> End If
> Go to Previous Frame
>
> which is intended to play the sound if I drag the blue circle onto the
> red circle, which does not work.
>
> It seems that I am missing something here. Does anyone have any idea as
> to what that might be?
>
> Cheers,
> Frank
>
>
> --
> frank joerdens
>
> joerdens new media e: frankatjoerdens [dot] de
> heinrich-roller str. 16/17 t: +49 30 44055470
> 10405 berlin f: +49 30 44055475
> germany h: http://www.joerdens.de
>
> pgp fingerprint:
> _____________________________________________________________
> | |
> | hockey savagery southward recover |
> | playhouse breakaway quiver Atlantic |
> | sugar disable befriend positive |
> | Geiger company seabird Atlantic |
> | prowler amusement commence Montana |
> |____________________________________________________________|
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World�s Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
> -Register before Feb 25 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: _droptarget question, Frank Joerdens

Replies
  FLASH: _droptarget question, Frank Joerdens

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