try this:

var u:UIComponent = new UIComponent()
u.addChild( s );
this.addChild( u );

you must wrap graphics inside UIComponent to add it to mxml application.

jeremy.


         // embed the solid star
      [Embed (source='assets/star.png')]
   private var Star:Class;
 
.....
 
   override protected function createChildren():void
   {   
     var s:Bitmap = new Star();
     addChild( s ); 
    // call the createChildren method of the superclass
    super.createChildren();
   }
.....
}


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to