Flex 2 questions

Hello,
I have 2 questions.
1.  Is it necessary that the data from php to flex should be in xml format, if not then please provide a link or some code snippet in php and flex?
2.  I have a webserver which gets socket values from another server, should i have to send the policy file from webserver or should it be from server which sends the sockets?
Thanks

http://support.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/flex-2-14-notebook-lenovo?...
1. Install the generic driver:
1. Disable signature enforcement: https://www.youtube.com/watch?v=NM1MN8QZhnk
2. Install the synaptic driver: 17.0.19
3. Install the aforementioned patch
2. Try the link above.

Similar Messages

  • Noob Flex Questions - Run Application

    Hi All
       I am trying to learn Flex 4 and having a question.
    When I download the sample files from Adobe website, I tried to open the files in Flex but it told me that I have to select
    New -> Flex Proejct -> Assign the file folder location to create a new Flex project. Then I created one with my own project name.
    Flex then created a new src folder with my new project name.mxml file. "THE FILE I WANT TO OPEN IS ON THEIR ORIGINAL FOLDER NAME." like
    Flex src or whatever the author created. I tried to run their mxml file, but the "Run Application" is grey out??!!. Why? I have to moved the mxml to my src folder? It seems dumb to me that I have to do this to open an existing project. Besides, if there is a subfolder with another subfolder under Flex src folder, when I moved them to my src folder, it created subfoldername.anothersubfoldername under my src (instead of subfolder/anothersubfolder that the original author created).  I know it might be a noob question, but what is going on here? I cant' even get the existing project running.........Thanks for any helps...

    Hi,
    Your question is a bit confusing but here is a fundimental principle in Eclipse.
    Every project has;
    MyProject
      - bin
      - src
        - MyApplication.mxml
      - html-template
      - libs
    The 'src' folder holds all runable/compilable code actionscript classes and mxml components/applications.
    The only thing Flash Builder will run is a mxml file that subclasses s:Application or mx:Application or any subclass of them.
    Flash Builder will not 'just' run an mxml file. So if you get application samples from Adobe, you need to have them in the src folder and there needs to be a little green arrow in the top left corner. This means it's a registered application that you can run. The little blue dot in the top right corner means it's the default application that will run when you hit ctr-F11 or F11 or Run..
    If you paste a file that IS an Application and cannot get it to run, you need to;
    - make sure it's in your src folder
    - right click an select Run As
    - select Web Application
    This will run the app baring no compiler errors. If the mxml file is not registered as an application, this action will also register it.
    Hope that helps,
    Mike

  • Dumb flex question about mxml arguements

    Hi all,
    I have two questions for those people who are more
    experienced than I with flex.
    1. is there any way to make certain arguments into
    requirements for component instantiation? So if you use my
    component you have to specify some non default args? similar to in
    a constructor...
    2. if I define a method in a component, for example,
    something to add multiple children to a container, how do i make it
    accessible within the component definition? i'm looking for a way
    to add multiple items of a predetermined type to a component within
    the application mxml so that users would define elements using only
    tags, no scripting.

    "baddcafe" <[email protected]> wrote in
    message
    news:gh9759$326$[email protected]..
    > Hi all,
    > I have two questions for those people who are more
    experienced than I with
    > flex.
    > 1. is there any way to make certain arguments into
    requirements for
    > component
    > instantiation? So if you use my component you have to
    specify some non
    > default
    > args? similar to in a constructor...
    Probably better to simply handle cases where they're not
    provided.
    > 2. if I define a method in a component, for example,
    something to add
    > multiple
    > children to a container, how do i make it accessible
    within the component
    > definition? i'm looking for a way to add multiple items
    of a predetermined
    > type
    > to a component within the application mxml so that users
    would define
    > elements
    > using only tags, no scripting.
    Look in the docs under template components.
    HTH;
    Amy

  • A big newbie flex question.

    Where do I put it all?
    I've done many of the basic tutorials, I have a pretty good
    idea on how
    to create simple flex projects. I am now trying to design a
    real,
    functioning project based on one of our most important,
    internal, web
    applications.
    I find myself a little over my head. Any help would be
    greatly appreciated.
    I am building what is basically a calendar of events. I'm
    currently
    using flash remoting to pull the event data with ColdFusion
    from a
    database. I will have to main 'views' to start with. One is a
    full
    calendar display of all the events for a month. The second is
    a drill
    down that will display all the details of an individual
    event, with a
    panel on the left displaying other events on the same date.
    I've built most of the pieces of this, but I'm having trouble
    putting it
    together in a manageable layout. To date, I've pretty much
    put
    everything into a single MXML file but this is getting quite
    unwieldy.
    However when I try to pull pieces out into custom controls I
    start
    having great difficulty dealing with the data and the various
    view pieces.
    So, one has managed to wade through all that exposition, what
    is a good
    way to do this? Where do I put the data access logic. I
    presume in my
    root application file. But, if I do that, how do I access it
    from my
    various view pieces? How do I connect all the dots?

    peterent wrote:
    > The URL is in my signature (maybe that doesn't come
    through on a news reader):
    >
    http://weblogs.macromedia.com/pent
    >
    > Sorry!
    Nope, no signatures in what is sent to the RSS feeds for us
    newsreader
    folks.
    Thanks for the link. I have added it to the others I am
    trying to
    digest as quick as I can to get some understanding on how all
    the
    RPC-Flash Remoting Flex and ColdFusion stuff works.

  • Photoshop panel created with Flex question

    Hi everyone,
    Im trying to create a simple panel in Flex that you would be able to create a new PS document. I want to pass 4 parameters from Actionscript to my Javascript function. For some reason Im only able to pass one parameter, it will not work when I pass more the one. For example:
    My AS function:
    public function callCloseDocument():void{
    CSXSInterface.instance.evalScript("testFunc", "10", "10", "myDocName");
    My JS function:
    function testFunc(theWidth, theHeight, docName){
    thisWidth=parseFloat(theWidth);
    thisHeight=parseFloat(theHeight);
    app.documents.add(thisWidth, thisHeight, 72, docName, NewDocumentMode.RGB, DocumentFill.WHITE);
    This will not work, when I pass just one parameter no matter which one it works no problem. I can't figure out how come this is happening. Any help would be greatly appreciated.
    Chris R.

    Hi Davide,
    I was never able to find out why that didn't work. I looked at all the documentation available and there was nothing there. What I ended up doing was I just called 2 different functions in flex to set 2 different variables in my Javascript. For example:
    myVar2.evalScript("setWidth", docW);
    myVar2.evalScript("setHeight", docHeight);
    and in my JS:
    function setWidth(sentWidth){
    thisWidth=parseFloat(sentWidth);
    function setHeight(sentHeight){
    thisHeight=parseFloat(sentHeight);
    That worked for me, very lame I had to do it this way but like you I tried everything under the sun and I could not send more then one parameter. Let me know if you figure out how to send them over the proper way.

  • Newbie Flex Question about ComboBox in DataGrid

    Heya!
    Just downloaded Flex today and pleasantly surprised at how
    cool it is. Can any of you fine gents and girls help me out? Why
    doesn't this give me an editable column in my data grid?

    It's a pretty safe assumption that no raw editor except the OEM version will remember the in-camera settings, aside from white balance.
    Why's that? Because those settings don't really do anything anyway - they are just advance instructions for the converter.

  • Concurrent actions in Flex question

    Thanks for the link to LightGauge (nice component!). Could
    someone point me towards docs/links where I can learn how I might
    feed a component with ongoing info e.g.
    channel.leftPeak;
    channel.rightPeak;
    while still allowing the user to type in information etc and
    the app carry on as usual? Flex is not multithreaded, right, so one
    cannot just spawn a thread that takes care of pushing the data to
    the sound visualizer, and carry on "as normal". So when it comes to
    multiple GUI components doing things, is it all about event
    generation/listening/processing where many events are processed in
    quick succession and not concurrently, but the speed allows it to
    behave as though concurrent? ( I know what I mean :-). So channel
    emits events that can be trapped and sent to a GUI meter and this
    is so fast that the rest of the GUI can still listen and respond.
    Timers can be used of course, but I am presuming we have progressed
    from that necessity :-). Thanks in advance,
    Mic.

    I'm not really answering myself :-) ... It looks like if one
    creates a project within Flex as an Actionscript project, one can
    have
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    public class EncapsulationExample extends Sprite {
    public function EncapsulationExample() {
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    private function onEnterFrame(evtObj:Event):void {
    trace("Hello from onEnterFrame");
    i.e the use of EnterFrame for animation e.g. a stereo vu
    meter ....
    but I think this would preclude using the <mx:> tag
    where all the lovely Flex Gui sits.

  • Simple Flex Chart question - Plot Chart labels

    I'm playing around with displaying data from WDA as charts in Flex 3.
    I'm able to bind my internal table, which has 3 fields, to the plot chart.
    The table looks like this
    ext_id      type string    " bound to prjname in Flex
    cost         type string    " bound to prjcost in Flex
    benefit     type string    " bound to prjbenefit in Flex
    These are all bound to my island's DataSource.
    I have bound these in Flex and the Cost and Benefits are showing up as points on my chart. However, I can't seem to get the Project Name to display on the plot points. All I see when I mouse over the point is EXT_ID, and the values for cost and benefits.
    The cost/benefit values are coming across correctly, just not the project name (ext_id) value. any ideas?
    here's the Flex code for the chart
         [Bindable]
         public var dataSource:ArrayCollection;
         [Bindable]
         public var prjcost:String;
         [Bindable]
         public var prjbenefit:String;
         [Bindable]
         public var prjname:String;.
        <mx:PlotChart id="plotchart1" dataProvider="{dataSource}" showDataTips="true">
           <mx:series>
                <mx:PlotSeries displayName="{prjname}" yField="{prjcost}" xField="{prjbenefit}" dataProvider="/>
            </mx:series>
        </mx:PlotChart>

    This is really a Flex question not an Islands specific one.  I don't think the displayName properity is what you want to use here.  This is the name for the entire series as it will be displayed in the legend. I think what you want is a dataTip.  You register a callback for the dataTip rendering and then fill the custom dataTip quick info.
    This is an example from a bar chart, but the theory is the same:
    <mx:BarChart id="barChart" dataTipFunction="dtFunc" xmlns:mx="http://www.adobe.com/2006/mxml" type="clustered" width="100%" showDataTips="true" height="100%">
         <mx:verticalAxis>
              <mx:CategoryAxis categoryField="{SalesOrd}" dataProvider="{dataSource}" />
         </mx:verticalAxis>
         <mx:series>
              <mx:BarSeries id="bsGross" xField="{grossAmt}" displayName="Gross Amount" dataProvider="{dataSource}" fill="{otdFill}" showDataEffect="{slideIn}"  />
              <mx:BarSeries id="bsNet" xField="{netAmt}" displayName="Net Amount" dataProvider="{dataSource}" fill="{rtyFill}" showDataEffect="{zoomIn}"  />          
         </mx:series>
    </mx:BarChart>
    private function dtFunc(hd:HitData):String {
                  switch(BarSeries(hd.element).id){
                       case "bsGross":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n" + FlashIsland.formatNumber(hd.item.TTL_GROSS_AMOUNT) + " " + hd.item.CURRENCY_CODE;                        
                             break;
                       case "bsNet":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n " + FlashIsland.formatNumber(hd.item.TTL_NET_AMOUNT) + " " + hd.item.CURRENCY_CODE;
                             break;                   
                  return "Amount";

  • Flex 4 with php error.

    Hi all, i'm connecting a flex application with database MySql, for that i'm using PHP as server side language. I followed a tutorial and created php class and tested. I'm getting the error at last step. This is what i did,
    1) create a php class name.php
    <?php
    * This sample service contains functions that illustrate typical
    * service operations. This code is for prototyping only.
    *  Authenticate users before allowing them to call these methods.
    class name {
      var $username = "root";
      var $password = "";
      var $server = "localhost";
      var $port = "3306";
      var $databasename = "test";
      var $tablename = "names";
      var $connection;
      public function __construct() {
        $this->connection = mysqli_connect(
                           $this->server, 
                           $this->username, 
                           $this->password,
                           $this->databasename,
                           $this->port
        $this->throwExceptionOnError($this->connection);
      public function getNames() {
         $stmt = mysqli_prepare($this->connection,
              "SELECT
                  names.firstname,
                  names.middlename,
                  names.lastname
               FROM names");    
          $this->throwExceptionOnError();
          mysqli_stmt_execute($stmt);
          $this->throwExceptionOnError();
          $rows = array();
          mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          while (mysqli_stmt_fetch($stmt)) {
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          mysqli_stmt_free_result($stmt);
          mysqli_close($this->connection);
          return $rows;
       private function throwExceptionOnError($link = null) {
        if($link == null) {
          $link = $this->connection;
        if(mysqli_error($link)) {
          $msg = mysqli_errno($link) . ": " . mysqli_error($link);
          throw new Exception('MySQL Error - '. $msg);
    2)   Through data wizard, connect php and linked php class, it showed the methods and went to final step.
    3) Created a datagrid in flex, then dragged and droped getNames() to the datagid, then i configured return type. The datagrid then changed its fields to MySql table.
    4) Here was the problem, when i ran the application, it showed a error in this line,
    <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.FlexEvent;
                                  protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                                            getNamesResult.token = name.getNames();
                        ]]>
              </fx:Script>
    Error - 
    Description
    Resource
    Path
    Location
    Type
    1061: Call to a possibly undefined method getNames through a reference with static type String.
    flexphp.mxml
    /flexphp/src
    line 13
    Flex Problem
    I'm new to flex, so wondering where exactly is the problem?
    I did traced back few steps, like followed Control+click on getNames(), but it took me to actionscript file and everything seemed perfect. Since you guys have experience, hope you would throw some light on error. Thanks!

    This appears to be a Flex question. please try posting it in the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • What is the best forum for "hard" questions ?

    Hi,
    First let me say this is a great forum for flex questions...
    But, I'm working on some "unusual" problems and my questions don't get answered. I think I may not be on the correct forum.
    Any suggestions on another forum to address the more complex issues ?
    cheers...g

    This is it

  • T500 keyboard question

    Hi.  I'm new to the ThinkPads -- I bought a T500 for work a month and a half ago, on the recommendation of a colleague, and have just now started to use it for my day to day work.
    After about a week of use, I've noticed that the arrow keys, particularly the right key, has an annoying 'clack' to it, almost as if it's bottoming out.  It's much louder than the rest of the keyboard, which is fairly quiet.
    I've 'googled' this issue and it appears that others complain about "keyboard flex" in the T500.  I'm no connoisseur, and I have a feeling much of what goes on in the discussion (such as http://lnv.lithium.com/t5/T400-T500-and-newer-T-series/T500-Keyboard-and-Flex-How-bad-is-it/m-p/6072...) is beyond my reach.  My simple question is this: is my clacking on the right key a result of "keyboard flex"?
    Also, regardless of the flex question, is there a way for me to resolve this key clacking without sending anything in for repair?  I've made the full switch to this laptop for work, so I really don't want to give it up if it's something I can fix on my own.

    I have not experienced this specific noise, but do not think it would be related to the keyboard flex complaint.  That stems from a gap under the keyboard, mostly on the left side, making it feel spongey and sloppy.
    You should look carefully at the keyboard there to see if that specific key is touching the case itself, something like that.  You might also remove the palm rest screws from the bottom, and carefully remove the palm rest and reset it and the keyboard to see that eliminates the noise.  With the palm reset removed, you should at least be able to see what is causing the noise.
    If the keyboard is bad somehow, they can send you a new one and it won't be out of service.  It's pretty quick and easy to change it out, if necessary.  But an inspection before you call will probably help.
    Don Mannino

  • How to scan barcode using flex?

    We are developing a mobile app.
    Our requrement is to scan barcode using mobile camera.
    Any one can give me idea how to do it?
    Do I need to connect to any third party app? If so How.
    Or flex have capabilites to read barcode?
    I have seen this example using web cam
    http://www.renaun.com/flex2/BarcodeReader/BarcodeReader.html
    I am not sure that will it work in mobile app?

    This is a Flex question. Please try posting on the Flex forums for better response http://forums.adobe.com/community/flex/flex_general_discussion

  • Can Flex Travel?

    Have and advanced flex question...
    I have a vocal track and it needed tuning. Used flex pitch. Then I bounced the track (including the flex pitch).
    So now I have a tuned vocal and a muted original.
    Next I do a bunch of flex timing stuff on the tuned (bounced) vocal.
    Next client comes in... "timing is great but I hear the tuning".
    My questions is can I take the flex timing information and apply it to the oringinal (not bounced) vocal.

    Lisa,
    If you have an Intel iMac (as I would imagine based on your posting in this section) then it does have an auto switching power supply and should work fine on a European power socket (obviously you will need a new power cord or an adapter plug to make the pins fit.)
    You can view Apples article on power supplies/voltage settings as well as a list of older iMac compatability (if you don't have an Intel model) here:
    http://docs.info.apple.com/article.html?artnum=75099
    C.

  • Deploying Flex 4 application and Channel Disconnected Error

    Hi,
    After deploying my application I keep having this error when I want to insert into Database.
    Channel disconnected before an acknowledgement was received
    The problem is that everything works as a cham localy.
    Thank's.

    This is a Flex question. Please try posting it to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • How to get rid of a thin gray border of SkinnableContainer in design mode

    I'm learning skinning techniques for flex 4 and spark. For an example project I've created custom component derived from SkinnableContainer. It is simple container with surrounding frame and a title.
    Everything works just fine when I run test project with a component on it. But at design time my component's border is not visible - it is covered with a thin gray border.
    Disadvantages of this behavior is that developer using the component can not see some changes made at design time (e.g. border color).
    I've searched through SkinnableContainer's code, but I couldn't find if the thin gray border is drawn by this class.
    see illustration
    My component's code:
    package dtg.components
        import dtg.skins.BorderContainerWithTitleSkin;
        import spark.components.SkinnableContainer;
        public class BorderContainerWithTitle extends SkinnableContainer
            [SkinPart]
            public var title:Label;
            private var _text:String;
            public function BorderContainerWithTitle()
                super();
                setStyle("skinClass", dtg.skins.BorderContainerWithTitleSkin);
            [Inspectable(category="Common",name="Group_Title",type="String",defaultValue="Data Group")]
            public function get groupTitle():String
                return _text;
            public function set groupTitle(text:String):void
                if (_text != text)
                    _text = text;
                    if (title != null)
                        title.text = _text;
            [Bindable]
            [Inspectable(category="Common", type="Color",format="Color")]
            public var lineColor:uint;
            [Bindable]
            [Inspectable(category="Common", type="Color",format="Color")]
            public var textColor:uint;
            override protected function partAdded(partName:String, instance:Object):void
                super.partAdded(partName, instance);
                if (partName == "title")
                    (instance as Label).text = _text;
            override protected function partRemoved(partName:String, instance:Object):void
                super.partRemoved(partName, instance);
    and skin:
    <?xml version="1.0" encoding="utf-8"?>
    <!--- The default skin class for a Spark SkinnableContainer container. 
         @see spark.components.SkinnableContainer
          @langversion 3.0
          @playerversion Flash 10
          @playerversion AIR 1.5
          @productversion Flex 4
    -->
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled="0.5"
        creationComplete="skin1_creationCompleteHandler(event)" xmlns:local="*" xmlns:components="dtg.components.*"
        >
        <fx:Metadata>[HostComponent("dtg.components.BorderContainerWithTitle")]</fx:Metadata>
        <fx:Script fb:purpose="styling">
            <![CDATA[        
                import mx.states.OverrideBase;
                 *  @private
                /* Define the skin elements that should not be colorized. */
                static private const exclusions:Array = ["background", "title"];       
                 * @private
                override public function get colorizeExclusions():Array {return exclusions;}           
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void
                    // Push backgroundColor and backgroundAlpha directly.
                    // Handle undefined backgroundColor by hiding the background object.
                    if (isNaN(getStyle("backgroundColor")))
                        background.visible = false;
                    else
                        background.visible = true;
                        background.left = background.top = background.right = background.bottom = 1;
                        bgFill.color = getStyle("backgroundColor");
                        bgFill.alpha = getStyle("backgroundAlpha");
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
            ]]>       
        </fx:Script>
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;        
                [Bindable]
                private var _bMargin:uint;
                [Bindable]
                private var _titleWidth:uint;          
                protected function skin1_creationCompleteHandler(event:FlexEvent):void
                    _titleWidth = title.width;
                    _bMargin = title.height/2;
                    title.addEventListener(Event.CHANGE, onTitleChange);
                protected function updateLayout():void
                    var tlm:TextLineMetrics = title.measureText(title.text);
                    _titleWidth = tlm.width;
                    _bMargin = (tlm.ascent)/2;
                protected function onTitleChange(e:Event):void
                    updateLayout();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:SolidColorStroke id="lineStroke" weight="1" color="{hostComponent.lineColor}" alpha="1.0"/>
        </fx:Declarations>
        <s:states>
            <s:State name="normal"/>
            <s:State name="disabled" />
        </s:states>
        <!--- Defines the appearance of the SkinnableContainer class's background. -->
        <s:Rect id="background" left="1" right="1" top="1" bottom="1">
            <s:fill>
                <!--- @private -->
                <s:SolidColor id="bgFill"/>
            </s:fill>
        </s:Rect>
        <!--
        Note: setting the minimum size to 0 here so that changes to the host component's
        size will not be thwarted by this skin part's minimum size.   This is a compromise,
        more about it here: http://bugs.adobe.com/jira/browse/SDK-21143
        -->
        <!--- @copy spark.components.SkinnableContainer#contentGroup -->
        <s:Group id="contentGroup" left="1" right="1" top="1" bottom="1" minWidth="0" minHeight="0">
        </s:Group> 
        <s:Label id="title"
                     left="{_bMargin*2}"
                     top="{-_bMargin}"
                     color="{hostComponent.textColor}"
                     />    
        <!--Top left line-->
        <s:Line xFrom="0" yFrom="0" xTo="{_bMargin}" yTo="0" stroke="{lineStroke}"/>
        <!--Top rigth line-->
        <s:Line xFrom="{_titleWidth + _bMargin*3}" yFrom="0" xTo="{width-1}" yTo="0" stroke="{lineStroke}"/>
        <!--Rigth line-->
        <s:Line xFrom="{width-1}" yFrom="0" xTo="{width-1}" yTo="{height-1}" stroke="{lineStroke}"/>
        <!--Bottom line-->
        <s:Line xFrom="{width-1}" yFrom="{height-1}" xTo="0" yTo="{height-1}" stroke="{lineStroke}"/>
        <!--Left line-->
        <s:Line xFrom="0" yFrom="{height-1}" xTo="0" yTo="0" stroke="{lineStroke}"/>
    </s:SparkSkin>

    This appears to be a Flex question. Please try the Flex forums here
    http://forums.adobe.com/community/flex/flex_general_discussion.

  • Air Auto Update Error -- Flash Builder Burrito.

    This is my first attempt at this, so I may be missing something simple.
    I'm not having any luck getting an Air app to automatically update.
    If I manually go to  http://localhost/air1/air1.air and redownload the file I will get a popup that asks if I want to update the app, but when I say ok I get this error.
    "There was an error checking for updates. Error# 16816"
    I haven't found a reason yet,
    Any ideas?
    update.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
      <version>2.0</version>
      <url>http://localhost/air1/air1.air</url>
      <description>1.0 - First version</description>
    </update>
    file -- air1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           applicationComplete="init()">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import air.update.events.UpdateEvent;
                import air.update.ApplicationUpdaterUI;
                import mx.controls.Alert;
                protected var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); // Used for auto-update
                protected function init():void
                    // Check for update
                    this.checkUpdate();
                    Alert.show("checking update");
                // This function is triggered when the application finished loading.
                // Initialize appUpdater and set some properties
                protected function checkUpdate():void
                    // set the URL for the update.xml file
                    appUpdater.updateURL = "http://localhost/air1/update.xml";
                    appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate);
                    appUpdater.addEventListener(ErrorEvent.ERROR, onUpdaterError);
                    // Hide the dialog asking for permission for checking for a new update.
                    // If you want to see it just leave the default value (or set true).
                    appUpdater.isCheckForUpdateVisible = true;
                    appUpdater.initialize();
                // Handler function triggered by the ApplicationUpdater.initialize.
                // The updater was initialized and it is ready to take commands.
                protected function onUpdate(event:UpdateEvent):void
                    // start the process of checking for a new update and to install
                    appUpdater.checkNow();
                // Handler function for error events triggered by the ApplicationUpdater.initialize
                protected function onUpdaterError(event:ErrorEvent):void
                    Alert.show(event.toString());
            ]]>
        </fx:Script>
        <s:Button x="47" y="55" label="Button"/>
        <mx:ColorPicker x="61" y="119"/>
        <s:ComboBox x="77" y="216"/>
        <s:ComboBox x="77" y="185"/>
        <s:ComboBox x="77" y="154"/>
    </s:WindowedApplication>
    file  -- air1-app.xml
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.5">
    <!-- Adobe AIR Application Descriptor File Template.
        Specifies parameters for identifying, installing, and launching AIR applications.
        xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5
                The last segment of the namespace specifies the version
                of the AIR runtime required for this application to run.
        minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                the application. Optional.
    -->
        <!-- A universally unique application identifier. Must be unique across all AIR applications.
        Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
        <id>air1</id>
        <!-- Used as the filename for the application. Required. -->
        <filename>air1</filename>
        <!-- The name that is displayed in the AIR application installer.
        May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <name>air1</name>
        <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
        Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
        An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
        <versionNumber>2.0.0</versionNumber>
        <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
        <!-- <versionLabel></versionLabel> -->
        <!-- Description, displayed in the AIR application installer.
        May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <!-- <description></description> -->
        <!-- Copyright information. Optional -->
        <!-- <copyright></copyright> -->
        <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
        <!-- <publisherID></publisherID> -->
        <!-- Settings for the application's initial window. Required. -->
        <initialWindow>
            <!-- The main SWF or HTML file of the application. Required. -->
            <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
            <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
            <!-- The title of the main window. Optional. -->
            <!-- <title></title> -->
            <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
            <!-- <systemChrome></systemChrome> -->
            <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
            <!-- <transparent></transparent> -->
            <!-- Whether the window is initially visible. Optional. Default false. -->
            <!-- <visible></visible> -->
            <!-- Whether the user can minimize the window. Optional. Default true. -->
            <!-- <minimizable></minimizable> -->
            <!-- Whether the user can maximize the window. Optional. Default true. -->
            <!-- <maximizable></maximizable> -->
            <!-- Whether the user can resize the window. Optional. Default true. -->
            <!-- <resizable></resizable> -->
            <!-- The window's initial width in pixels. Optional. -->
            <!-- <width></width> -->
            <!-- The window's initial height in pixels. Optional. -->
            <!-- <height></height> -->
            <!-- The window's initial x position. Optional. -->
            <!-- <x></x> -->
            <!-- The window's initial y position. Optional. -->
            <!-- <y></y> -->
            <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
            <!-- <minSize></minSize> -->
            <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
            <!-- <maxSize></maxSize> -->
        <autoOrients>false</autoOrients>
        <fullScreen>false</fullScreen>
        <visible>false</visible>
      </initialWindow>
        <!-- We recommend omitting the supportedProfiles element, -->
        <!-- which in turn permits your application to be deployed to all -->
        <!-- devices supported by AIR. If you wish to restrict deployment -->
        <!-- (i.e., to only mobile devices) then add this element and list -->
        <!-- only the profiles which your application does support. -->
        <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
        <!-- The subpath of the standard default installation location to use. Optional. -->
        <!-- <installFolder></installFolder> -->
        <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
        <!-- <programMenuFolder></programMenuFolder> -->
        <!-- The icon the system uses for the application. For at least one resolution,
        specify the path to a PNG file included in the AIR package. Optional. -->
        <!-- <icon>
            <image16x16></image16x16>
            <image32x32></image32x32>
            <image36x36></image36x36>
            <image48x48></image48x48>
            <image72x72></image72x72>
            <image128x128></image128x128>
        </icon> -->
        <!-- Whether the application handles the update when a user double-clicks an update version
        of the AIR file (true), or the default AIR application installer handles the update (false).
        Optional. Default false. -->
        <!-- <customUpdateUI></customUpdateUI> -->
        <!-- Whether the application can be launched when the user clicks a link in a web browser.
        Optional. Default false. -->
        <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
        <!-- Listing of file types for which the application can register. Optional. -->
        <!-- <fileTypes> -->
            <!-- Defines one file type. Optional. -->
            <!-- <fileType> -->
                <!-- The name that the system displays for the registered file type. Required. -->
                <!-- <name></name> -->
                <!-- The extension to register. Required. -->
                <!-- <extension></extension> -->
                <!-- The description of the file type. Optional. -->
                <!-- <description></description> -->
                <!-- The MIME content type. -->
                <!-- <contentType></contentType> -->
                <!-- The icon to display for the file type. Optional. -->
                <!-- <icon>
                    <image16x16></image16x16>
                    <image32x32></image32x32>
                    <image48x48></image48x48>
                    <image128x128></image128x128>
                </icon> -->
            <!-- </fileType> -->
        <!-- </fileTypes> -->
        <!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
        <!--<android>
            <manifestAdditions>
            <![CDATA[
                <manifest android:installLocation="auto">
                    <uses-permission android:name="android.permission.INTERNET"/>
                    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                    <uses-configuration android:reqFiveWayNav="true"/>
                    <supports-screens android:normalScreens="true"/>
                    <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                    <application android:enabled="true">
                        <activity android:excludeFromRecents="false">
                            <intent-filter>
                                <action android:name="android.intent.action.MAIN"/>
                                <category android:name="android.intent.category.LAUNCHER"/>
                            </intent-filter>
                        </activity>
                    </application>
                </manifest>
            ]]>
            </manifestAdditions>
        </android> -->
        <!-- End of the schema for adding the android specific tags in AndroidManifest.xml file -->
    </application>

    This appears to be a Flex question. Please try posting to the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion for better response.

Maybe you are looking for

  • How to keep songs on iphone, work computer and home computer the same?

    How to keep songs on iphone, work computer and home computer the same? This seems like something everyone would want to do. I don't know why Apple won't give us a simple solution. They could even charge us for it. I would pay! Has anyone solved this?

  • IPhone 4s: PC to Macbook Pro Help

    We are switching an iphone 4s from a pc to a mac. What is the best way to do this without losing photo's? All of the music is on an external hard drive--- but we have lots and lots of pictures that are NOT backed up anywhere.

  • Dvd doesn't load any disk

    hi that's my problem: i tried to load a dvd today. nothing works. the disk doens't load: it stays half inside half outside, I can not put it inside, like if a disk was already indise, but there is not any one. can some one help me please? thanks a.

  • Authorization with LCDS

    I have a flex application and LCDS running on CF8 running on JRun4 on the server. The flex application authenticates users with LCDS security that in term uses custom-authentication together with Jrun-security to authenticate against a MySQL DB. I us

  • I am new to this forum.Needed help

    Apple ipod 40GB problem was When i switch on the ipod shows apple logo after a few seconds shows www.apple.com/support/ipod then it was getting off What to do i for this problem I installed latest itune setup in my system.Wht to do next? When i conne