Switch from a simple Xml call to an rpc-Http call...

Hello

I need to go through a simple call from Xml:

<mx:XML id="urlsGeneral" source="http://www.mySite.com//.../AFS.xml"/>

for an rpc-Http call which updates the display if Xml is changed at any time.

I forgot to mention the most important and yet very simple point: I need it only to display in a title, etc. and NOT a datagrid or good example below.

title = "{urlsGeneral.urlGeneral. (()_@name==0).age}

I tried a lot today, but just can't get it right like id = "urlsGeneral" is always the problem.

Any help would be appreciated! Thanks in advance. cordially aktell2007

< urlsGeneral >

< urlGeneral >

< name > Jim < / name >

< 32 > < / age >

< / urlGeneral >

< urlGeneral >

< name > Jim < / name >

< 32 > < / age >

< / urlGeneral >

< / urlsGeneral >

Another call:


< mx:Script >


<! [CDATA]







Import mx.collections.ArrayCollection;



Import mx.rpc.events.ResultEvent;







public var myData:ArrayCollection;







protected function myHttpService_resultHandler(event:ResultEvent):void {}




myData = event.result.urlsGeneral.urlGeneral;



}


[]] >

< / mx:Script >


< mx:HTTPService


ID = "myHttpService".


url = » http://www.mysite.com//.../AFS.XML "


result = "myHttpService_resultHandler (Event)" / >

Best I wanted something like this works:


< mx:Script >


<! [CDATA]







Import mx.rpc.events.FaultEvent;



Import mx.managers.CursorManager;



Import mx.controls.Alert;







Import mx.rpc.events.ResultEvent;


Import mx.rpc.xml.SimpleXMLDecoder;






Do not here it is already used in .swc!


/ * import mx.rpc.http.HTTPService; */






private var myHTTP:HTTPService;






private function initConfigCall (): void {}








myHTTP = new HTTPService();








myHTTP.url = "com/assets/data/changesAppAIRPIOne001.xml";








myHTTP.send ();



myHTTP.resultFormat = "xml";



myHTTP.addEventListener (ResultEvent.RESULT, resultHandler);



myHTTP.addEventListener (FaultEvent.FAULT, faultHandler);








CursorManager.setBusyCursor ();



}






private void resultHandler(evt:ResultEvent):void {}








var xmlStr:String = evt.result.toString ();



var xmlDoc:XMLDocument = new XMLDocument (xmlStr);



var decoder: SimpleXMLDecoder = new SimpleXMLDecoder (true);



var resultObj:Object = decoder.decodeXML (xmlDoc);








Removed [0] on single node!



appUpdateAvl.text = resultObj.application.configApp.appNewUpDate;



appLastChanged.text = resultObj.application.configApp.appLastChanged;



appChangedSections.text = resultObj.application.configApp.appChangedSections;








CursorManager.removeBusyCursor ();








myHTTP.disconnect ();


}


private void faultHandler (event:mx.rpc.events.FaultEvent): void {}








var faultInfo:String = "details of the fault:"+ event.fault.faultDetail+"\n\n"; "



"faultInfo += ' Fault faultString: '+ event.fault.faultString+"\n\n;



mx.controls.Alert.show (faultInfo, "lack of information");








var eventInfo:String = "event target:"+ event.target+"\n\n"; "



' type of event eventInfo += ":"+ event.type+"\n\n;



mx.controls.Alert.show (eventInfo, "Event information");








CursorManager.removeBusyCursor ();








myHTTP.disconnect ();


}

[]] >
< / mx:Script >

Hi again,

These days there are more questions than answers on a forum, and very rarely someone sharing the answer if they luck out so here is my answer to the above question is

Switch from a simple Xml call to an rpc-Http call...

I got it all along as a commend noted: / / deleted [0] single knot!

Then, instead of title = "{urlsGeneral.urlGeneral. (()_@name==0).age} it would be now title = "{resultObj. }" {urlsGeneral.urlGeneral. [0] .age} and now it works perfectly well. I hope one or the other of you can use the code and the answer! best regards aktell2007

Tags: Flex

