Flasher Archive

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


Subject: RE: FLASH: Why? does this work?
From: Chris Tifer
Date: Mon, 14 Aug 2000 16:53:18 +0100

Well, at first glance, I would say it doesn't need stop
actions inside the Count Movie because when he uses
Tell Target, he specifies to Stop, not Go To And Play.

Chris

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Jefferis
Peterson
Sent: Monday, August 14, 2000 11:15 AM
To: Flash MailList
Subject: FLASH: Why? does this work?


I am looking at an example in James Mohler's Graphics Animation and
Interactivity. It is a simple variable that is incremented on a button
increase. What I don't understand is why it works! I understand how the
variable is increased but not how the display [the MC 'COUNT'] works.
Each button press increments MyVal. But the Counter MC is simply 10
frames where the words in each successive frame are MyVal = 1, My Value
=2, etc. The first frame has a stop action. BUT no subsequent frame has a
STOP action. So it would appear that once you go to frame two of the MC,
it should play through to number 10.

When you click on the button, the value of MyVal appears on the stage
next to the button, and increments accordingly.

Secondly, I am not sure what the trace actions and the level 0 direction
have to do with the effectiveness of the code.


Symbol: Button
Track as button

On (Release, Release Outside)
Set Variable: "MYVAL" = MYVAL+1
Trace ("The variable MYVAL = " & MYVAL)
Begin Tell Target ("/Count")
Go to and Stop (_level0:MYVAL)
Trace ("The Counter Movie clip is in frame " & /Count:_currentframe)
End Tell Target
End On



Please help me understand what I'm missing. Thanks.

Jeff

--
Jefferis Kent Peterson
www.PetersonSales.net
Flash, Web Design and Marketing
jefferisatpetersonsales [dot] net

ICQ 19112253
~~~~~~~~~~~
"A wise man can see more from the bottom of a well
than a fool can from a mountain top." - Unknown

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Why? does this work?, Jefferis Peterson

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