Thank you Sruloart! I will take a look.
I get my code to work directly in haxeflixel with no layer above, no code in Main.hx. It's working well. But....
-Issue:
It only works in neko or os targets. The reason: I need to store the downloaded image somewhere to be read as an Asset.
https://gist.github.com/droidalex/43d36a2f17dda57530d143db32d5c8d1
I think that FlxSprite should have a method for loading images of the internet, like:
FlxSprite.loadFromURL(url:String):Void
What do you think about?