Flasher Archive

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


Subject: Re: FLASH: Trivia Game
From: Marc Hoffman, Poison Dart Frog Media
Date: Tue, 1 Jun 1999 03:52:09 +0100

Hi, Nigel.

I know what you're driving at, but you're not quite there, which surprises
me, since your advice has been incredibly helpful to me and I don't recall
you ever being wrong :). Follow your own advice -- it won't work, because
you have not advanced the instance of "counter" that is later revealed,
only the one that is invisible. With a bit of rearranging, the scheme will
work. Still, it isn't technically "changing alpha to 100%;" rather, it
relies on calling a different frame in a nested movie clip. There is no way
in Flash3 to change alpha on the fly, and this is what I was saying in my
earlier post.

What will work is this:
Make "counter" the top-level clip. Give it as many frames as you need for
counting up one frame at a time (starting with 0), each with a stop action.
In each frame place a 2-frame MC with instance name "score." this should
also have a stop action in every frame. In every frame of "counter,"
"score" must hold the next value up, starting with zero. You can put the
value in both frames of "score," and make the first instance zero alpha,
but it's only the second frame that needs a number, since the first frame
will be invisible and may just as well be blank.

To increment the score, TellTarget /counter either to play or to go to the
next frame. To reveal the score, TellTarget /counter/score either to play
or to go to the next frame.

I am sure you will catch me being wrong sometime, but this ain't one of them.

Respectfully,

Marc Hoffman



At 11:08 PM 5/30/99 +0000, you wrote:
>Marc,
>
>You said ' but I don't see how this can be done', in re to Rusty's idea.
>This can in fact be done.
>Start by creating a movie clip, let's call it counter, where each frame
>has a different value, e.g. frame 1 is 1, 2 is 2, etc. First frame has a
>stop action.
>Now create a second movie clip, let's call it score. In frame 1 place
>the movie clip counter and give it the instance name counter. Goto frame
>2 and do F6. Now you have two keyframes and each one has an instance of
>the first movie clip and they are both called counter. Go back to frame
>1 of this movie clip and set the alpha at 0%. Place a stop action on
>this frame.
>Goto the stage place an instance of the second movie clip and call it
>score.
>Now if you do a tell target directed at score/counter with a goto next
>frame you will increase the value. When you want to reveal the score
>just do a tell target directed at score with a goto next frame and voil�
>your score. No reset.
>
>Nigel
>
>PS: When is F4 hitting the streets ?
>
>------------------------------------------------------------------------
>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



Marc Hoffman

marcatdartfrogmedia [dot] com (mailto:marcatdartfrogmedia [dot] com)
Flash3 Portfolio: <http://www.dartfrogmedia.com/sampler>, featured
in Flash 3 Web Animation, by Ken Milburn.

------------------------------------------------------------------------
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: Trivia Game, Nigel Randsley-Pena

Replies
  Re: FLASH: Trivia Game, Nigel Randsley-Pena

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