Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Synchronous call of UrlLoader — Gideros Forum

Synchronous call of UrlLoader

asakharovasakharov Member
edited October 2012 in General questions
Good evening!
Tell me, please, is there any way to call UrlLoader:new(...) synchronously? Or, perhaps, there is a library, able to do it.
I want to write something like:
WatiForCompletion(UrlLoader.new("<a href="http://...&quot" rel="nofollow">http://...&quot</a><img class="emoji" src="https://forum.gideros.rocks/resources/emoji/wink.png" title=";)" alt=";)" height="20" />)
print ("hello, world")
instead of:
local loader = UrlLoader.new("<a href="http://...&quot" rel="nofollow">http://...&quot</a><img class="emoji" src="https://forum.gideros.rocks/resources/emoji/wink.png" title=";)" alt=";)" height="20" />
local function onComplete(event)
   print("hello, world")
end
 
loader:addEventListener(Event.COMPLETE, onComplete)
Tagged:
Sign In or Register to comment.