Flasher Archive

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


Subject: RE: FLASH: Why? does this work?
From: Justin Ludington
Date: Mon, 14 Aug 2000 19:13:25 +0100

The expression:
Go to and Stop (_level0:MYVAL)
is targeting a frame (in the Count mc) with the same numeric value as MYVAL.
In other words if you click the button and MYVAL increases from 4 to 5, the
value of the targeted frame (ie, the frame number) will also change from 4
to 5. It doesn't keep playing because of the Go to and Stop. Also, Trace
creates a pop-up window (with the message you type in) when you test the
movie. It's used to de-bug code, so that in more complex interaction, you
can narrow down where problems occur.

I'm no programming guru, but i hope this helps.

Justin

-----Original Message-----
From: Jefferis Peterson [Jefferisatpathway [dot] net (mailto:Jefferisatpathway [dot] net)]
Sent: Monday, August 14, 2000 10:27 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
  RE: FLASH: Why? does this work?, Jefferis Peterson

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