[flexcoders] Re: Loading .fxg with Actionscript - got it :-)

2008-12-15 Thread Mic
displayGroup = new Group();
var source2 : comp.FlowerPower2 = new comp.FlowerPower2();
displayGroup.addItem(source2);
addItem(displayGroup);

--- In flexcoders@yahoogroups.com, Mic chigwel...@... wrote:

 comp:FlowerPower2 id=image1 / from comp/FlowerPower2.fxg is the
 MXML way of doing things  how is it done in Actionscript?
 
 private var group:Group;
 group = new Group();
 group.addItem(FlowerPower2.fxg must plug in here);
 addChild(group);
 
 TIA,
 
 Mic.





Re: [flexcoders] Re: Loading .fxg with Actionscript - got it :-)

2008-12-15 Thread Nate Beck
Awesome!!  I've been trying to figure that out.

On Mon, Dec 15, 2008 at 12:30 AM, Mic chigwel...@yahoo.com wrote:

   displayGroup = new Group();
 var source2 : comp.FlowerPower2 = new comp.FlowerPower2();
 displayGroup.addItem(source2);
 addItem(displayGroup);

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mic
 chigwel...@... wrote:
 
  comp:FlowerPower2 id=image1 / from comp/FlowerPower2.fxg is the
  MXML way of doing things  how is it done in Actionscript?
 
  private var group:Group;
  group = new Group();
  group.addItem(FlowerPower2.fxg must plug in here);
  addChild(group);
 
  TIA,
 
  Mic.