dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] flash.media.Video

  1. #1
    Member
    Join Date
    Jul 2000
    Location
    Atlanta
    Posts
    93

    resolved [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?

  2. #2
    Member
    Join Date
    Jul 2000
    Location
    Atlanta
    Posts
    93
    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. #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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center