1 Reply Latest reply on Sep 8, 2009 11:27 PM by Flex harUI

    Facing problem loading swf file of flex2 into flex4

    Niranjan_swain Level 1

      Hello,

      I have some swf file created in flex2  appliation i want to display these swf file in a flex4 application.

      Through urllodar i load these swf file into my application but it give  following exception

       

      TypeError: Error #1034: Type Coercion failed: cannot convert CoTreeComponent@230ab0a1 to mx.containers.utilityClasses.IConstraintLayout.
      at mx.containers.utilityClasses::CanvasLayout/parseConstraints()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\containers\utilityClasses\CanvasLayout.as:1040]
      at mx.containers.utilityClasses::CanvasLayout/measure()[E:\dev\beta1\frameworks\projects\fra mework\src\mx\containers\utilityClasses\CanvasLayout.as:201]
      at mx.core::LayoutContainer/measure()
      at mx.core::Application/measure()
      at mx.core::UIComponent/measureSizes()[E:\dev\beta1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:7206]
      at mx.core::UIComponent/validateSize()[E:\dev\beta1\frameworks\projects\framework\src\mx\cor e\UIComponent.as:7132]
      at mx.core::Container/validateSize()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\ Container.as:3190]
      at mx.managers::LayoutManager/validateSize()[E:\dev\beta1\frameworks\projects\framework\src\ mx\managers\LayoutManager.as:617]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\beta1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:709]
      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\beta1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1067]

       

      if u have any solution please help me.

      Thanks in advance