[flexcoders] adding Bitmap to a container

2006-11-26 Thread Mark Piller
I am experiencing a difficulting adding a Bitmap to a container using the addChild() method. The error i get is: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent. The error actually makes sense since flash.display.Bitmap does

Re: [flexcoders] adding Bitmap to a container

2006-11-26 Thread {reduxdj}
Mark: Instantiate a new UIComponent then try: import mx.controls.UIComponent; ... var myComponent:UIComponent = new UIComponent(); (blah blah blah - Your code here then don't forget to add that component to the display list) addChild(myComponent); This should fix