google-code-export / nekonme

Automatically exported from code.google.com/p/nekonme
1 stars 0 forks source link

Class that extends bitmap not shown in cpp target #258

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create class that extends bitmap and bitmapdata in it
2. Add class to stage
3. Compile in any of cpp targets

What is the expected output? What do you see instead?
- Bitmap shown on stage

What version of the product are you using? On what operating system?
NME 3.4, Haxe 2.1 Windows 7

Please provide any additional information below.
Works fine in flash target

Original issue reported on code.google.com by djole.mu...@gmail.com on 16 Aug 2012 at 7:44

Attachments:

GoogleCodeExporter commented 9 years ago
workaround:

class NewBitmap extends Bitmap
{

    public function new() 
    {
        var bd:BitmapData =  new BitmapData(100, 100, false, 0xFFFFFF);     
        super(bd);
    }

}

Original comment by djole.mu...@gmail.com on 16 Aug 2012 at 8:44