Flasher Archive

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


Subject: Re: FLASH: Tracking with Tell Target
From: Marc Hoffman
Date: Thu, 15 Oct 1998 00:10:21 +0100

At 08:45 PM 10/13/98 -0700, you wrote:
>
>Example:
>=======
>Picture a puzzle composed of a large number of pieces--say 50. Each time
>you click a piece it moves into the puzzle box. Any time you click the
>box it expands to fill the screen and displays all the pieces inside
>which have been selected up to that point.
> <SNIP>

Hi Curtis.

It should work to have each puzzle piece in a movie clip with "empty" and
"visible" frames. Place all clips in the same layer, above the layer where
user interaction takes place. Have them start empty and use Tell Target to
move them each to the "visible" frame when clicked. If you need the piece
to have motion, do this in a lower layer than the one that holds all the
puzzle piece clips, and have the motion 1) move the piece into the same
position as the puzzle piece clip's "visible" counterpart and 2) when it
gets to that resting position, have it TellTarget the puzzle piece clip to
become Visible (read on for how to conceal the clip even though the piece
is "visible"). No reason why this shouldn't be stable. But if, as you
suggested, clips are being reset or aren't getting called correctly 'cause
they haven't loaded, use an "If frame is loaded" condition before getting
to that part of the movie. If the pieces are optimized this shouldn't add
too much to download time, even with 50 puzzle pieces.

The next issue is how to reveal those clips that are "visible" upon
clicking the box. Do this with a mask layer above the puzzle piece movie
clip layer. The counter-intuitive thing about masks is that they reveal
rather than conceal what is in the layer below. "Masks" should more aptly
be named "windows." Anyway, create a solid rectangle the size of the area
containing the puzzle pieces -- full stage if need be -- and put it in its
own "visible/empty" clip. Place this clip in the mask layer above the
puzzle piece clips. Make the puzzle box (in a separate layer) a button
with a Tell Target that calls the mask's "visible" state.

If you need to conceal the user interactive layer (with the smaller version
of the puzzle box), have two layers sandwiched in the middle of all this.
Make one a full-screen mask (as in the previous paragraph) and have it
reveal a full-screen opaque backdrop beneath it, which will conceal all
layers below. Use the same movie clip concept to make the mask idle and
functional.

Resulting Layers:
1. puzzle piece clip mask layer (a clip that masks all or none of the stage);
2. puzzle piece clips (in their various "visible" and "empty" states);
3. backdrop mask layer (a clip that masks all or none of the stage);
4. backdrop (opaque, covers all of stage when mask above it is activated);
5. user interactive layer with clickable pieces and puzzle box

Resulting Interactivity:
1. "visible" state, cannot be seen because there is an empty mask layer
above it) .
2. User clicks on puzzle box. TellTarget causes a mask to reveal a
backdrop that conceals the interactive stuff.
3. At the same time, TellTarget causes a mask on the top layer to reveal
the layer with all the puzzle piece clips in it. Those clips that are in
the "visible" state will now be viewable; those that are "empty" will still
be invisible.

Remember that to TellTarget a movie clip, you must give the clip an
instance name by double-clicking it on the stage (PC platform) and naming
its instance in the dialogue box that pops up.

Hope this helps.

-Marc H.


Marc Hoffman
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

View my Flash3 work: <http://www.jps.net/dartfrog/sampler>.
Play a virtual marimba: <http://www.jps.net/dartfrog>.
Find out where my band performs: <http://www.jps.net/dartfrog/littlebird>.
Complain about self-promoting email signatures:
<marchofatjps [dot] net (subject: complaint) (mailto:marchofatjps [dot] net?subject=complaint)>

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Tracking with Tell Target, John Croteau

Replies
  FLASH: Tracking with Tell Target, Curtis Bay

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