Problems with XML list

Hey all,.

I'm having a problem getting the information to display in a list of tile I created.

Code:

< mx:HTTPService id = "tempXML" url="https://{customer.text}.mysite.net/interface.php?action=showopen & amp; operation = showa ssets & amp; format = xml & amp; opstatus = crit & amp; username = {username.text} & amp; password = {password .text}"/ >
< mx:Script >
<! [CDATA]
Import mx.collections. *;
[Bindable]
public var TileList1dp:ArrayCollection;

private void initData (): void {}
TileList1dp = new ArrayCollection (tempXML.lastResult.asset.fleet);
}
[]] >
< / mx:Script >


< mx:TileList dataProvider = "{TileList1dp}".
width = "344" backgroundColor = "#000000" color = "#ff0000" fontSize = "27" borderColor = "#000000" columnWidth = "300" rowHeight = "50" themeColor = "#808080" fontWeight = "bold" allowMultipleSelection = "true" id = "TileList1" height = "0" y = "202" x = "178" / >

I can watch by fire bug and see that I see the XML being received, but I do not see the data displayed in the application.

I'll try to find an example of the results Manager will get the
characteristics of the TileList.

I know I'm probably noobing this problem but I'm still new and unsure of how to receive.

Thanks to Tracy, Paul Andrews, springframework, Peter Ent and all the others who were with me in the spirit of trying to understand this. In case someone has
This same problem, I write the solution that fixed and this
part is closed.

Thank you once again.

Mark

Code:


result = "OnResult (Event)" "
URL="https://{customer.text}.mysite.NET/interface.php?action=showopen & operat\
ion = showassets & format = opstatus & xml = crit & username = {username.text} & amp\
password = {password.text}.
/>


width = "344" backgroundColor = "#000000" color = "#ff0000" fontSize = "27".
borderColor = "#000000" columnWidth = "300" rowHeight = "50".
themeColor = "#808080" fontWeight = "bold" allowMultipleSelection = 'true '.
ID = "TileList1" height = "0" y = "202" x = "178" / >


Import mx.collections.XMLListCollection;

[Bindable]
private var _xlcMyListData:XMLListCollection;

private void onResult(Event:ResultEvent):void {}
var xmlResult:XML = XML (Event.result);
_xlcMyListData = new XMLListCollection (xmlResult.. asset);
}

]]>

Tags: Flex

