0 Replies Latest reply on Dec 22, 2009 8:24 AM by PaoloHValladolid

    Installed Flash Builder 4 in Eclipse 3.5/Springsource Tool Suite - cannot debug Flex


      I'm new to Flex.  I tried setting a breakpoint in one of the functions in my .mxml file and the debugger does stop at that breakpoint.  Here is the .mxml file, with the breakpoint set at the line highlighted in red below.  We are trying to use Flex as a front end with Java/Spring at the back end.  Thanks!


      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">




                  import mx.rpc.events.ResultEvent;
                  import mx.rpc.events.FaultEvent;
                  import mx.controls.Alert;
                  import mx.collections.ArrayCollection;
                  [Bindable] private var contacts:ArrayCollection;


                  private function resultHandler(event:ResultEvent):void
                      contacts = event.result as ArrayCollection


                  private function faultHandler(event:FaultEvent):void


          <mx:RemoteObject id="ro" destination="contactService" fault="faultHandler(event)">
              <mx:method name="findByName" result="resultHandler(event)"/>


          <mx:ApplicationControlBar width="100%">
              <mx:TextInput id="searchStr"/>
              <mx:Button label="Search" click="ro.findByName(searchStr.text)"/>


          <mx:DataGrid id="dg" dataProvider="{contacts}" width="100%" height="100%"/>