you don't want to be setting up the download and checking for it in the
same frame.
in one exitFrame, call preloadNetThing and set myNetID. 
in the next exitFrame, do the loop that checks for netDone.
and don't read the contents of the file until netDone returns true.

(also, i'm not sure if you can read it in with getPref like that. but
that's a separate issue.)

--bhakti

J�rn Madsen wrote:
> 
> Hi list,
> 
> I am having some problems with the following code:
> 
> on exitFrame
>   global mynetID
>   set mynetID =
> preloadNetThing("http://www.myweb.com/textfile/fileCont.txt")
> 
>   if netDone(mynetID) = FALSE then
>     go to the frame
>   else
>     alert "Downloaded"
>   end if
> 
>   theText = getPref("fileCont.txt")
>   member("fileContent").text = theText
> end
> 
> when the line theText = getPref.... is run I get an Script Error. Why?
> 
> The file is downloaded and it is a frameScript.
> 
> Hope anyone can help.
> 
> Thanks in advance.
> 
> J�rn Madsen
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

-- 
R. Bhakti Klein
Lingo Programmer, Scientific Learning
http://www.ScientificLearning.com
http://www.BrainConnection.com
**
Baritone, Wicki6
http://www.wicki6.com
***
"On Earth, you can only do little things;
but you can do them with a lot of Love."
                              -- Mother Theresa

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to