How to give Service locator in flash builder 4.5

hi friends,
In flex 3.0 we are giving service locator like this
<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
</cairngorm:ServiceLocator>
How to give in flash builder 4.5 i tried in same way it is not recognizing ServiceLocator.
How to do in 4.5

Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
In flex3 we are making a component ex: <mx:canvas> and changeing that component to
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*">
</cairngorm:ServiceLocator>
if any one used 4.5 with cairngorm let me know
thanks

Similar Messages

  • How do i embed fonts in flash builder 4?

    how do i embed fonts in flash builder 4?
    thanks,
    daniel

    Try http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/
    I also answered in your other thread, http://forums.adobe.com/thread/482315.
    Let us know if you're still having problems and we can try and help you get started.
    Peter

  • How to embed html code in flash builder 4 ?

    How to embed html code in flash builder 4 ?

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Can your creative cloud account give you access to Flash Builder 4.6

    Can your creative cloud account give you access to Flash Builder 4.6? 4.7 got rid of the design view, I need to get use out of the design view. Thanks

    I wonder why when it would be a downgrade form the version 4.7 my subscription give me access to. There does not seem to any training that uses 4.7 I was lucky enough to find some that uses 4.6 and it covers things about the design view. I thinking since a lot of the material to learn it is kind-a-outdated (and still referrers a lot to design view) that it would be good to learn it with access to design view. This way I will understand what they mean and can distinguish between features. Thanks

  • How to update the PHP Class Service back in Flash Builder 4

    I'm not sure if my post title makes any sense or not but let me explain.  I've been working on an application in Flash Builder 4 using the ZendFramework and PHP services and everything is work great. the problem I have is after I make changes to my services PHP class (edit php file that has my functions in it), how to I updated those functions in the Flash builder application?
    For example, I needed to pass a second object into one of my function in my PHP class and after I edited the file and saved it, I don't see the changes in the Flash builder 4 application. Is there a button I can run to update the PHP class back in Flash Builder?
    Thanks,
    John Baranowski

    How do you use Flash Builder to regenerate the code for the same PHP service I connected to prior? When I first connected to the PHP service Flash Builder automatically built a package with all kinds of actionscript functions in it. I added a function to my PHP Class file server side and I need help on how to update the package back in Flex to see my new function. Can anyone help me??
    -John

  • Updating web service WSDL in Flash Builder 4

    I have a web service added to my FB4 project. It is all working nicely but I cannot work out how to refresh the web service wsdl. In flex builder 3 there was a "Manage web services" option that let you do it but there doesn't appear to be one in Flash Builder 4.
    How do I update the generated code?

    In FB 4.5,  if you go to the Data Services view, and then right click on the data service (WSDL) you connected to, there is an option there to refresh the WSDL.  It works very well for me.

  • Web service method binding (flash builder issue)

    I have a new Flash Builder (Flex) project, basically it has 2 combo boxes in it. I have added a web service, the service is called uws_lookups and has 2 methods, lookupLanguage and lookupCountry.
    If I bind a combobox to the result from either of these services everything works as expected, here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          xmlns:uws_lookups="services.uws_lookups.*"
          minWidth="955" minHeight="600">
    <fx:Script>
      <![CDATA[
       import com.adobe.serializers.utility.TypeUtility;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       protected function comboBox_creationCompleteHandler(event:FlexEvent):void
        lookupCountryResult.token = uws_lookups.lookupCountry();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="lookupCountryResult"/>
      <uws_lookups:Uws_lookups id="uws_lookups"
             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
             showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:ComboBox id="comboBox" creationComplete="comboBox_creationCompleteHandler(event)" labelField="countryName">
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupCountryResult.lastResult.Tables.Country.Rows)}"/>
    </s:ComboBox>
    <s:ComboBox/>
    </s:Application>
    As you can see the combobox gets bound, the results are returned and displayed, however when I bind the second box to the other method Flash Builder does the most stupid thing ever:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          xmlns:uws_lookups="services.uws_lookups.*"
          minWidth="955" minHeight="600">
    <fx:Script>
      <![CDATA[
       import com.adobe.serializers.utility.TypeUtility;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       protected function comboBox_creationCompleteHandler(event:FlexEvent):void
        lookupCountryResult.token = uws_lookups.lookupCountry();
       protected function comboBox2_creationCompleteHandler(event:FlexEvent):void
        lookupLanguageResult.token = uws_lookups.lookupLanguage();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="lookupCountryResult"/>
      <s:CallResponder id="lookupLanguageResult"/>
      <uws_lookups:Uws_lookups id="uws_lookups" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:ComboBox id="comboBox" creationComplete="comboBox_creationCompleteHandler(event)" labelField="countryName">
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupCountryResult.lastResult.Tables.Country.Rows)}"/>
    </s:ComboBox>
    <s:ComboBox id="comboBox2" creationComplete="comboBox2_creationCompleteHandler(event)" labelField="LanguageName">
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupLanguageResult.lastResult.Tables.Country.Rows)}"/>
    </s:ComboBox>
    </s:Application>
    Now I'm pretty sure that isnt what I asked it to do, so I manually change the code line to read correctly
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupLanguageResult.lastResult.Tables.Language.Ro ws)}"/>
    Which enables to second combobox to work, but the original one (countries) now displays [Object: Language_type]
    I have debugged the application and both methods do actually return the correct data, FB is just choosing to do something stupid when I add the second call.
    I have done the basics, deleted the project and started again, tried a different web service, tried different methods, but it looks like when I use more than one method it fails, so please tell me, what am I doing wrong because I know Flash Builder cannot be doing this by design.
    I will post the service response in another post.
    Thanks for any help you have!
    Shaine

    Ok, lets prove I'm not going mad. New Project, add webservice, which has 2 methods as before. Drag datagrid to stage and bind to data for lookup countries, the code generated is:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          xmlns:uws_lookups="services.uws_lookups.*"
          minWidth="955" minHeight="600">
    <fx:Script>
      <![CDATA[
       import com.adobe.serializers.utility.TypeUtility;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
        lookupCountryResult.token = uws_lookups.lookupCountry();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="lookupCountryResult"/>
      <uws_lookups:Uws_lookups id="uws_lookups"
             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
             showBusyCursor="true"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:DataGrid id="dataGrid" x="10" y="10" width="400" height="580"
        creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
      <s:columns>
       <s:ArrayList>
        <s:GridColumn dataField="ID" headerText="ID"></s:GridColumn>
        <s:GridColumn dataField="countryName" headerText="countryName"></s:GridColumn>
       </s:ArrayList>
      </s:columns>
      <s:typicalItem>
       <fx:Object countryName="countryName1" ID="ID1"></fx:Object>
      </s:typicalItem>
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupCountryResult.lastResult.Tables.Country.Rows)}"/>
    </s:DataGrid>
    </s:Application>
    So. now te good bit, drag another datagrid to the stage and bind to the second method (languages), and guess what? it all goes horribly wrong, here is the complete code for that too:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          xmlns:uws_lookups="services.uws_lookups.*"
          minWidth="955" minHeight="600">
    <fx:Script>
      <![CDATA[
       import com.adobe.serializers.utility.TypeUtility;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
        lookupCountryResult.token = uws_lookups.lookupCountry();
       protected function dataGrid2_creationCompleteHandler(event:FlexEvent):void
        lookupLanguageResult.token = uws_lookups.lookupLanguage();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="lookupCountryResult"/>
      <uws_lookups:Uws_lookups id="uws_lookups"
             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
             showBusyCursor="true"/>
      <s:CallResponder id="lookupLanguageResult"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:DataGrid id="dataGrid" x="10" y="10" width="400" height="580"
        creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
      <s:columns>
       <s:ArrayList>
        <s:GridColumn dataField="ID" headerText="ID"></s:GridColumn>
        <s:GridColumn dataField="countryName" headerText="countryName"></s:GridColumn>
       </s:ArrayList>
      </s:columns>
      <s:typicalItem>
       <fx:Object countryName="countryName1" ID="ID1"></fx:Object>
      </s:typicalItem>
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupCountryResult.lastResult.Tables.Country.Rows)}"/>
    </s:DataGrid>
    <s:DataGrid id="dataGrid2" x="418" y="10" width="400" height="590"
        creationComplete="dataGrid2_creationCompleteHandler(event)" requestedRowCount="4">
      <s:columns>
       <s:ArrayList>
        <s:GridColumn dataField="ID" headerText="ID"></s:GridColumn>
        <s:GridColumn dataField="LanguageName" headerText="LanguageName"></s:GridColumn>
        <s:GridColumn dataField="LanguageCode" headerText="LanguageCode"></s:GridColumn>
       </s:ArrayList>
      </s:columns>
      <s:typicalItem>
       <fx:Object ID="ID1" LanguageCode="LanguageCode1" LanguageName="LanguageName1"></fx:Object>
      </s:typicalItem>
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupLanguageResult.lastResult.Tables.Country.Rows)}"/>
    </s:DataGrid>
    </s:Application>
    Now this is without ANY modification from me whatsoever, and all I get is the CountryID field displayed, so I modify the code manually to read:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          xmlns:uws_lookups="services.uws_lookups.*"
          minWidth="955" minHeight="600">
    <fx:Script>
      <![CDATA[
       import com.adobe.serializers.utility.TypeUtility;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
        lookupCountryResult.token = uws_lookups.lookupCountry();
       protected function dataGrid2_creationCompleteHandler(event:FlexEvent):void
        lookupLanguageResult.token = uws_lookups.lookupLanguage();
      ]]>
    </fx:Script>
    <fx:Declarations>
      <s:CallResponder id="lookupCountryResult"/>
      <uws_lookups:Uws_lookups id="uws_lookups"
             fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
             showBusyCursor="true"/>
      <s:CallResponder id="lookupLanguageResult"/>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:DataGrid id="dataGrid" x="10" y="10" width="400" height="580"
        creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
      <s:columns>
       <s:ArrayList>
        <s:GridColumn dataField="ID" headerText="ID"></s:GridColumn>
        <s:GridColumn dataField="countryName" headerText="countryName"></s:GridColumn>
       </s:ArrayList>
      </s:columns>
      <s:typicalItem>
       <fx:Object countryName="countryName1" ID="ID1"></fx:Object>
      </s:typicalItem>
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupCountryResult.lastResult.Tables.Country.Rows)}"/>
    </s:DataGrid>
    <s:DataGrid id="dataGrid2" x="418" y="10" width="400" height="590"
        creationComplete="dataGrid2_creationCompleteHandler(event)" requestedRowCount="4">
      <s:columns>
       <s:ArrayList>
        <s:GridColumn dataField="ID" headerText="ID"></s:GridColumn>
        <s:GridColumn dataField="LanguageName" headerText="LanguageName"></s:GridColumn>
        <s:GridColumn dataField="LanguageCode" headerText="LanguageCode"></s:GridColumn>
       </s:ArrayList>
      </s:columns>
      <s:typicalItem>
       <fx:Object ID="ID1" LanguageCode="LanguageCode1" LanguageName="LanguageName1"></fx:Object>
      </s:typicalItem>
      <s:AsyncListView list="{TypeUtility.convertToCollection(lookupLanguageResult.lastResult.Tables.Language.Rows)}"/>
    </s:DataGrid>
    </s:Application>
    And now I can see the CountryID, LanguageID, LanguageName and LanguageCode, but still no Country Name, so where do I look now, and more to the point why is this happening?
    Please please please please help, this is just slightly more than business critical, I have to justify the cost of this project, and so far, not having  lot of fun with it.
    Thanks
    Shaine

  • How can I get back to Flash Builder 4.5 ?

    I have Flash Build 4.6 in the creative cloud monthly subscription. 
    Design mode does not work in 4.6.
    All the tutorials are currently using 4.5 and the functional design mode.
    How can I get back to 4.5 which actually works?

    No error, just a blank white area. When I drag things to it I get a NO sign like the Ghostbusters sign, forgot what that's called.
    When I breifly had 4.5, I could easily drag things over and create sites. Then it automatically upgraded and suddenly, doing the exact same things, stopped working.
    I'm still learning FB so I can't convert to pure code yet. If I can't get the design mode to work then I'll be dumping FB since I can't follow any of the tutorials.

  • How do you create layers in flash builder?

    I was looking at this painting tutorial http://www.pixelhivedesign.com/tutorials/Flash+Painting+Program/   and was wondering how would you go about creating the different layers in flash builder?

    I've written a basic paint app, based off of your examples (thanks again by the way), and this example http://www.jamesward.com/2010/03/22/flex-paint-updated-to-flex-4. My problem is that the paint function is drawing behind my panel (a type of layout container) and not on top or in it. how do i fix this?
                protected var isDrawing:Boolean = false;
                protected var x1:int;
                protected var y1:int;
                protected var x2:int;
                protected var y2:int;
                private var lineColor:uint = 0x000000;
                protected function draw_clickHandler(event:MouseEvent):void
                   addEventListener(MouseEvent.MOUSE_DOWN, mDown);
                   addEventListener(MouseEvent.MOUSE_MOVE,mMove);
                   addEventListener(MouseEvent.MOUSE_UP,mUp);
                protected function mDown (event:MouseEvent): void
                    x1 = pan.mouseX;
                    y1 = pan.mouseY;
                    isDrawing = true;
                    labstatus.text = "da";
                protected function mMove(event:MouseEvent): void
                    if(!event.buttonDown)
                        isDrawing = false;
                        labstatus.text = "mouse up moving";
                    x2 = pan.mouseX;
                    y2 = pan.mouseY;
                    if (isDrawing)
                        pan.graphics.lineStyle(6,lineColor);
                        pan.graphics.moveTo(x1,y1);
                        pan.graphics.lineTo(x2,y2);
                        x1 = x2;
                        y1 = y2;
                    labstatus.text = "Drawing line" + x1 +" " + y1;   
                } //end mMove
                protected function mUp(event:MouseEvent):void
                    isDrawing = false;
                protected function lineColorPicker_changeHandler(event:ColorPickerEvent):void
                    lineColor = event.target.selectedColor;
            ]]>
        </fx:Script>
        <s:Panel x="32" y="82" width="543" height="227" id="pan">
            <s:controlBarContent>
            <mx:ColorPicker width="38" height="23" id="lineColorPicker" change="lineColorPicker_changeHandler(event)"/>
            <s:Button label="paint" id="draw" click="draw_clickHandler(event)"/>
        </s:controlBarContent>
            <s:Label x="57" y="57" width="97" height="45" id="labstatus"/>
        </s:Panel>
    </s:Application>

  • How to create Theme SWC using Flash Builder 4

    I have created a library project in flex which contains spark skin classes for certain controls and a style sheet class. The problem is when I use the SWC generated by thsi project  and import this SWC as Theme and apply it to another test project. the stylings chasnges are not reflected.
    IF I use comand line to generate Theme SWC the changes are reflected.
    Can any one help me use FLash Builder to create and apply theme SWC.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • What's the difference between these to Adobe Air SKD folder locations in flash Builder 4.7?

    So I can drop AIR SDKs inside the Adobe Flash Builde 4.7 (64 Bit)/sdks folder (under 4.6.0) - as per instructions in the Starling adobe.tv tutorials, or, as per the Adobe labs docs, place them in eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK
    Which is right? What's the difference? Should I do both to hedge my bets?
    Thanks in advance for un-confusing me!

    As far as I know, Flash Builder uses the Flex SDK to compile applications.
    I do know that updating to certain versions of the AIR SDK (i.e. from 3.4 to 3.8), I had to copy the AIR SDK + compiler into the 'AIRSDK' folder, instead of just the AIR SDK like the download page says.
    Someone please correct me if I'm wrong.

  • How can use Chrome System in Flash Builder

    i have a problem with flash builder (Gumbo).
    in fact i can't use system chrome in flash builder beta.(after changing .xml file)
    please help me

    Thru ExternalInterface you can use it

  • How can I save/export a Flash Builder ActionScript Project?

    Is it possible to do this and then copy the project to another machine and open the project up in Flash Builder?
    cheers.

    Glenn
    Please remind me what computer operating system you are using for your Premiere Elements 13?
    I do not think that is involved. I suspect it is the thin scroll bar but let us check that out.
    Let us say that you want want to export an .avi file, you use that thin scroll bar to scroll through
    MPEG
    AVCHD
    XAVC-S
    AVI
    Windows Media
    QuickTime
    Image
    Audio
    until you scroll to AVI and then make your choice of preset for AVI. If you decide the AVI default preset is not what
    you want, then you press on the Advanced Button for that AVI preset to get at the preset customization area.
    As you can see, there is more scrolling to be done to get to Windows Media (wmv) which is further toward
    the bottom of the list.
    Please consider and let us know the outcome. If those choices are really missing, then we are in major trouble
    which may require a program uninstall, ccleaner run through, and reinstall with antivirus and firewall(s) disabled.
    We will be watching for your results.
    Thanks.
    ATR

  • Which version of Creative Cloud will give me access to Flash Builder?

    I am updating an old school project for a company, which requires Flash Builder. Since this is a relatively small job, a full license is not required. Is Flash Builder part of Creative Cloud? I can't find it among the single applications.

    Hello raschi,
    looking to my CC Apps, there Flash Builder is offered for download, what means in my eyes it's included.
    Nevertheless I would use http://www.adobe.com/downloads.html >>> View all available free trials >>> https://creative.adobe.com/products/download/flash-builder to finally assess Adobe's arrangements better.
    Hans-Günter

  • How to create Calendar Control using Flash Builder

    I want to implement a calendar control in Flex using flash builder 4.5.1. For this, I am thinking to extend the DateChooser Control.
    Can any please guide me in the correct way to get my  calendar control.
    In that calendar control I want to add some small images/text in each day cell with a tool tip information and with different colors for each day cell of the calendar control.
    plz help me.
    regards
    vijay

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

Maybe you are looking for