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
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
2 matches
Mail list logo