Alright, I've taken a look and I think Ming is doing everything correctly. That is, libming is trusting the user and doing exactly what he requests (looking at the resulting SWF). Problem is that in SWF the bitmaps are not standalone characters, that is they can not appear on stage as characters, but can only be used as bitmap fills for shapes. You'll get what you're after if you do so. See newSWFShapeFromBitmap. --strk; On Thu, Jun 03, 2010 at 09:52:20AM -0500, Darien Alonso Camacho wrote: > Hi all. > I'm using ming 0.4.3, the official release, with C++ (mingpp.h). > I am trying to create a SWFButton in which the SWFBUTTON_UP| > SWFBUTTON_HIT state is a SWFBitmap, here is my code: > > SWFBitmap* image = new SWFBitmap( "label.png" ); > ... > SWFButton* button = new SWFButton(); > button->addCharacter( image, SWFBUTTON_UP|SWFBUTTON_HIT ); > ... > SWFDisplayItem* buttonDI = swfmovie->add( button ); > buttonDI->moveTo( 10, 10 ); > ... > but it does not work for me, the stage is empty in the created .swf > file. > I know the path of the image ("label.png") is fine. > > Is this a bug, a known issue or am I doing something wrong??? > Any advice will be welcome. > Thanks > -dac- > > > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Ming-devr mailing list > Ming-devr@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/ming-devr -- () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Ming-users mailing list Ming-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ming-users