Flasher Archive

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


Subject: FLASH: problem with puzzle
From: Martin St-Pierre
Date: Tue, 9 Nov 1999 17:43:25 GMT

I send that before and got no answer so I'm taking a chance again


Hello, I'm trying to build a puzzle so I try this below. I got a few problems

1 The pieces snap to place at the moment you enter the target zone
with the mouse. The puzzle is way too easy that way, you just have
to overlap a little and the piece goes into place. How can I make
them snap only if the piece is completly over the target (by maybe a
few pixel)

2 How can I make the piece once snapped go on the background to
avoid covering the other pieces.

3 the pieces once moved (not on the target) don't returned
necessarely at their original place. It seems like a
random to me

4 in those two sentence:
Set Variable: "ClipX" = GetProperty ("", _x )
and
Set Property ("", Y Position) = ClipY

Do I leave the space blank between the quotation mark or do I put the
instance name ("/i_pone")?

Thanks and sorry for my poor english



>Subject: RE: FLASH: snap back
>
>1.) Create the target area as a MC, insert it on the main stage, and give it
>an Instance Name (something like "target" will work, no quotes).
>
>2.) Create a MC for your dragged object. This MC will include two keyframes,
>the first one will have the following actions:
>Stop
>Set Variable: "ClipX" = GetProperty ("", _x )
>Set Variable: "ClipY" = GetProperty ("", _y)
>
>The second keyframe will contain a stop action.
>
>3.) Create a button (this button is the object that you want to be dragged)
>and put this button in the MC mentioned above. Give it the following
>actions:
>On (Press)
> Start Drag (GetProperty(_x, _y))
>End On
>On (Release)
> Stop Drag
> If (_droptarget eq "/Target")
> Go to Next Frame
> Else
> Set Property ("", Y Position) = ClipY
> Set Property ("", X Position) = ClipX
> End If
>End On






_________________________________________
SWING DESIGN

Martin St-Pierre

5535 St-Dominique

Suite 300

Montreal Quebec

H2T 1V5

514.274.8992


http://pages.infinit.net/swingdes
_________________________________________


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]