Similar Questions

  • How to I switch from a simple mask adjustments when there are multiple masks of the same kind?

    If I have several brush masks how can I switch one of them on and outside; for example just the active PIN.  I know I can disable all masks of brush at the same time, but I can not just know how to turn on/off individually the. Thank you!

    I think I know what you mean but if you do not reboot it reset ALL the brushes instead of just one.  The OP just wants to spend a brush.

    To switch to a brush.

    Click on the brush you want to switch.

    Double-click on the word ' effect: "int the upper right of the slider box, this resets the sliders to zero

    To reverse, you can click Cancel

    To see the difference in many times, simply click back in the history to see the changes before the cancellation.

  • Problems switching from Palm to Outlook Dekstop

    Hello

    I'm doing the same thing - I always Sync my Tungsten E use of Palm Desktop on my PC (to work) and my Mac (at home).
    but now I want to sync with my Outlook 2007 calendar to work.  I have both used the CD that came with my Tungsten and downloaded a new copy of the Palm
    Desktop 4.1.4 but never at any point in the installation process that I am asked to choose to sync with Outlook or Palm Desktop, so the tungsten continuous
    for synchronization with Palm Desktop.

    I downloaded and installed the Updater of pipes Palm Outlook 2007 I saw recommended to that effect in another thread,
    Although I looked in my HD and the folder that contains it is empty.  Also, if I go to the start menu / programs, I don't have Palm Desktop, nothing that comes
    said 'Palm tree' or 'PalmOne', so I guess that the Conduit Updater has not been installed properly?  I remember that once the installation
    finished, a window is come to the top that said I might need to restart, and that if I restart it, the update automatically open when you restart and ask me to
    continue.  He never told me I should certainly restarts, and whether or not I did, nothing happened after that.

    Any ideas?

    I am running Windows XP with Office 2007.

    Thank you

    Ellen

    -----------------

    Re: HELP - switch from Palm to Outlook

    2 choices

    1. launch the cd supplied with your device and choose
    change the synchronization method, and then click Synchronize with Microsoft Outlook

    2. go to start / all programs/palm or palm0ne/pim conduit
    synchronization/synchronization with Outlook on your computer

    If you use the software from the CD there should be a mixer included thereon. so even if you were not invited to choose between outlook and palm desktop, you can always on after installation if in case you want to. However, im still pretty confused to hear that he has not asked allows you to choose between the two ducts Manager. in any case, here's how to make the switch.

    1. After installing palm desktop cd for tungsten e

    2 browse the cd by the menu/button to boot your PC right click and select Explorer

    3. Locate the CD-ROM drive in your PC when the CD is inserted

    4. open the CD and find the folder called PostInstall

    5. inside of this folder, you can see 4 folders in which 3 of them are .exe files (Blender of togo, versamail and prospects of the docs)

    6. choose selector Outlook by double clicking it

    If you encounter an error when you try to go, your installation is not complete and it must remove. but otherwise, just follow the instructions on the screen. You can also switch to 4.2 where you can see this mixer in palm under Programs folder but try you this option first if you do not upload to the web.

    Message is about: Treo 680 (unlocked GSM)

  • How can I switch from 9.3 to 10 iOS iOS? I m getting an error when I install it

    How can I switch from 9.3 to 10 iOS iOS? I m getting an error when I install it

    Kareems, how are you trying to install? Live? Or from iTunes. You can connect your phone to your computer and launch iTunes and have iTunes download and update the phone.

  • If I switched from IE to Mozilla Firefox should I keep IE installed on my computer?

    I switched from Internet Explorer to Mozilla Firefox browsers. I need to uninstall unnecessary programs to increase space on my computer. I can uninstall IE without losing important documents? All my favorites seem to have passed on, however I'm not sure because it has not been done manually. Is this possible?

    Hello, DESA, you seem to be windows xp ad - internet explore is integrated deeply into the operating system, so it is not possible to remove it at all (this option was only added by microsoft in later versions of windows).

  • I a s 6 more and when using the phone, if my face touches the screen it clicks on the logout button and the phone hangs up the call. Is it possible to prevent this without holding the phone away from my face when calling?

    I a s 6 more and when using the phone, if my face touches the screen it clicks on the logout button and the phone hangs up the call. Is it possible to prevent this without holding the phone away from my face when calling?

    iPhones have a proximity sensor which is supposed to automatically turn off the screen when you hold it in your face. If this is not the case you can take the phone and have it checked.

  • Can satellite M40x-183 - I switch from XP to Windows 7?

    Is it possible to switch from Windows XP to Windows 7 on my Toshiba Satellite M40X-183?

    Hello

    Theoretically, you can do everything, but you know how old your laptop is? In my opinion Windows 7 isn't the first choice for good old classic. It of designed for Windows XP and you should be satisfied with this OS.

    In my opinion, Windows XP is the best choice for old books, that they are not designed for Windows 7.

  • Sony Vaio VPCY2190X. Can I switch from Windows 7 to Windows 10 factory?

    Sony Vaio VPCY2190X. Can I switch from Windows 7 to Windows 10 factory? Page Web de Sony info is not clear to me on the issue of whether I can do it again.

    On the right side, he is saying

    DO NOT UPGRADE YET.

    To ensure that your VAIO PC works with Windows 10, it is strongly recommended that you wait to upgrade your PC until the drivers are ready.

  • Can satellite P300 - I switch from 32 to 64-bit Windows?

    Hello
    Soon I'll receive the CD with Windows 7 and the drivers for my laptop (P300-20 b). I warned for Toshiba Windows 7 Upgrade Option Program. And currently I have Vista 32 bit.
    Can I switch to Windows 7 64 bit of Vista 32? And another question, what is the optimal amount of RAM for 64-bit system? Currently I have 3 GB.

    Thanks for the reply!
    Kind regards
    Gregory.

    Hello Gregory

    Unfortunately, you can't switch from 32 to 64 bits. If you want to use the 64-bit operating system, you must do any new installation. Install Vista 64-bit using the recovery disc or HARD drive recovery option.
    After doing this update install Win7.

    Optimal RAM? You can use it with current 3 GB, but if possible you can upgrade RAM and more powerful laptop. ;)
    Laptop specifications that your PSPCCE can be upgraded up to 8 GB of RAM. Not bad.

  • Help! Switching from my PC I have this strange message

    Switching from my PC I have this strange message: "this copy of Windows is not activated. In order to hold an appropriate license this copy must be enabled '...

    I'm a little dubious as I have had this PC with Windows XP for almost eternity.  Don't remember exactly when I first bought. -So far - I've been perfectly happy with it and of course that all this activation of the license would have been made all these years.

    Over the years there has been many installs new add on hardware like printer, scan again, new monitor etc... also install dropbox, Skype, I-tune and it still all works OK...

    So why do I on my desk this permanent message telling me to activate within 3 days. In fact one day have left the warning that I was missing 2 days already...

    Also, the logo of Microsoft isn't one I recognize... It is a stylized Star 5 points... Is - this all true? Can I go ahead and follow the instructions...?

    Could someone re sure? If poss before 21:00 UK time tonight Sunday, March 31, 2013.

    Thank you all

    Hello

    Did you buy windows with the computer (ie: you have a Microsoft license on the computer label)

    Have you tried to do the online activation?

  • Can I switch from Windows XP to Windows 7 by installing Windows 7 without uninstalling XP?

    Original title: improvement of the operating system.

    Can I switch from Windows XP to Windows 7 by installing Windows 7 without uninstalling XP?

    Yes, and in fact you must do in order to qualify for the upgrade price.  You must realize, however, this update of XP to 7 involves a "custom installation" - that is, you must save your data first (on external support) and to reinstall all your applications after that Win 7 is running.

    Under certain circumstances, installing Windows 7 might create a windows.old file, but it's not clear to me what is stored in memory in the transition from XP to 7. you will certainly be able to run one of your older applications without having to reinstall them.  See, for example, http://www.chron.com/business/silverman/article/Going-from-Windows-XP-to-Windows-7-It-s-not-1609463.php

  • Can I switch from XP Media Center 2002 SP3 to Vista? My system is 32-bit

    Can I switch from XP Media Center 2002 SP3 to Vista? My system is the 32-bit dual core Intel 6300 to 1.86 Ghz processor.

    1.5 Ghz 3.2 GB of Ram

    Hello

    Microsoft sells more than Vista.

    Microsoft now sells Windows 7.

    Before purchasing Windows 7, follow these steps:

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    "Windows 7 Compatibility Center" for software and hardware:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Windows 7 upgrade paths:

    http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx

    «Installation and reinstallation of Windows 7»

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    And the Microsoft Store where you can get an idea of the price of Windows 7:

    http://www.microsoftstore.com/store/msstore/en_US/list/CategoryID.50726100

    See you soon.

  • I think switching from Windows XP to Windows 7, but it seems complicated. Is this a good idea?

    I want to get rid of my security Computer Associates software. It overload my system.

    I believe that a combination of Windows 7 and Microsoft Security Essentials and Web of Trust would do a good job.

    Switching from XP to Windows 7 seems complicated. Is this a good idea?

    I would appreciate any advice. I am a former novice

    Thank you

    Get rid of CA security software and do general maintenance on your system would probably go a long way to improve your computing experience.  See help! My computer is slow!

    Unless you plan to buy a new computer with Windows 7 pre-installed, make sure that your hardware is compatible with Windows 7 (for the most part, this means that Windows 7 drivers are available; problems are more likely to occur with older laptops).  Download and run the Windows 7 Upgrade Advisor.

  • Can what Windows operating system I switch from Windodw 2000 Advance Server?

    Need to upgrade the operating system

    Can what Windows operating system I switch from Windodw 2000 Advance Server running an AMD Athlon 64 processor?

    Hi SCB99,

    You can read the following article.

    Paths supported for upgrading to Windows Server 2003 or to Windows Small Business Server 2003

    For more information you can contact Microsoft Support.

    How and when to contact Microsoft and support Customer Service

  • How to switch from windows 7 to windows 8 without a product key.

    How to switch from windows 7 to windows 8 without any product key

    Hello

    Sorry, you have problems with the upgrade to Windows 8 or want you that Windows 8 free? You can't get Windows 8 free. If you try to install Windows 8 via disk then please see this page:

    http://answers.Microsoft.com/en-us/Windows/wiki/windows8_1-windows_install/download-a-bootable-Windows-81-disc/17207153-902f-4b94-bf95-85ab70ca7064

    If your current Windows 7 PC is readable for 10 Windows PC; You can upgrade your PC for free, no hidden prices and this is a full version.

    If your version of Windows 7 Starter, Home Basic or Home Premium then your PC is promoted to 10 Windows Home.

    If your version of Windows 7 Professional or ultimate edition, so your PC is upgraded to Windows Pro 10.

    If you have any more concerns with the upgrade, see

    http://www.Microsoft.com/en-us/Windows/features

    Hope that the information was useful. If you need help more, feel free to contact me or anyone!

    RT