Similar Questions

  • Problem with &lt; Mx:List &gt;

    Hello

    I had a problem with the list control in flex. I'm trying to implement a list of a few names where the user can select each name by clicking on the item in the list. My question is if the list with the same name then not able to select the items in the list. (The same reversal isn't the case)

    Here is the code:

    ? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "

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

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    [Bindable]

    private var testArray:Array = new Array("s1","s1","s1");

    []] >

    < / fx:Script >

    < mx:List dataProvider = "{testArray}" >

    < / mx:List >

    < / s:Application >

    If the list of the various inputs, then I can roll over each item and select the wanted item. But if the list with the same name and then everything goes wrong.

    Is there anyway to fix this? Help, please

    the s1 should be "s1".

    
    
              
                        
              
              
                        
              
                        
                        
    
    
  • Problem with the list item

    Hi all
    I am facing a problem with the list item in my form. In my form, I have a list item (tmd_stat) with 3 list of values as the item complete, incomplete and null.this lies in the control block.

    I have a block (Detail) which is the database block.status_disp [point List] is one of the .an article on the value of list tmd_stat is filling with different values.

    an alert message (you want to change the status? Yes/No) will appear when we change the list item. If I click YES then the list works and retail block point status_disp is filled with a different list of values. If I click on 'No' the list value will be set to changed value.i.e suppose that I'm changing the Complete incomplete list item, alert message will be displayed. If I click on 'No' the cursor is placed on incomplete but incomplete. How can I place the cursor on the full value.

    Can you please give me the solution.

    Thank you

    Hello

    Save the old value in a variable and then if the user clicks on No. then reassign this value to the list item.

    Kind regards

    Manu.

  • Trying to solve a problem with the list under display properties screensaver!

    When I try to put my screensaver, gout dwon displays a completely blank entry followed by (None) & the list of available screensavers.  Every time I choose (none), it is up to the last installed screen saver.

    An example: the last installed screen saver was ArcSoft Photobook screensaver.
    So, when I select (none) for no screensaver, it is up to the ArcSoft Photobook screensaver.

    This happens each & everytime I have add a new screen saver.
    (None) option always returns to the last screen saver installed.

    There are moments that I need the option screensaver set to (none).

    Any ideas on how to fix this problem would be greatly appreciated.

    Ed

    Not sure as to what I did, however, my problem with the screen saver has been fixed.

    I've been messing around with a number of things that I thought might have caused this problem.  And wala, suddenly the problem existed no more!

  • Problem with ScriptUI lists

    Hi all

    I have a problem with a ScriptUI Photoshop for six days.

    This script defines a table of all the images located in a top folder and its subfolders. Then he opens the first found photo and creates a list of the EXIF of the camera.

    I know how to set the items selected by the user in a table. My problem is not the text that I want to extract, but their index numbers (lines 56 and 62).

    Any idea?

    // Enables double clicking from the Macintosh Finder or Windows Explorer
    #target photoshop
    app.bringToFront();
    
    
    var topFolder = Folder.selectDialog("Select the top folder where your images are : ");
    if (topFolder != null) 
    {
      filesArray = scanFolder(topFolder);
    }
    
    
    // Opens the first photo found
    if (filesArray.length > 0) 
    {
      var docRef = filesArray[0];
      app.open (docRef);
    }
    
    
    // Sets the EXIFs of the camera in an array
    var exifArray = new Array();
    var selectedItems = new Array;
    var exifNumber = app.activeDocument.info.exif.length;
    for (var i = 0; i < exifNumber; i++)
    {
      exifArray[i] =  app.activeDocument.info.exif[i][0];
    }
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    
    
    // User interface
    var w = new Window("dialog");
    var information = w.add('statictext',undefined,'Press the key Ctrl and select the EXIFs you need.'); 
    var columns = w.add("group");
    columns.orientation="row";
    var list1 = new Array();
    var list2 = new Array();
    var halfList = Math.round((exifArray.length)/2);
    for (var i=0;i<halfList;i++) // List 1 (left column)
    {
      list1[i] =  exifArray[i];
    }
    
    
    for (var i=halfList;i<exifNumber;i++) // List 2 (right column)
    {
      list2[i-halfList] =  exifArray[i];
    }
    
    
    var listExif1 = columns.add ("listbox", undefined,list1,{multiselect:true});
    var listExif2 = columns.add ("listbox", undefined,list2,{multiselect:true});
    listExif1.onChange = function()
    {
      selectedItems[selectedItems.length] = listExif1.selection;
    }
    
    
    listExif2.onChange = function()
    {
      selectedItems[selectedItems.length] = listExif2.selection;
    }
    var exeButton = w.add ("button", undefined,"Execution");
    exeButton.onClick = main;
    w.show();
    
    
    // Puts the selected items in an array
    function main()
    {
      for (var i=0;i<selectedItems.length;i++)
      {
      alert(selectedItems[i]);
      w.hide();
      }
    }
    
    
    // Recursive function 
    function scanFolder(folder) {
      var filesArray = [],
      fileList = folder.getFiles(),i, file;
    
      for (i = 0; i < fileList.length; i++) {
      file = fileList[i];
      if (file instanceof Folder) {
      filesArray = filesArray.concat(scanFolder(file));
      }
      else if (file instanceof File && file.name.match(/\.(jpg|)$/i)) {
      filesArray.push(file);
      }
      }
      return filesArray;
    }
    

    Hi Michel,.

    listExif1.selection returns an array of ListItems.  You can get the index using the 'index' property, or get the text using the "text" property

    For example if I put the following code in the listExif1.onChange Manager:

    var selections = "";
    for(var i=0; i < listExif1.selection.length; i++){
         selections += "\nIndex:"+listExif1.selection[i].index+", text: "+listExif1.selection[i].text;
    }
    alert(selections);
    

    I get the following text in the alert after two selections:

    Index: 4, text: Description of the Image

    Index: 7, text: Orientation

    In addition, I don't know exactly what you are trying to accomplish, but as a guess, you want a list of currently selected items when the user press the run button. In this case I consider rather than follow the selections in the onChange for each listbox handler, simply get the current selections at the time when the user presses the run button.

    If the main function might look like this:

    function main()
    {
      selectedItems = listExif1.selection.concat(listExif2.selection)
      for (var i=0;i
    

    If you do not need to follow whenever the user changes the selection in the list box, you need to specify how you add to the selectedItems array.

    Hope that helps.

    Thank you

    Eric

  • IE problem with spry lists when next to Flash element

    My Web site http://www.chamblissgiobbi.com/index.html has a problem with IE 7 & 8. On the pages of images where the Flash is used does not display the menu drop down. I read that the problem is that IE puts Flash on the upper level, regardless of what index Z, so that the drop-down list ends up being behind the flash. I tried a few bugs but still no luck.  Here is my code, and since I'm still new to this it might be something obvious I'm doing wrong. Any help would be greatly appreciated it.

    @charset "UTF-8";

    / * Sections - review: pre-release Spry 1.4 * /.

    / * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

    /*******************************************************************************

    The AVAILABLE INFORMATION: Describes the box model, positioning, the order

    *******************************************************************************/

    / * The outermost container for the menu bar, an area of width auto without margin or padding * /.
    UL. MenuBarHorizontal
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    do-size: 12px;
    cursor: default;
    do-family: Arial, Helvetica, without serif.
    background-color: #FFFFFF;
    Clear: both;
    float: left;
    make-weight: bolder;
    background-position: left Center.
    make-style: normal;
    do-variant: normal;
    color: #999999;
    text-align: center;
    }
    / * Value of the menu bar active with this class, currently the definition of z-index to accommodate IE rendering bugs: http://therealcrisp.xs4all.nl/Meuk/IE-zindexbug.html */
    UL. MenuBarActive
    {
    z-index: 1000;
    do-family: Arial, Helvetica, without serif.
    Color: #666666;
    make-weight: bolder;
    }
    / * Menu item containers, position of children relative to this container and are a fixed width * /.
    UL. MenuBarHorizontal li
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    do-size: 100%;
    position: relative;
    text-align: center;
    cursor: pointer;
    Width: 121px;
    height: auto;
    float: left;
    do-family: Arial, Helvetica, without serif.
    background-image: none;
    Clear: none;
    height: 22px;
    make-style: normal;
    make-weight: bolder;
    do-variant: normal;
    color: #999999;
    }
    / * Submenus should appear under their parent (top: 0) with a higher z-index, but they are first the left side of the screen (-1000em) * /.
    UL. MenuBarHorizontal ul
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    do-size: 100%;
    z index: 1020;
    cursor: default;
    Width: 66px;
    position: absolute;
    left:-1000em;
    background-image: none;
    make-weight: lighter;
    min-height: 22px;
    height: auto;
    Color: #FF0000;
    }
    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we put the car left so it happens on the screen below its parent menu item * /.
    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible
    {
    left: auto;
    do-family: Arial, Helvetica, without serif.
    Width: 7px;
    background-image: url (.. / images/web/navOVER_bkgrnd.jpg);
    list-style-image: none;
    make-weight: lighter;
    min-height: 24 PX.
    height: auto;
    Color: #FF0000;
    background-repeat: repeat-x;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: solid;
    border-left-style: none;
    border-bottom-width: 1px;
    border-bottom-color: #CCCCCC;
    }
    / * Container of menu items are same fixed width parent * /.
    UL. MenuBarHorizontal ul li
    {
    Width: 7th;
    make-weight: bolder;
    height: 24 PX.
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    border-left-width: 0px;
    border-bottom-style: solid;
    border-bottom-color: #CCCCCC;
    border-right-color: #CCCCCC;
    border-bottom-color: #CCCCCC;
    border-left-color: #CCCCCC;
    Color: #FF0000;
    }
    / * Submenus should appear slightly overlapping to the right (95%) and upward (-5%) * /.
    UL. MenuBarHorizontal ul ul
    {
    position: absolute;
    margin:-5% 0 0 95%;
    do-family: Arial, Helvetica, without serif.
    make-weight: lighter;
    Color: #FF0000;
    }
    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we have left to 0, it is on the screen * /.
    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible ul. MenuBarSubmenuVisible
    {
    left: auto;
    top: 0;
    background-image: url (.. / images/web/navOVER_bkgrnd.jpg);
    do-family: Arial, Helvetica, without serif.
    make-weight: lighter;
    height: 26px;
    Width: 7px;
    background-repeat: repeat-x;
    Color: #FF0000;
    }

    /*******************************************************************************

    INFORMATION DESIGN: Describes the set of colors, borders, fonts

    *******************************************************************************/

    / * Submenu containers have borders on all sides * /.
    UL. MenuBarHorizontal ul
    {
    border: 1px solid #CCC;
    do-family: Arial, Helvetica, without serif.
    make-weight: lighter;
    Color: #FF0000;
    }
    / * Menu items are a light grey block with padding and no text decoration * /.
    UL. MenuBarHorizontal a
    {
    display: block;
    cursor: pointer;
    color: #999999;
    text-decoration: none;
    do-family: Arial, Helvetica, without serif.
    do-size: 100%;
    make-weight: bolder;
    background-image: none;
    background-repeat: no-repeat;
    background-color: #FFFFFF;
    Width: 106px;
    padding-top: 0.5em;
    padding-right: 0.75em;
    padding-bottom: 0.5em;
    padding-left: 0.75em;
    }
    / Components menu that have mouse over or focus have a blue background and white text * /.
    UL. MenuBarHorizontal a: hover, ul. MenuBarHorizontal a: focus
    {
    Color: #666666;
    do-family: Arial, Helvetica, without serif.
    make-weight: bolder;
    background-image: url (.. / images/web/navOVER_bkgrnd.jpg);
    background-repeat: repeat-x;
    do-size: 12px;
    border: thin dashed #999999;
    }
    / * Menu items that are opened with the submenus are on MenuBarItemHover with a blue background and white text * /.
    UL. MenuBarHorizontal a.MenuBarItemHover, ul. MenuBarHorizontal a.MenuBarItemSubmenuHover, ul. MenuBarHorizontal a.MenuBarSubmenuVisible
    {
    Color: #666666;
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    make-weight: bolder;
    background-image: url (.. / images/web/navOVER_bkgrnd.jpg);
    background-repeat: repeat-x;
    border: 0px none #CCCCCC;
    }

    /*******************************************************************************

    Submenu INDICATION: styles if there is a submenu in a given category

    *******************************************************************************/

    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.
    SLH MenuBarHorizontal a.MenuBarItemSubmenu
    {
    background-image: none;
    background-repeat: no-repeat;
    background-position: 0 95%;
    border-bottom-color: #CCCCCC;
    border-right-color: #CCCCCC;
    border-bottom-color: #CCCCCC;
    border-left-color: #CCCCCC;
    color: #999999;
    do-family: Arial, Helvetica, without serif.
    make-weight: bolder;
    do-size: 12px;
    }
    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.
    MenuBarHorizontal ul a.MenuBarItemSubmenu SLH
    {
    background-image: url (.. / SpryAssets/SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 50 95%;
    Color: #FF0000;
    }
    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.
    SLH MenuBarHorizontal a.MenuBarItemSubmenuHover
    {
    background-image: url (.. / images/web/navOVER_bkgrnd.jpg);
    background-repeat: repeat-x;
    background-position: 111% 0%;
    border-bottom-width: 0px;
    border-bottom-style: none;
    border-top-width: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    color: #999999;
    }
    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.
    SLH MenuBarHorizontal ul a.MenuBarItemSubmenuHover
    {
    background-image: url (.. / SpryAssets/SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 90%;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #CCCCCC;
    }

    /*******************************************************************************

    BROWSER HACKS: hacks below should not be changed, unless you are an expert

    *******************************************************************************/

    / * HACK FOR IE: to ensure that sub menus show above form controls, underpin us each submenu with an iframe * /.
    SLH MenuBarHorizontal iframe
    {
    position: absolute;
    z index: 1010;
    do-family: Arial, Helvetica, without serif.
    make-weight: bolder;
    color: #999999;
    }
    / * HACK FOR IE: to stabilize the appearance of the menu items. the slash in the float is to keep IE 5.0 analysis * /.
    @media screen, projection
    {
    MenuBarHorizontal li SLH. MenuBarItemIE
    {
    display: inline;
    f\loat: left;
    Background: #FFF;
    }
    }
    #wrapper #nav #MenuBar1 {}
    Clip: rect (auto, auto, auto, auto);
    Color: #FF0000;
    }

    You do not use the latest Spry files

    The latest version of the Adobe Spry 1.6.1 Framework it is the same version that ships with Dreamweaver CS4. If you are using Dreamweaver CS3 (uses Spry 1.4), its wise to upgrade your files to the latest version. This can be easily done by using Updater Spry who can be found here.

    I think that your problem will be solved once you have updated.

    GRAMPS

  • Problem with xml zip code lookup

    Hey guys!  I am also new on the forum because I'm to AS3.  Needless to say, I need a little help here.

    I load an xml file that contains nothing more than a list of zip codes "valid."  Here is a sample of the xml data:

    =================================================

    zipCodes.xml

    =================================================

    <? XML version = "1.0" encoding = "ISO-8859-1? >
    < zip codes >
    < zip > 82930 < / zip >
    < zip > 82931 < / zip >
    < zip > 83114 < / zip >
    < zip > 83201 < / zip >
    < > 83202 zip < / zip >
    < zip > 83203 < / zip >
    < zip > 83204 < / zip >
    < zip > 83205 < / zip >
    < zip > 83206 < / zip >
    < zip > 83209 < / zip >
    < zip > 83210 < / zip >
    < zip > 83211 < / zip >
    < zip > 83212 < / zip >
    < zip > 83213 < / zip >
    < zip > 83214 < / zip >
    < zip > 83215 < / zip >
    < zip > 83217 < / zip >
    .. and so on.

    =================================================

    I want to happen is when a user enters a zip code, I need not to revert to a 'yes' or ' ', based on whether or not the postal code, that their entry is in the xml list.  So far, it only works if the zip they enter is be the last one on the list.  This indicates to me that he is not seeking the entire file, or has it perhaps need to search in a loop, somehow.

    Here is the code that works closest to what I need:

    =================================================

    AS3 code

    =================================================

    Stop();

    var xmlLoader:URLLoader = new URLLoader;
    xmlLoader.addEventListener (Event.COMPLETE, showXML);
    xmlLoader.load (new URLRequest ("zipCodes.xml"));
    var xmlData:XML;

    function showXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    var i: Number;

    for each {(var enfant: XML dans xmlData.*)}
    trace (Child);

    var thisHere = textfield.text;
    If (thisHere == child) {}
    textfieldDisplay.text = "it worked."
    } else {}
    textfieldDisplay.text = "nope."
    }
    }
    }

    =================================================

    I know it's probably waaaaaay hurt, so I ask for help.  Thanks in advance!

    I leave you Brad, I tried to get my suggestion to work for you and for reasons unknown (Murphy's law at work), the approach to the use of 'indexOf()' will not play for me, except in circumstances where I have actually set one of the values in the table to the TextField... so I can't follow your request with a solution to my suggestion.

    If what you have is work for you, then what you could do is initially set the responseField to say 'no!' and if the value is found that he will replace that with 'yes '!

    One thing, you should avoid nesting of functions within other functions.  So I removed that but left the listener in this assignment for the button will not work until the data is loaded.

    function xmlLoaded(evt:Event):void {}
    bttn.addEventListener (MouseEvent.CLICK, bttnFunc);
    }

    function bttnFunc(e:Event):void {}

    responseText.text = "no!"

    xmlEPG = new XML (ulXml.data);
    for each {(var objet: XML dans xmlEPG.*)}
    If (object == inputField.text) {}
    responseText.text = "yes".

    break; exit the loop as soon as is
    }
    }
    }

  • Problem with spark list and XML dataProvider

    I am VERY new to Flex so I'm probably doing something wrong, but I hope it means this will get a quick response.

    I use a list of spark related to a data provider. On the actions of the user, the list will be filtered. The problem I encounter is that when the xml result is one, she will eventually launch an error:

    Has no type constraint: cannot convert mx.utils::ObjectProxy to mx.collections.IList.

    Here is the code to reproduce the problem...

    Main.MXML

    <?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" minWidth="955" minHeight="600">
     <fx:Script>
     <![CDATA[
      
     protected function singleItemButton_clickHandler(event:MouseEvent):void
     {    
      ItemService.send();    
     }
     protected function mutliItemButton_clickHandler(event:MouseEvent):void
     {
      var dataObject:Object = new Object();
      dataObject.multi = "yes";
      ItemService.send( dataObject );
     }
     ]]>
     </fx:Script>
    
     <fx:Declarations>
      <s:HTTPService    
       id="ItemService" 
       url="http://myserver/xml/itemXML.cfm" />   
     </fx:Declarations>
    
     <s:List id="theList" 
      x="60" y="29" width="200" height="251" 
      dataProvider="{ItemService.lastResult.items.item}" labelField="name"/>
    
     <s:Button x="77" y="287" label="Single Item" click="singleItemButton_clickHandler(event)"/>
     <s:Button x="172" y="287" label="Multi-Item" click="mutliItemButton_clickHandler(event)"/>
    
    </s:Application>
    

    itemXML.cfm

    <cfsetting showDebugOutput="No">
    <cfxml variable="result">
     <items>
            <item>
                <name>Item One</name>
            </item>
      <cfif isDefined('url.multi') AND '#url.multi#' EQ 'yes'>
                <cfoutput>
                <item>
                    <name>Item Two</name>
                </item>
              </cfoutput>
            </cfif>
       </items>
    </cfxml>
    <cfoutput>#result#</cfoutput>
    

    http://blogs.Adobe.com/aharui/2007/03/arraycollection_arrays_and_ser.html

  • Problem with XML and different line break styles

    I'm working on a project that is being developed by some developers Flash Builder 4.6 running in Windows and some developers Flash Builder 4.6 running under OSX. We have difficulties due to the difference of newlines between the two environments. In an .as file with line breaks in style UNIX is similar to the following code:

    var XML = < document >

    < item >

    < / item >

    < / document >;

    xml.appendChild (SomeClass.getXML ());

    SomeClass.getXML () is located in a file .as using type line breaks Windows and is similar to the following:

    public function getXML (): XML

    {

    var moreXML:XML = < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement >;

    Return moreXML;

    }

    When the XML object is serialized and written to a file on a Windows computer, it looks like this:

    < document >

    < item >

    < / item >

    < anotherElement >

    < childElement >

    < / childElement >

    < / anotherElement > < / document >

    Line for all outside anotherElement breaks are of the form \r\n. Line breaks it contains are of the form \r\r\n, causing thus the empty lines. I'm guessing that the odd line breaks are the cause of the strange setting indented, as well. None of these problems occur when XML is added to the xml file .as that employees style UNIX line breaks.

    Is it possible to force the Flash Builder to use UNIX on Windows style line breaks? Otherwise, there are relatively specific to this problem solutions? Thank you!

    Section clarified

    I found a setting to force a certain style of line breaks: window-> Preferences-> General-> Workspace (delimiter line of file new text). The XML serializes as planned today.

  • problem with XML within a class

    Ok. It is a set accessor function in one of my classes. It's supposed to load an xml document in a table when I called with the address of the xml document. When I debug I get the picture but there is no data in there.

    I'm sure I'm doing something really stupid is probably very easy to spot... Sorry - I'm new on this!

    Thank you very much!

    (I've included the code and the xml file in the code so you can see what I'm aiming to...)

    In the call from the bottom of the managers, members of the class are out of reach. You can solve this problem in several ways. In the code that you have posted, you can use a local reference to the class (the current object). In other cases, you can use the delegate class.

  • Problems with contact list blackBerry Smartphones

    Hello!

    I have a BlackBerry Curve 9300, and a few days ago, I added a new e-mail account and synced my contacts with the email account list without realizing it. So I deleted the email account, so it would interrupt the synchronization and it didn't. Today, I deleted a contact in the list of e-mail contacts through the computer and since then every time I tried to open this entry app contact frozen. Then, I deleted the entry and now I can't add all other contacts...

    Does anyone know how to fix this? I would really appreciate it!

    Thank you

    Vanessa

    Can you at least temporarily remove and let me know if your address book works again?

    Options > device > Applications

    (or Options > advanced > Applications, if you're on an OS5 device)

  • RoboHelp 11-problem with dropdown lists fonts, size of the police and Zoom

    I have a user guide that was created before I became technical editor. I started using RoboHelp 7 and I do not know if this guide was created in an earlier version of RoboHelp. I myself upgraded to RoboHelp 9 and then to version 11. The file contains 3237 files, 480 records and the size is 64.5 MB. I had someone save me when I was away from the office. She used different fonts on certain topics than what has been used in the rest of the guide. (Arial was used in the guide, using Calibri). I am now updating of the guide and I can't change the font. When my cursor is sitting on the text within a topic title fields and police continue to Flash. Header flashes normal flashing title 1 and police Times New Roman and Arial. When I click on the drop down menu to police, I cannot select anything because the drop guard scrolling, if I try to scroll to the top menu drop-down continues dating back to Time New Roman. And it happens if fast, that I can't click on a selection. I tried you select the font in the topic and do a right click on the mouse select font. I am able to choose the font that I want, but when I click on OK, the police is not displayed in size, it should be. 12 very small poster font size. Anyone know what can cause this problem and what can I do about it? Thanks for any help you can provide.

    What happens if you choose no for the Style sheet associated with?

  • Problem with XML CFX Tag...

    I just installed this in Java CFX tag:

    http://www.Zrinity.com/XML/XMLParser/

    When I run the example.cfm file I get this error:

    xml-parser-problem.jpg

    If for any reason any image showed no big enough see here:

    http://img687.imageshack.us/img687/1310/xmlparserproblem.jpg

    So why is it less can error out as this someone explain that I'm not familiar with this kind of error...

    It seems to me that obj is a WDDX packet, then you will have to make it return a struct before start you address as one.

    --

    Adam

  • Problems with xml coding application package

    Hi, I'm trying with UploadTest package contents - 1_2.jar with a query xml with acutes in the metadata (a, e, i, o, u). Without the acutes, it is works very well but with the acutes shows this error in the xml response:

    " < error xmlns =" http://ns.Adobe.com/adept "data =" E_PACK_DATABASE Http://mydomain.com:8080/packaging/parcel Incorrect string value: '\xE1\xE9\xED\xF1' for column 'title' at line 1 "/ > "

    I've tried UTF-8 or ISO-8859-1 encoding and it fails too.

    I can give you additional information?

    Thank you very much!

    "with the UTF-8 encoding default character."

    Are you sure? What is the content of your my.cnf file?  You want him to have at least the following two lines:

    by default-storage-engine = innodb
    default-character-set = utf8

    (When I delete the default character set and line restart mysql, I get the same exact error message you see.)  When I put again, the error disappears).

  • Problem with XML

    Hello!

    I've seen all examples to the XML data in a datagrid with the resultHandler, but I've not seen anything that uses XML formatted like this. Just trying to fill a single row in a datagrid with information of the < iETL / > and with the help of a TabNavigator fill another row of data with the information from the < docstats / > and so on. Thanks for tips or advice!

    <ietldisplay>
      <iETL>
        <totaldocs></totaldocs>
        <completeddocs></completeddocs>
        <faileddocs></faileddocs>
        <timetocomplete></timetocomplete>
        <timeperdoc></timeperdoc>
        <starttime></starttime>
        <endtime></endtime>
      </iETL>
      <docstats>
        <docsprocessed></docsprocessed>
        <importsuccess></importsuccess>
        <importfailed></importfailed>
        <folderscreated></folderscreated>
        <docsE></docsE>
        <docsT></docsT>
        <docsL></docsL>
      </docstats>
      <systemstats>
        <cpuSrc></cpuSrc>
        <cpuTar></cpuTar>
        <networkSrc></networkSrc>
        <networkTar></networkTar>
        <memorySrc></memorySrc>
        <memoryTar></memoryTar>
        <ioSrc></ioSrc>
        <ioTar></ioTar>
      </systemstats>
    </ietldisplay>
    

    Something like:


           
               
               
               
           

       

Maybe you are looking for