Flasher Archive

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


Subject: Re: FLASH: ActionScript (Substring)
From: Helen Triolo
Date: Sun, 23 Apr 2000 16:33:38 +0100

Bill Herz wrote:
>
> Hello All,
>
> DATA.txt
> -----------------------------cut
> data=00023492340248902
> -----------------------------cut
>
> Load Variables ("DATA.txt", 0)
> Set Variable: "abc" = Substring ( data , 1, 2 )
>
> BUT there is nothing in variable "abc", why?

Maybe it hasn't loaded yet. Might be a good idea to add a
check-for-vars-loaded loop. So in frame 1, you have Load Variables
followed by goto and play(Loading). frame 2 is Loading. In frame 2,
you check for if lastvar ne "" then goto and play(DoTheRest). (lastvar
is the last variable you expect to be returned from your text file.)
Frame 3 has a goto and play(Loading) to loop til the last variable is
returned. Frame 4 is DoTheRest, and has your Set Variable statement
along with whatever else you want to do.

hth,
Helen
---------------------------------------
helen triolo � http://i-technica.com
designerati-technica [dot] com � 301-424-6037
----------------------------------------

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: ActionScript (Substring), Bill Herz

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