Maybe you are looking for

  • Include the version number on the Web site

    To check if the download site is the most recent version (it is often later than somw download sites) there is no version number to see before downloading. Iut can't appear on the download page (other languages) as is the case with Thunderbird

  • Satellite Pro L20 does not illuminate

    Hope you can help. We have a 5 years satellite pro L20 who never gave a lot of days. It runs from Win XP, had an upgrade (crucial) memory to 2 GB and a new battery 4 years ago 4 years ago. 2 days ago, he simply left with the same noise you get when f

  • Equium A80: PS2/USB adapter does not work correctly

    I have a satellite A80. I bought an adapter to allow me to use a graphics tablet on the usb ports. The adapter gives a ps2 keyboard and mouse ps2. The adptor is recognized by windows and displayed in the list of hardware. It also shows the mouse conn

  • DM4-2165dx: upgrade Memory (RAM)

    I think the upgrade from 2x3gb (6 GB of total Ram) that came with my laptop when I bought it. The max that can take the laptop's 8 GB of Ram, so I was wondering what I need to get some a rendering for the dm4-2165dx? Or I can buy a regular 2 x 4 GB (

  • DLL ComCryptographer

    Windows Server 2008 R2 - I see a ton of errors in Event Viewer about "ComCryptographer"DLL ". A mistake every few seconds. The only detail I see in the general tab are: Invalid length for a Base-64 character array.at System.Convert.FromBase64String (