|
-
[RESOLVED] flash.media.Video
TypeError: Error #1034: Type Coercion failed: cannot convert flash.media::Video@2eff9f31 to mx.core.IUIComponent.
i have no idea why i cant addchild(video) without it throwing this error. Anyone else know what this could be?
-
ok this is a flex problem. Evidently I couldnt add my Video unless it was a UIComponent strictly. Even if the object was an extension of UI Component I would get the error.
var Holder:UIComponent = new UIComponent();
Holder.addChild(Vid); //Vid being a flash.media.Video
addChild(Holder);
very odd
-
"If you test ActionScript code that use the addChild() ActionScript method with Flash Player display objects (like a text field) within an MXML application, you will need to attach the code to a Flex UIComponent instead of adding the Flash Player display object."
Yes, odd.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|