XMLList problem - does not return anything at all

Hey guys,.

I have a real problem here.

I was just trying to learn a few AS3 (in particular - the XML integration)

and got stuck on an absolutely fundamental thing that should not be

no problem with. Something that should work, is not... and I

no idea why... maybe you could enlighten us...

so... Here is the code:

var urlReq:URLRequest = new URLRequest ("galeria.xml");
var loader: URLLoader = new URLLoader (urlReq);

loader.addEventListener (Event.COMPLETE, onLoaded);

function onLoaded(event:Event):void
{
var xml = new XML (event.target.data);
trace (XML);
var list: XMLList = xml.galeria.foto;
trace (Lista);
}

to the best of my knowledge the last trace service

should return something, anything... but this isn't, just an empty line

and in addition - the first draw two lines above returns the content

XML file as is... so - what happens? I've seen tons of tutorials and other things

and according to each of them - the piece of code above should work... but it is not.


of course, the xml file is in the same directory as the fla file. Oh and one thing

-J' uses win7 and the latest version of Flash CS4 if it matters at all.

just for fun - I enclose the xml file and the FLA as well.

Help, please...

Kind regards

Martin

This should be:

var urlReq:URLRequest = new URLRequest ("galeria.xml");
var loader: URLLoader = new URLLoader (urlReq);

loader.addEventListener (Event.COMPLETE, onLoaded);

function onLoaded(event:Event):void
{
var xml = new XML (event.target.data);
trace (XML);
var list: XMLList = xml.foto;
trace (Lista);
}

Tags: Adobe Animate

