XMLList problem - doesn't return anything at all

Hey guys,
I'm having a real problem here.
I was just trying to learn some AS3 (particularly - XML integration)
and got stuck on an absolutely basic thing which there shouldn't be
any problems with. Something that should work, doesn't ... and I have
no idea why ... maybe you could shed some light ...
so ... here's 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:XML = new XML(event.target.data);
    trace(xml);
    var lista:XMLList = xml.galeria.foto;
    trace(lista);
to best of my knowledge the last trace in the function
should return something, anything ... but it doesn't, just a blank line
and furthermore - the first trace two lines above returns the contents
of the XML file as is ... so - what's going on? I've seen tons of tutorials and stuff
and according to all of them - the above piece of code should work ... but it doesn't.
of course the xml file is in the same directory as the fla file. oh, and one more thing
- I'm using win7 and the latest version of Flash CS4 if that matters at all.
just for the sake of it - I'm attaching the xml file and the fla file as well.
please, help ...
Regards,
Martin

that 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:XML = new XML(event.target.data);
    trace(xml);
    var lista:XMLList = xml.foto;
    trace(lista);

Similar Messages

  • Hi, my computer is not detecting any display, i'd been having this problem since i connected my computer to a tv, the tv burned up, and after that my port doesn't detect anything at all?? Was that the problem can I fix it.I have the lion 10.7.5.

    Hi, my computer is not detecting any display, i'd been having this problem since i connected my computer to a tv, the tv burned up, and after that my port doesn't detect anything at all?? Was that the problem can I fix it.I have the lion 10.7.5. Dont know if I changed settings or something.

    Hello,
    It isn't the fw in Network you want o use or look at, that's for something completely different.
    My first suspect is the Power Adapter on the LaCie has gone.
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
    Reset the Firewire bus
    If your Firewire or USB isn't recognizing any device.  A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
    1. Shut the machine down.
    2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
    3. leave it for 10 minutes.
    4. Connect back up and reboot.
    http://www.macmaps.com/firewirebug2.html

  • Point cloud clip doesn't return anything in the result table

    Hi experts,
    I am wondering why my point cloud clipping function does not return anything into the result table.
    The boundaries of my point cloud are:
    min long 316,500
    max long 316,643.21
    min lat 234,000
    max lat 234,105.38
    min elevation -4.79
    max elevation 30.87
    For the ind_dimquery I have tried different geometry types, like 3003 and 3008, usually with the elem_info_array (1,1007,3)
    like in the following example:
    SQL> declare
    2 inp sdo_pc;
    3 begin
    4 select pc into inp from base109 where rownum=1;
    5 insert into restst
    6 select * from table(sdo_pc_pkg.clip_pc(
    7 inp,
    8 sdo_geometry(3003, 29903, null,
    9 mdsys.sdo_elem_info_array(1,1007,3),
    10 mdsys.sdo_ordinate_array(316510, 234080, -3, 316550, 234100, 2)),
    11 null, null, null, null));
    12 end;
    13 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.20
    SQL> select count(*) from restst;
    COUNT(*)
    0
    What am I doing wrong? This should be a query window within the right area and I know that at least one point lies within this defined window.
    Any help is greatly appreciated!!!!!
    Cheers,
    F.

    yes exactly, I have tried all of this already.
    For a further example, there is a point in:
    POINTS(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    R G B I POINT_ID
    SDO_GEOMETRY(3001, 29903, SDO_POINT_TYPE(316503.49, 234089.46, 3.32), NULL, NULL
    71 91 78 70 55
    so theoretically, I'd feel that at the VERY LEAST this point should be in the 3008geometry and 1007 elem array for the coordinates for xmin, y min, zmin, xmax, ymax, zmax for
    316500, 234080, 2, 316510, 234100, 5
    but...nothing. Nothing in the result table.
    For full query:
    SQL> declare
    2 inp sdo_pc;
    3 begin
    4 select pc into inp from base109 where rownum=1;
    5 insert into restst
    6 select * from table(sdo_pc_pkg.clip_pc(
    7 inp,
    8 sdo_geometry(3008, 29903, null,
    9 mdsys.sdo_elem_info_array(1,1007,3),
    10 mdsys.sdo_ordinate_array(316500, 234080, 2, 316510, 234100, 5)),
    11 null, null, null, null));
    12 end;
    13 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.13
    SQL> select count(*) from restst;
    COUNT(*)
    0

  • Resultset doesn't return anything

    Hi, all
    I'm using oracle9i Jdeveloper 9.0.3 preview version. When I ran a sql statement, it didn't return anything to my resultset. I wonder if you guys have any idea what's going on here. I tried the same sql statement in SQL Plus, it was working and returned 4 rows of record. I copy some source code from my severlet here. hope you can help me to resolve the issue.
    package RCVCP;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.Vector;
    import java.sql.*;
    import java.text.SimpleDateFormat;
    public class EnableDisableRules extends HttpServlet
    private static String UrlE2;
    * Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    UrlE2 = "jdbc:oracle:thin:@ASDE2DEVDB01:1521:EPID";
    try {
                   Class.forName("oracle.jdbc.driver.OracleDriver");
         } catch(java.lang.ClassNotFoundException e) {
              System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doPost(request, response);
    * Process the HTTP Post request
    public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    Vector APPLYVct = new Vector(5);
    Vector FILETER_NAMEVct = new Vector(5);
    Vector DESCRIPTIONVct = new Vector(5);
    String query;
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    int Rowindex=0;
    try {
    //checking the connection
    con = DriverManager.getConnection(...) // I skipped here:)
    if (con != null) {
    stmt = con.createStatement();
    rs = stmt.executeQuery("select APPLY, FILTER_NAME, DESCRIPTION from RCVCP_FILTER_RULES");
    The program went wrong from rs statement right above.
    Thanks.

    the only thing I can think of is that
    the account you logged on with is different fro
    the account you tested with in sql*plus.
    to eliminate that possiblilty prefix
    the table name with the schema name
    "select * from SCOTT.DEPT"

  • Have a look at my RFC call, it doesn't return anything

    Hi all,
    In my project, I create a RFC Model named 'SCO' which will call bapi function 'BAPI_SALESORDER_CREATEFROMDAT1', if successfully a SALEDOCUMENT should return.
    below is the code in my custom controller
      public void wdDoInit()
        //@@begin wdDoInit()
              Bapi_Salesorder_Createfromdat1_Input input =
                   new Bapi_Salesorder_Createfromdat1_Input();
              wdContext.nodeCSOC_Input().bind(input);
              input.setOrder_Header_In(new Bapisdhead());
              input.addOrder_Items_In(new Bapiitemin());
              input.addOrder_Partners(new Bapipartnr());
        //@@end
    public void executeBapi( )
        //@@begin executeBapi()
              try {
                   wdContext.currentCSOC_InputElement().modelObject().execute();
              } catch (WDDynamicRFCExecuteException e) {
                   // TODO Auto-generated catch block
                   System.err.println(e.getMessage());
                   e.printStackTrace();
              } finally {
    //               wdContext.nodeCSOC_Input().invalidate();
        //@@end
    In my view(TestSOCView) I mapped a node named SOC_Input has the structure
    Order_Header_In
    -Distr_Chan
    -Division
    -Doc_Type
    -Sales_Org
    Order_Partnr_In
    -Partn_Numb
    -Partn_Role
    Order_Items_In
    -Material
    -Req_Qty
    Output
    -Return
    --Message
    --Type
    -Salesdocument
    I have a very simple view which has only one button and two textview (one bind to Output-Salesdocument, another to Output-Return-Message)
    In my action method, I have the code
      public void onActionCreateSO(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCreateSO(ServerEvent)
              IOrder_Header_InElement newHeader =
                   wdContext.currentOrder_Header_InElement();
              IOrder_PartnersElement newPartner =
                   wdContext.createOrder_PartnersElement(new Bapipartnr());
              IOrder_Items_InElement newItem =
                   wdContext.createOrder_Items_InElement(new Bapiitemin());
              newHeader.setSales_Org("1000");
              newHeader.setDoc_Type("OR");
              newHeader.setDistr_Chan("10");
              newHeader.setDivision("00");
    //          wdContext.nodeOrder_Header_In().addElement(newHeader);
              newPartner.setPartn_Role("SP");
              newPartner.setPartn_Numb("1000");
              wdContext.nodeOrder_Partners().addElement(newPartner);
              newItem.setMaterial("TEST2");
              newItem.setReq_Qty("00001000");
              wdContext.nodeOrder_Items_In().addElement(newItem);
              wdThis.wdGetSOCControllerController().executeBapi();
        //@@end
    This is all my implementation, I dont know why there's always nothing retrieved, even no Return Message.
    I of course have the right JCO connection, if not, this view will not display.
    My wonder is my initilization for two table maybe wrong:
    input.addOrder_Items_In(new Bapiitemin());
    input.addOrder_Partners(new Bapipartnr());
    because I know there's a method
    set<Node>(AbstractList)
    but this is not java.util.AbstractList, I dont know how to initiate this list.
    And if I follow the turtorial which will enable the line after execution
    wdContext.nodeCSOC_Input().invalidate();
    This will make my application run only one time, the second time a NullPointerException will be thrown. So there's also a question: what's the usage of this line?
    Any one have a look at my problem? Thanks in advance
    And at last,
    Happy New Year to everyone.
    Wish you all a nice new year.
    best regards,
    William

    Hello William,
    Try using the following code:
    public void wdDoInit()
    //@@begin wdDoInit()
        Bapi_Salesorder_Createfromdat1_Input input =
        new Bapi_Salesorder_Createfromdat1_Input();
    //@@end
    public void onActionCreateSO(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionCreateSO(ServerEvent)
    <b>/*** Instantiate the Structure ***/
    /// <Name of the Structure> = <Order_Header_In></b>   Order_Header_In newHeader =
        new Order_Header_In();
        newHeader.setSales_Org("1000");
        newHeader.setDoc_Type("OR");
        newHeader.setDistr_Chan("10");
        newHeader.setDivision("00");
        wdContext.currentBapi_Salesorder_Createfromdat1_Input().setOrder_Header_In(newHeader);
    <b>*** Instantiate the Structure ***/
    /// <Name of the Structure> = <Order_Partners></b>    Order_Partners newPartner = new Order_Partners();
        newPartner.setPartn_Role("SP");
        newPartner.setPartn_Numb("1000");
        wdContext.currentBapi_Salesorder_Createfromdat1_Input().modelObject().addOrder_Partners(newPartner);
    <b>*** Instantiate the Structure ***/
    /// <Name of the Structure> = <Order_Items_In></b>    Order_Items_In newItem = new Order_Items_In();
        newItem.setMaterial("TEST2");
        newItem.setReq_Qty("00001000");
                 wdContext.currentBapi_Salesorder_Createfromdat1_Input().modelObject().addOrder_Items_In(newItem);
        wdThis.wdGetSOCControllerController().executeBapi();
    //@@end
    This will work.
    <b>
    Please reward appropriate points</b>
    Bala

  • App Store 'Search' doesn't return anything

    Using an iPad 2 updated to iOS6 when accessing the App 'App Store' on entering a valid question such as YouTube into 'Search' a list is produced.
    Clicking on any of the options offered returns a white screen with just 'Cancel' in the top left and the 'Search' (including entered search data) in the top right.
    I have tried restarting the App, signing out and back into iStore, doing a hard reset (full power down and back up), have cleared and re entered wifi connection information (even though all other aspects on the iPad 2 fully function). I cleared Safari Cookies and History, I've even reset the wifi router all to no avail.
    With in the App, 'Featured', Purchased', Updates, etc. function normally.
    Anyone have other ideas? It's as if Apple is blocking any returned search information.

    I'm having a very similar (or maybe the same) problem. Let me explain in detail and maybe someone, somewhere can help me.
    1.) I created and exported to iTunes a podcast called Studio 60Cast (for the new show Studio 60) using GarageBand.
    2.) I created and published a website with iWeb, and published the first and so far only episode of Studio 60Cast to that site.
    3.) I submitted the RSS feed (which, yes, worked when I tested it), and it only shows up on the store when I search using the exact words: Studio 60Cast. It does not come up when I simply search for Studio 60 (meaning, in podcasts, a bunch of one's that AREN'T MINE show up).
    4.) What might be the problem is that the author is listed as "unknown." Can anyone give me a step-by-step set of instructions on how to fix this?

  • My iMovie isn't working it will not let me open a project or go anywhere other then the opening screen which doesn't show anything at all. what can i do

    Please help me

    If not this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • My search bar (FF 22) has suddenly become inoperable; hitting enter doesn't do anything (am only getting to sites via bookmarks and links now)

    I'm a long-time FF user. Am using version 22 now (which appears to have updated from 18 by itself though I had it set to ask me before updating - but 22 2 worked fine for me once I'd solved the problem of screen being so large it hid my upper menu and tabs). Now suddenly, just in the last week, entering a (valid) url in the search bar and hitting enter doesn't 'do' anything. No search capability at all because hitting enter doesn't cause FF to take any notice of me putting in a URL for a site I want to go to (I use the same sites over and over so not just some new site acting up).
    Not my keyboard or mouse malfunctioning; they function as usual in other programs I use constantly - email, inventory database - and no updates on either program, in Word, Excel, NotePad, my photo program, whatever. Security Essentials updated about a week ago but I can't see inside it to see if it changed anything. Am an XP Pro user and keep it updated (till next year, anyway!). Keyboard is an Elite Real Force, mouse Evoluent (corded). Have used both for a couple of years so not new to me.
    Only way I can use FF 22 in the last few days to get to 'any' site, including my own, is to either go from the sites pinned to my opening screen or from my bookmarks. I tried unpinning some of the sites on my opening screen and then typing in their URL and hitting enter but that didn't change anything - the search bar is still inoperable and hitting 'enter' doesn't do anything at all.
    So why did my search bar quit working? Is there a fix?

    Hi aaabooks, you wrote:
    <blockquote>I did the Help &gt; Troubleshooting Information &gt; "Show Folder" button bit you said to do but is there something I'm supposed to do re the 'switch back to FF' you speak of? Like click on 'Reset FireFox' to Default State first?</blockquote>
    No, do not use the Reset feature. When you click "Show Folder" Windows opens a Windows Explorer window with your personal settings files listed. I want you to delete a file in that folder, but first, I want Firefox to be closed. When I said to switch back to Firefox and exit, I meant to make Firefox the active window, then use File>Exit or Firefox>Exit to close the application.

  • My downloads-window doesn't function properly anymore, often it just stays blank, and the one in my taskbar doesn't turn green at all. Can you tell me how to fi

    My downloads-window doesn't function properly anymore. It just stays white whenever I am downloading something. Only after downloading the same file once or twice more, it shows the progress of my download. The window in the taskbar -that should progressively turn green- doesn't show anything at all anymore. How can I fix this?

    Note that there should only be a prefs.js file (Windows hides the .js file extension) and not a numbered prefs-##.js file.<br />
    The presence of a numbered file indicates there there has been a problem with creating/updating prefs.js at some time and you can remove the numbered prefs-1.js file.<br />
    If the main prefs.js doesn't have a current time stamp then you will have to delete that file as well and redo all customization settings in Options.
    Make sure that you do not run Firefox in (permanent) Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy: Use custom settings for history
    *Deselect: [ ] "Always use private browsing mode"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Lumia 920 doesn't do anything

    Hi everyone,
    My Lumia 920 doesn't do anything at all, when I push the powerbutten it doens't vibrate, the screen is black and I can't hear a sound. Is there anything I could try myself, or do I need to send it to nokia?
    thanks for thinking.

    There are a few things you can try before sending it off.
    Firstly, connect it to a charger and leave it for 30 minutes just in case the battery is so dead that it can't even register the fact that you want to switch on.
    If that doesn't bring it back to life then the next thing to try is a soft reset. Simply press and hold the "volume down" and "power/lock" keys together for about 20 seconds. The phone should vibrate and boot up. While your settings, installed apps, media etc. will be preserved, you might have to set the clock again.
    If even that doesn't work then the next thing to try is a hard reset. Now, this will erase everything in the phone and make it start in pristine factory state. Hopefully your contacts, messages, photos and apps will have been backed up to SkyDrive, meaning that you should be back up and running again fairly quickly.
    Disconnect the charger and wait for a minute. Next, press and hold the "volume down" key while connecting the charger. You should see an exclamation mark on the screen. Then, press in sequence the following keys: "volume up", "volume down", "power/lock" and then "volume down" again. The phone should reinitialise itself.
    If none of the above work then you will have to send the phone off for repairs, I'm afraid.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Block Cookies "Always" doesn't block anything

    So I just signed on in here with the Block Cookies "Always" switched on.
    Isn't that button supposed to block all cookies? Or am I missing something here?  Because that particular setting doesn't seem to block any cookies at all when I am surfing sites.
    Thanks

    So I guess nobody is bothered by this, that it's supposed to ALWAYS block it, completely, as the button says, but it doesn't block anything at all?
    I was just trying it out to see what happens when you try to surf cleanly without acquiring any added information such as cookies while just browsing without signing in to any sites - and in fact, even with the button on ALWAYS to block cookies all the time, I am still able to sign-in. That makes no sense to me, to have that button then, as an option.
    Somebody please explain to me what that button is for. Are there any experts on here that can tell me why it's even there if it does nothing?
    Thank you.

  • Mini Dvi to hdmi problem, the mini dvi doesn't even plug in all the way?

    hi,
    i have a mid 2007 macbook, i just bought a mini dvi to hdmi cable, i tried to plug it in and it doesn't even plug on all the way, 1/3 of the conector is still hanging out, and it doesnt display anything anyways, nothing is detected on the macbook or the TV.
    somone seem to have the same exact problem as me with the laptop, but his query wasn't answered it was the last post on this thread.
    https://discussions.apple.com/thread/3660057?start=0&tstart=0                        

    Thanks for that. I have a Y adapter (3.5mm stereo headphone jack to RCA sound just like you said). Under input options on my TV, I can select either HDMI1 input (which gives me video only) or AV1/S input (which gives me audio only) - not both at once...Could you explain how I can get stereo audio on my TV?

  • HT1386 I just updated my iTunes and now all of a sudden my iPhone is not syncing into iTunes. When I plug my iPhone into my computer, a thing pops up on my iPhone saying "Do you trust this computer" and I press "Trust" but it still doesn't do anything.

    I just updated my iTunes and now all of a sudden my iPhone is not syncing into iTunes. When I plug my iPhone into my computer, a thing pops up on my iPhone saying "Do you trust this computer" and I press "Trust" but it still doesn't do anything.

    Sorted it out. If anyone has this problem i reccommend visiting http://forums.ilounge.com/ipod-classic-ipod-5g-video/237546-ipod-classic-80gb-fr eezes-itunes-need-restore-plz-help-2.html#post1403546 there's some pretty good advice on it. have to go into control panel and re-format iPod into NTFS file. good luck.

  • I've followed all the instructions in order to restore my ipod touch yet it won't even turn off or show the red slipper to shut down. I've tried holding down both buttons each at a time it doesn't do anything. Anybody ever experience this? If so help?

    I've followed all the instructions in order to restore my ipod touch yet it won't even turn off or show the red slipper to shut down. I've tried holding down both buttons each at a time it doesn't do anything. Anybody ever experience this? If so help? Should I just go to the apple store?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

Maybe you are looking for

  • Re-installed osx now iPhone see's iTunes as a "new" computer and wont sync

    Help please:) I had a critical hard drive failure and had not backed up my data. After a clean install of osx on the same computer with the same hardware, I updated itunes to the latest version. (all fine so far). before the new install I had sync'd

  • The program can't start because MSVCR80.dll is missing

    When I brought up my laptop I was prompted to update i-tunes. The download went bad for whatever reason and now I can not access i-tunes. If I click on the icon I get this error message "The program can't start because MSVCR80.dll is missing from you

  • ICloud phot library beta - lots of duplicates

    i ran iCloud photo library beta on iPad mini and iPhone 6, both running ios 8.2, and photos app on MacBook pro and Mac mini. I ended up with my 130gb library doubling in size to 260gb and loads of duplicates. SO I exported the whole photo library to

  • Painting slow

    Hello everybody! I have a problem with painting in my canvas. I�m trying to do something like a Flash presentation. What I have is a big JPanel With 12 canvas and I want to paint the first canvas, wait one second and paint the second canvas, wait ano

  • Using apple tv videous play after stills - can we put videos between stills

    using apple tv videous play after stills - can we put videos between stills