|
|
|
#1 |
|
Member
Join Date: Jul 2000
Location: Atlanta
Posts: 84
|
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? |
|
|
|
|
|
#2 |
|
Member
Join Date: Jul 2000
Location: Atlanta
Posts: 84
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2005
Posts: 7
|
"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. |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|