Quantcast
Channel: Latest Questions by Gillissie
Viewing all articles
Browse latest Browse all 93

yield www problems in javascript

$
0
0

I'm having almost the exact same problem as this other post http://answers.unity3d.com/questions/38753/yield-return-www-not-returning, except I'm using Javascript. In a nutshell I'm doing this (the url is way simplified for this example):

function PostScore(score:int)
{
    var www:WWW = new WWW(myScoreURL + "?value=" + score);

    yield www;
}

Nothing happens.

However, if I replace yield www with this, it works in debug mode, but outright crashes web browsers.

while (www.isDone == false)
{
    // Wait
}

If I throw a yield in the middle of the while loop, then nothing happens again.


Viewing all articles
Browse latest Browse all 93

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>