Similar Questions

  • BitmapField does not display an image bitmap. In fact, it does not display anything at all...

    My problem is simple and fast. I am probably just a stupid mistake, but the BitmapField component does nothing and does not display the bitmap image. I first tried to display a Bitmap using its setBitmap (bitmap Bitmap) method, which did not work. Then I tried to use it's method setBitmap to the Builder, who did nothing at all no more. Then I tried to use setImage using an image encoded if nothing happened again. Yes, both the encoded image and methods of Bitmap.fromBitmap that make new Bitmap objects and EncodedImage POINTENT to real images in my project folder. So what I am doing wrong, I forget to call a method in needed or what? I use Eclipse with the plugin and I use the Blackberry 9550 Simulator.

    First of all, your use setSpace is incorrect. What you are doing here are to define a space around the bitmap image - in this case, the space is bigger than most of the screens, which will ensure that your bitmap image is not actually on the screen. See the description of the API in the javadocs.

    Second, you SHOULD check the return of getBitmapResource(). If it returns NULL, then the resource was not available. What you're doing here can hide a problem.

  • HP 640 c: HP640c cartridge does not return to its original position and the printer will be no print anything

    Printer cartridge does not return to its original position on the right side of the printer after the top cover is opened, with the resume light continues to Flash.

    After restarting the printer, the cartridge moves to the right, but not all the way and remained there when the printer is off.

    The printer will not print anything.

    How can I get the cartridge is positioned correctly?

    Solved the problem... it's a defective color print cartridge, which was the carrage Act strangely.

  • Problems connecting to a projector. Laptop recognizes the new monitor but projector does not display anything.

    I have a Macbook Pro (non-retina display) mid-2012. I have a mini VGA screen that worked throughout the year and all of a sudden, it doesn't seem to work. My computer recognizes the new monitor (screen flickers and flies all content secondary screen) but the projector does not display anything. I tried to reconnect the cable, the cable VGA switch to turn on the projector and turn off, restart my computer and clouds of dust on the connections. Sometimes if I move the connection just that will work, but if I so much as breathe on it or watch funny it stops and I can't get it back.

    Jiggle the cable or adapter is something different, you have a physical adapter or cable problem. Any bit-reversal can help that.

  • MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    Try this restart your iPhone, iPad or iPod touch - Apple Support

    If this does not work, it may be a hardware problem.

    Hope this helps, good luck to you.

  • I am running Xp SP2 Windows does not update anything more and gives me [error number: 0x8024400A] Why can't update Windows again?

    I am running Xp Sp2 and about a month, there are, I tried updating to SP3 (new) and it sends my computer fits in. It keeps just reboot and reboot (SP3 has always done this has my computer since its release). I had to do a cover of the plant to return to the place where he could start normally but now Windows does not update anything. I go to Windows Update, it goes through the motions of checking to see if everything is legitimate, click the express button and gives me "the website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. [Error number: 0x8024400A]   After going through the links provided and find no solution the last link sent me here. So why can't update Windows?

    Hi kriplurr,

    Thank you for keeping us posted about the State of the question.
    I'm glad you are able to run the updates.
     
    You can download the Windows Installer under the following link and check.
    Windows Installer 3.1 v2 (3.1.4000.2435) is available
     
    Or you can download it directly at the following link.
    (a) click on the above link.
    (b) click Download next to WindowsInstaller-KB893803-v2 - x 86-.exe
    (c) install and check.
     
    Hope this information helps.
  • When running Disk Cleanup, it does not remove anything to "Compress Old Files'.

    When I run my disk cleanup, it does not remove anything to "Compress Old Files' during cleaning.» Why not? I also need more disk space to defragment and I deleted all the programs that I don't use, but is not yet give me enough disk space.

    Compress old files not removes all files, compress files that are rarely or seldom used.

    If you get the low disk space, less than 15-20% free space, then you need to collect as much space as possible. However, the amount you get will not be a solution, only a temporary fix - it that.

    To add or remove programs and Windows components in Control Panel, you can uninstall programs as your plue no use - if you have. Not to be far uninstalling programs, you do not recognize, many elements are required for other programs work properly.

    Uninstall or change a program
     http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    You can also check to see how much space is reserved for the restoration of the system; by default, many GBs are usually reserved. Also disable hibernation as the file created can be 2-3 GB, sometimes even more.

    You must also consider moving your files and folders on a removable media, such as DVDs or an external hard drive. Still a great flash drive with 4 + GB of space can help, and their prices are reasonable these days.

    In addition to Disk Cleaner, you can consider running CCleaner. This is a free program that will remove the unnecessary and temporary files temporary Internet files of the most popular and many browsers other caches that can be cleaned safely.

    Since you are using Windows XP, there is a setting in CCleaner to remove the uninstallers of patches; These are the Windows Update files you've downloaded and installed over time and are there if you ever want to uninstall the update. But you can save these CD/DVD and then remove them safely from your system to recover the space. If you have ever removed one of these, you may be able to get beyond 1 GB of space.

    CCleaner
     http://www.Piriform.com/CCleaner

    If you decide to try it, by default, that almost everything in Windows Applications and is verified to be cleaned. You must first review the lists (they are compiled by what you have installed) and check/uncheck accordingly.

    Then click on analyze to see what will be removed (nothing is deleted when you click Analyze); When the scan is finished you can double-click on (or right click and select view detailed results) of the entries in the list to get more information.

    According to the detailed results, you can right click for options such as adding to the list of exclusions if you want the deleted item.

    Once that you are completely comfortable with your selections, you can click the run Cleaner button and then OK to put warn before vacuuming will run.

    CCleaner is also a registry cleaner that I don't recommend that you use - even if you have successfully run a registry cleaner in the past, it is quite possible that the next time will bring serious problems; they are not worth the risk...

    TechRepublic has just published this article about CCleaner:
    5 tips for using Ccleaner for degunk your system

    http://www.TechRepublic.com/blog/five-tips/five-tips-for-using-CCleaner-to-degunk-your-system/767?tag=nl.E101

    CNET editor's review:

    http://download.CNET.com/CCleaner/

    I know that this was not the miracle that you can have hoped, but personally recommended solution is a new, larger hard drive. In the case of desktop computers, an additional hard disk is useful for your personal files, especially for music, movies, photos and more.

    I hope this helps.

  • My laptop does not do anything on the screen

    My laptop does not appear anything just blank black screen when I start my system

    Hello

    If nothing at all, not even a motherboard brand / model or Logo of laptop manufacturer is coming up on the screen when you turn on the power to the laptop, it seems to be a hardware problem.

    If under warranty, contact the manufacturer of your laptop.

    If it is not under warranty, contact a repair shop, local.

    See you soon.

  • Possible viruses have on Vista computer but does not detect anything with current Antivirus software

    When I opened my online banking Web page, I have a popup asking for personal information. Something like that on the note: "we are currently doing a security check, for your safety, please fill out the form below and we thank you for choosing Scotiabank.»

    and then a bunch of fields corresponding to what I have my Bank would normally know... ran several antivirus programs and does not detect anything...

    A ran a few different antivirus but nothing found...
    * original title - online services - Trojan?   Only using Firefox *.

    Hello

    Use this too

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • Printer HP 8600 Ok, but does not print anything

    I have tried everything I can thingk of. My HP8600 (Wi FI) pro works very well, the PC says it's all Ok, no problem, but I cannot print anything (it was working perfectly a few days ago).

    It can scan from the printer to a computer predefined shared directory without any problems, but the PC does not print anything, even not the computer test page and nnthing present in the queue either.

    I ping the printer without problem!

    I have reinstlalled the pilot tiimes much, at no. avail etc...

    problem remains the same, says there is a configuration problem, I'm lost.

    In computers, it says after the installation, but the icon of the image is the kind of an empty rectangle, not the picture of the printer itself.

    Hope you can help. Maybe I'll try to destroy the driver and load it again, it's the last thing I can think.

    Hello

    Since you've already tried to uninstall - reinstall the driver of your printer, we recommend that you use Microsoft solution easy solutions. Please download the troubleshooter to solve problems with the devices and printers , and follow the steps on thislink.

    Let us know how things.

  • HP Probook 4520 s screen does not do anything...

    Hi everyone...

    I have a display problem with my Probook 4520 s. The screen does not show anything, not the bios boot, no windows.

    It starts really normally no other problems at all. I plugged the other external VGA monitor and works very well. But the Symbols is completely disabled does not display anything. Normally, I manage my laptop with great care.

    I chat with HP support team, they suggested


    Please perform a dry boot on the laptop by following the steps below:
    1. disconnect all external devices and adapter unit
    2. remove the battery and press and hold power for 45 seconds. This should completely discharge any residual charge in the Group
    3. restart the computer by using only the AC adapter.

    But no luck.

    Please provide a suggestion/solution.

    Thank you.

    Fassi wrote:

    Hi everyone...

    I have a display problem with my Probook 4520 s. The screen does not show anything, not the bios boot, no windows.

    It starts really normally no other problems at all. I plugged the other external VGA monitor and works very well. But the Symbols is completely disabled does not display anything. Normally, I manage my laptop with great care.

    I chat with HP support team, they suggested


    Please perform a dry boot on the laptop by following the steps below:
    1. disconnect all external devices and adapter unit
    2. remove the battery and press and hold power for 45 seconds. This should completely discharge any residual charge in the Group
    3. restart the computer by using only the AC adapter.

    But no luck.

    Please provide a suggestion/solution.

    Thank you.

    In a dark room, boot up your laptop and shine a flashlight on the LCD screen.

    If you see a very dark Windows desktop, then you have the chance.

    The backlight inverter has failed and must be replaced. If you are a kind of DIY user, then this is a repair at low cost. If this is not the case, have done so in a store could cost @ $75.00.

    If you still don't see anything then the LCD failed. It is a more expensive repair.

    If your laptop is still within its warranty period, it's time to Contact HP warranty repair service.

    Best regards
    ERICO

  • After updating my iPhone 6 (9.3.4) the WiFi signal becomes very low! I did everything, but the problem does not stop! I don't a not update my other devices & their very good WiFi signals. Please help me solve this terrible problem...

    After updating my iPhone 6 (9.3.4) the WiFi signal becomes very low! I did everything, but the problem does not stop! I don't a not update my other devices & their very good WiFi signals. Please help me solve this terrible problem...

    Here's a tip for the user on the problems of Wi - Fi. Suggest from the top and bottom. Maybe one of them will help you.

    (1) restart you device.

    (2) resetting the network settings: settings > general > reset > reset network settings. Join the network again.

    (3) reboot router/Modem: unplug power for 2 minutes and reconnect. Update the Firmware on the router (support Web site of the manufacturer for a new FW check). Also try different bands (2.4 GHz and 5 GHz) and different bandwidths (recommended for 2.4 to 20 MHz bandwidth). Channels 1, 6 or 11 are recommended for 2.4 band.

    (4) change of Google DNS: settings > Wi - Fi > click the network, delete all the numbers under DNS and enter 8.8.8.8 or otherwise 8.8.4.4

    (5) disable the prioritization of device on the router if this feature is available. Also turn off all apps to VPN and retest the Wi - Fi.

    (6) determine if other wireless network devices work well (other iOS devices, Mac, PC).

    (7) try the device on another network, i.e., neighbors, the public coffee house, etc.

    (8) backup and restore the device using iTunes. Try to restore as New first and test it. If ok try to restore the backup (the backup may be corrupted).

    https://support.Apple.com/en-us/HT201252

    (9) go to the Apple store for the evaluation of the material. The Wi - Fi chip or the antenna could be faulty.

    Council: https://discussions.apple.com/docs/DOC-9892

  • When I return from the page of google search for a link then button does not return return

    When I return from the page of google search for a link, then button does not return back. Instead, the same page refills. I need to go back click back button twice or even more. How to fix? I cheked it it another browser and there is no such behavior. It seems completele Firefox problem.

    the problem was resolved after remooving extenshion «user agent overrider»

  • Qosmio G50 - 115 - DVD drive does not burn anything

    Recently tried to do a recovery plus two discs but the player refused to burn but come with 0E01B5-26-2AO444D9 error Code.
    In fact, it does not burn anything but will play.

    Hello

    Have you tried different CDs and DVDs from different manufacturers?
    You must proceed as different disks from different manufacturers are not 100% compatible.

    I had similar problems, burning data to CDs or the different DVD
    Then I tested the drives from different manufacturers, and that was the key!
    Everything worked properly!

    I made good experiences with disc Verbatim and TDK R (CD and DVD)

    I think you should also test some discs

