From: Dave C on
It is not good practice to lock your movie in a repeat. No other scripts
can execute while this loop is executing. You are better off checking
the status of netDone in an exitFrame handler or using a timer object.

Locknar wrote:
> Well, we've gotten it!!!
> The problem was not to wait but the way of waiting.
> I had made a loop like this:
>
> --+++++++++++++++++++++++++++++++++
> repeat while netDone(netID)=0 then
> nothing
> end repeat
> --+++++++++++++++++++++++++++++++++
>
> but I only obtained an infinite loop. My workmate solved it by using a
> simple: _movie.go(_movie.frame)
>
> Thank you very much Sean.
>
> Regards from Spain.
>
>
>
>
> "Sean Wilson" <webforumsuser(a)macromedia.com> escribi� en el mensaje de
> noticias news:g9eu5n$8rt$1(a)forums.macromedia.com...
>>> I get aString = "" and netDone(netID)=0
>>>
>>> That means that the "myaspfile.asp" has not being executed
>>
>> No it doesn't. It means the postNetText() call hasn't finished yet.
>> Both it and the GET equivalent are asynchronous operations, meaning
>> you have to wait (by looping on a frame, using a timeout object or the
>> actorList) for it to finish before accessing any results.
>
From: Locknar on
I've really learned the lesson Dave.
Thank you very much.

Un saludo.

"Dave C" <no(a)no.com> escribi� en el mensaje de noticias
news:g9h4f8$klv$1(a)forums.macromedia.com...
> It is not good practice to lock your movie in a repeat. No other scripts
> can execute while this loop is executing. You are better off checking the
> status of netDone in an exitFrame handler or using a timer object.
>
> Locknar wrote:
>> Well, we've gotten it!!!
>> The problem was not to wait but the way of waiting.
>> I had made a loop like this:
>>
>> --+++++++++++++++++++++++++++++++++
>> repeat while netDone(netID)=0 then
>> nothing
>> end repeat
>> --+++++++++++++++++++++++++++++++++
>>
>> but I only obtained an infinite loop. My workmate solved it by using a
>> simple: _movie.go(_movie.frame)
>>
>> Thank you very much Sean.
>>
>> Regards from Spain.
>>
>>
>>
>>
>> "Sean Wilson" <webforumsuser(a)macromedia.com> escribi� en el mensaje de
>> noticias news:g9eu5n$8rt$1(a)forums.macromedia.com...
>>>> I get aString = "" and netDone(netID)=0
>>>>
>>>> That means that the "myaspfile.asp" has not being executed
>>>
>>> No it doesn't. It means the postNetText() call hasn't finished yet. Both
>>> it and the GET equivalent are asynchronous operations, meaning you have
>>> to wait (by looping on a frame, using a timeout object or the actorList)
>>> for it to finish before accessing any results.
>>

First  |  Prev  | 
Pages: 1 2
Prev: Director 11 DCR not loading
Next: Create Mask