Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Evaluate a variable in a loop... |
From: | m i l e s l i g h t w o o d |
Date: | Mon, 20 Sep 1999 18:39:08 +0100 |
What is the best way to evaluate a variable in a looping segment of a timeline?
For example I have this action attached to a button:
On Release
Comment: read in status.txt; typical contents: status=ok
Load Variables("status.txt",0)
Go To and Play("Submit_Loop")
end release
The contents of status.txt file is "status=ok", so ok appears on stage in
the status field variable. This field is visible in all frames of the movie.
I have a label called "Submit_Loop", that contains this frame action:
Comment: Handle ok result
If (Eval(status) = ok)
Go to and Stop ("OK")
Else If (Eval(status) = not_ok)
Go to and Stop ("Not_OK")
Else If (Eval(status) = bad_data)
Go to and Stop ("Bad_Data")
End If
Three frames later I have another frame with this frame action that creates
the loop:
Go to and Play("Submit_Loop")
The looping continues regardless of the value of status. How do I modify
the above to have status evaluated correctly?
All of the above is in one bare-bones test movie with 1 main timeline.
TIA for any assistance.
Ciao,
m i l e s
_______________________________________________________________________
m i l e s l i G h T w O o d
_______________________________________________________________________
m i l e s G T O @ p o b o x . c o m
_______________________________________________________________________
multimedia development: director lingo shockwave java +1 213.353.9850
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managerchinwag [dot] com. Problems to: helpchinwag [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-managerchinwag [dot] com
Replies
Re: FLASH: Evaluate a variable in a loop, Paul Kaiser
Replies
FLASH: Re: Lists and arrays, CARL
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]