3 Replies Latest reply on Nov 12, 2011 1:17 AM by CK MLR

    How to debug framework in Flex 4 ?

    Nesaver

      I want to debug in framework.swc file. But when I change the Link Type of the External framework.swc Framework linkage and select the Merged into code, then running the program:

       

       

       

      <?xml version="1.0"?>

      <!-- controls\alert\AlertSimple.mxml -->

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

         xmlns:s="library://ns.adobe.com/flex/spark"

         >

       

      <fx:Script>

      <![CDATA[

      import mx.controls.Alert;

      ]]>

      </fx:Script>

      <s:VGroup>

      <s:TextInput id="myInput"

      width="150"

      text=""/>

      <s:Button id="myButton"

        label="Copy Text"

        click="myText.text = myInput.text;

        Alert.show('Text Copied!', 'Alert Box', mx.controls.Alert.OK);"/>

      <s:TextInput id="myText"/>

      </s:VGroup>

       

      </s:Application>

       

       

       

      it throw exception:

       

      VerifyError: Error #1014: Class mx.core::UIComponent could not be found.

       

      at flash.display::MovieClip/nextFrame()

      at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.0.0\frameworks\projects\framework \src\mx\managers\SystemManager.as:267]

      at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.0.0\framewo rks\projects\framework\src\mx\managers\SystemManager.as:2460]

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx \preloaders\Preloader.as:488]

      at flash.utils::Timer/_timerDispatch()

      at flash.utils::Timer/tick()

       

       

      Can someone show me the way to to debug framework ?

       

       

      P/s: I followed http://www.brightworks.com/flex_ability/?p=99 , but it's not help, too