Duplicate image with Haxe

Posted by Johnny Oin on Stack Overflow See other posts from Stack Overflow or by Johnny Oin
Published on 2010-03-23T15:24:20Z Indexed on 2010/03/23 16:53 UTC
Read the original article Hit count: 348

Filed under:
|
|

Hello,

My goal is to make a wide map using only one square image. Using actionscript 3 the solution is to simply make new Bitmap from the Loader:

var loader:Loader = new Loader();
loader.load(new URLRequest("xyz.png")); 
this.addChild(loader);  

var duplicationBitmap:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);

Unluckily, Haxe API doesn't allow to do that. I can't get bitmapData from loader content…

Anyone has a clue? Thanks.

© Stack Overflow or respective owner

Related posts about haxe

Related posts about actionscript-3