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://..."" rel="nofollow">http://..."</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://..."" rel="nofollow">http://..."</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) |