Maybe you are looking for

  • Restoration of El Capitan

    I can't synchronize files between my devices iCloud. I chose iCloud drive on all but the files just stick after attempting to download. Files and I tried iCloud.com appear ok. That's when using iCloud Drive "save under" on my mbp to iMac that files d

  • Leaving the opening

    It is not that I really want, but I start looking for a new photo application. Can anyone recommend a photo app to replace the opening? With the opening being more supported, I would find a new application that can do some of the same things to me li

  • HP Pavilion DV6 1130ei

    Hello I have a HP Pavilion DV6 1130ei laptop. I have grown rather attached to it and don't really want to let go. How update the options in terms of cpu, ram and hdd (ssd preference) I don't have? I put it to update to Windows 8 64-bit. Compared to m

  • Windows 7 Home Premium - default printer disappears and need to reinstall

    I use Windows 7 HomePremium and have a HP OfficeJet Pro 8500.  Regularly, sometimes daily, the printer disappears from devices and printers.  Only the printer devices disappears.  The fax device is still there.  I have to completely reinstall the pri

  • Firma digital

    Instaled adober reader dc en UN PORTATIL nuevo, y cuando pretendo firmar digital a todo el proceso works hasta el documento final; the contrasena poner despues no appears the firma in el documento.Lo hago en el antiguo ordenador y works perfectly, mi