FB doesn't recognize variables just declared

Hi
Here's the code in an <fx:Script> tag:
var myXML:XML;
var req:URLRequest = new URLRequest("photos.xml");
var loader:URLLoader = new URLLoader();
loader.load(req);
loader.addEventListener(Event.COMPLETE, dataLoaded);
function dataLoaded(evtObj:Event):void
     myXML = new XML(loader.data);
This gives 1120 error: access of undefined properties of req, loader, and dataloaded. Can one not declare variables in a script in FB? FB also couldn't recognize an id set in the MXML section.... All this worked fine in Flash Professional CS4.
I'm hoping that only my version/setup of Flash Builder is totally screwed up. This is build 13875, Mac OS 10.5.6. Made the changes recommended in the library path and in the (don't remember it xml file).
Anyone else with these problems?
Kearney

Oh, and this was my guess at your XML file structure.
<photos>
    <photo>
        <tl>http://helpexamples.com/flash/images/image1.jpg</tl>
    </photo>
    <photo>
        <tl>http://helpexamples.com/flash/images/image2.jpg</tl>
    </photo>
</photos>

Similar Messages

  • Almost there. Can't driver doesn't recognize variables in another class?

    I know this has got to be an easy fix.. but i can't figure it out.so I'll put it all here... it's a program that serves as inventory. add items. sell items. etc...
    this driver will not compile while the item and inventory classes compile fine.
    // Project7BDriver.java
       import java.util.Scanner;
        public class Project7BDriver
           public static void main( String[] args )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
               //instantiate an Inventory
             Inventory myInventory = new Inventory(3);
               //find choice and continue until user quits
             int userChoice = 0;
             while( userChoice != 4 )
                menu();
                userChoice = scan.nextInt();
           public static void menuSwitch( int choice, Inventory myInventory )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
             switch( choice )
                  //user possibilities
                case 1:
                   System.out.print("Enter name of item to be added: ");
                   itemName = scan.next();
                   System.out.print("Enter id of item to be added: ");
                   itemId = scan.nextInt();
                   System.out.print("Enter quantity of item to be added: ");
                   quantityInStock = scan.nextInt();
                   System.out.print("Enter suggest retail value of item to be added: $");
                   suggestedRetailValue = scan.nextDouble();
                   myInventory.addNewItemToInventory(itemName, itemId, quantityInStock, suggestedRetailValue);
                   break;
                case 2:
                   System.out.print( inventory.toString() );
                   break;
                case 3:
                   System.out.print("Enter id of item to be sold: ");
                   identification = scan.nextInt();
                   System.out.print("Enter quantity of item to be sold: ");          
                   sellQuantity = scan.nextInt();
                   inventory.sellItem(identification, sellQuantity);
                case 4:
                   System.out.println("\nGoodbye!");
                   break;
                default:
                   System.out.println("Sorry, invalid choice");
           public static void menu()
             System.out.println("\nInventory");
             System.out.println("*********");
             System.out.println("1: Add item to inventory");
             System.out.println("2: Print inventory");
             System.out.println("3: Sell item");
             System.out.println("4: Quit");
             System.out.print("\nEnter your choice: ");
       import java.text.NumberFormat;
        public class Inventory
            //INSTANCE VARIABLES
          private Item[] items;
          private double totalInventoryValue;
          private int numOfItemsInInventory;
          //CONSTRUCTOR
           public Inventory( int capacity )
             items = new Item[capacity];
             totalInventoryValue = 0.0;
             numOfItemsInInventory = 0;
            //METHODS
           public void increaseArraySize()
             Item[] temp = new Item[items.length + 3];
             for (int i = 0; i<items.length; i++)
                temp[i] = items;
    items = temp;     
    public void addNewItemToInventory (String itemName, int itemId, int quantityInStock,
                                                                double suggestedRetailValue)
    if (numOfItemsInInventory == items.length)
    increaseArraySize();
    items[numOfItemsInInventory] = new Item (itemName, itemId, quantityInStock,
                                                                     suggestedRetailValue);
    numOfItemsInInventory++;
    totalInventoryValue = totalInventoryValue + suggestedRetailValue*quantityInStock;                                                                           
    public void sellItem(int identification, int sellQuantity)
    int indexItem = -1;
    for (int j =0; j<numOfItemsInInventory; j++)
    if(items[j].getID() == identification)
    indexItem = j;
    if(indexItem == -1)
    System.out.println("The item you are searching for could not be found.\n " +
                             "Sale not completed.");
    else
    if(sellQuantity > items[indexItem].getQuantity())
    System.out.println("It is not possible to buy more items than we have in stock.\n" +
                                  "Sale not completed.");
    else
    totalInventoryValue -= items[indexItem].getValue()*sellQuantity;               
    numOfItemsInInventory -= sellQuantity;
    public String toString()
    NumberFormat fmt = NumberFormat.getCurrencyInstance();
    String result = "Item ID\t\tItem Name\t\tItem Quantity\t\tRetail Value";
    result += "\n-------\t\t---------\t\t-------------\t\t------------";
    for( int i = 0; i < numOfItemsInInventory; i++ )
    result += "\n" + items[ i ];
    result += "\n\nTotal value of inventory: " + fmt.format( totalInventoryValue );
    return result;
    } import java.text.NumberFormat;
    public class Item
         //INSTANCE VARIABLES
         //name of item
    private String itemName;
         //id of item
    private int itemID;
         //present quantity of item in stock
    private int quantityInStock;
         //suggested price for item
    private double suggestedRetailValue;
         //CONSTRUCTOR
    public Item( String name, int id, int quantity, double value )
    itemName = name;
    itemID = id;
    quantityInStock = quantity;
    suggestedRetailValue = value;
         //CLASS GETTERS
    public String getName()
    return itemName;
    public int getID()
    return itemID;
    public int getQuantity()
    return quantityInStock;
    public double getValue()
    return suggestedRetailValue;
         //CLASS SETTERS
    public void setName( String name )
    itemName = name;
    public void setID( int id )
    itemID = id;
    public void setQuantity( int quantity )
    quantityInStock = quantity;
    public void setValue( double value )
    suggestedRetailValue = value;
         //TOSTRING method
    public String toString()
    NumberFormat fmt = NumberFormat.getCurrencyInstance();
    String result = "" + itemID + "\t\t\t" + itemName + "\t\t" + quantityInStock + "\t\t\t" + fmt.format( suggestedRetailValue );
    return result;

    ahhh okay thanks a whole lot!!one more thing.. everything compiles.. but i can't figure a few things out.. even after debugging..when i add items to inventory.. it has null in the list of items...also.. I'm just having trouble with selling items.. here'e the code. if someone could run it and explain how to correct the errors that would be great
       import java.util.Scanner;
        public class Project7BDriver
           public static void main( String[] args )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
               //instantiate an Inventory
             Inventory myInventory = new Inventory(3);
               //find choice and continue until user quits
             int choice = 0;
             while( choice != 4 )
                menu();
                choice = scan.nextInt();
                menuSwitch(choice, myInventory);
           public static void menuSwitch( int choice, Inventory myInventory )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
             switch( choice )
                  //user possibilities
                case 1:
                   System.out.print("Enter name of item to be added: ");
                   String itemName = scan.next();
                   System.out.print("Enter id of item to be added: ");
                   int itemId = scan.nextInt();
                   System.out.print("Enter quantity of item to be added: ");
                   int quantityInStock = scan.nextInt();
                   System.out.print("Enter suggest retail value of item to be added: $");
                   double suggestedRetailValue = scan.nextDouble();
                   myInventory.addNewItemToInventory(itemName, itemId, quantityInStock, suggestedRetailValue);
                   break;
                case 2:
                   System.out.print( myInventory.toString() );
                   break;
                case 3:
                   System.out.print("Enter id of item to be sold: ");
                   int identification = scan.nextInt();
                   System.out.print("Enter quantity of item to be sold: ");          
                   int sellQuantity = scan.nextInt();
                   myInventory.sellItem(identification, sellQ2uantity);
                   break;
                case 4:
                   System.out.println("\nGoodbye!");
                   break;
                default:
                   System.out.println("Sorry, invalid choice");
           public static void menu()
             System.out.println("\nInventory");
             System.out.println("*********");
             System.out.println("1: Add item to inventory");
             System.out.println("2: Print inventory");
             System.out.println("3: Sell item");
             System.out.println("4: Quit");
             System.out.print("\nEnter your choice: ");
       import java.text.NumberFormat;
        public class Item
            //INSTANCE VARIABLES
            //name of item
          private String itemName;
            //id of item
          private int itemID;
            //present quantity of item in stock
          private int quantityInStock;
            //suggested price for item
          private double suggestedRetailValue;
            //CONSTRUCTOR
           public Item( String name, int id, int quantity, double value )
             itemName = name;
             itemID = id;
             quantityInStock = quantity;
             suggestedRetailValue = value;
            //CLASS GETTERS
           public String getName()
             return itemName;
           public int getID()
             return itemID;
           public int getQuantity()
             return quantityInStock;
           public double getValue()
             return suggestedRetailValue;
            //CLASS SETTERS
           public void setName( String name )
             itemName = name;
           public void setID( int id )
             itemID = id;
           public void setQuantity( int quantity )
             quantityInStock = quantity;
           public void setValue( double value )
             suggestedRetailValue = value;
            //TOSTRING method
           public String toString()
             NumberFormat fmt = NumberFormat.getCurrencyInstance();
             String result = "" + itemID + "\t\t\t" + itemName + "\t\t" + quantityInStock + "\t\t\t" + fmt.format( suggestedRetailValue );
             return result;
       import java.text.NumberFormat;
        public class Inventory
            //INSTANCE VARIABLES
          private Item[] items;
          private double totalInventoryValue;
          private int numOfItemsInInventory;
          //CONSTRUCTOR
           public Inventory( int capacity )
             items = new Item[capacity];
             totalInventoryValue = 0.0;
             numOfItemsInInventory = 0;
            //METHODS
           public void increaseArraySize()
             Item[] temp = new Item[items.length + 3];
             for (int i = 0; i<items.length; i++)
                temp[i] = items;
    items = temp;     
    public void addNewItemToInventory (String itemName, int itemId, int quantityInStock,
                                                                double suggestedRetailValue)
    if (numOfItemsInInventory == items.length)
    increaseArraySize();
    items[numOfItemsInInventory] = new Item (itemName, itemId, quantityInStock,
                                                                     suggestedRetailValue);
    numOfItemsInInventory += quantityInStock;
    totalInventoryValue = totalInventoryValue + suggestedRetailValue*quantityInStock;                                                                           
    public void sellItem(int identification, int sellQuantity)
    int indexItem = -1;
    for (int j =0; j<numOfItemsInInventory; j++)
    if(items[j].getID() == identification)
    indexItem = j;
    if(indexItem == -1)
    System.out.println("The item you are searching for could not be found.\n " +
                             "Sale not completed.");
    else
    if(sellQuantity > items[indexItem].getQuantity())
    System.out.println("It is not possible to buy more items than we have in stock.\n" +
                                  "Sale not completed.");
    else
    totalInventoryValue -= items[indexItem].getValue()*sellQuantity;          
    numOfItemsInInventory -= sellQuantity;
    public String toString()
    NumberFormat fmt = NumberFormat.getCurrencyInstance();
    String result = "Item ID\t\tItem Name\t\tItem Quantity\t\tRetail Value";
    result += "\n-------\t\t---------\t\t-------------\t\t------------";
    for( int i = 0; i < numOfItemsInInventory; i++ )
    result += "\n" + items[ i ];
    result += "\n\nTotal value of inventory: " + fmt.format( totalInventoryValue );
    return result;

  • My computer came back from apple, the computer doesn't recognize the hard drive, or let me login, what's wrong with it?

    It doesn't recognize me

    I just experienced this exact same issue with my early 2011 15" macbook pro. Since like a month after purchasing it I had issues with the screen randomly going dark on me. I sent it in for repair inder waranty they replaced the gpu and logic board but I continued to have the same issues with the screen randomly going black sometimes I would need to reboot it in order to get the screen to go back on but it happened so infrequently and I used the computer for school so disnt find the time to resend it in to apple. Just last night the screen started to display the blue screen with black verticle lines on it. I called apple and explained to them  the issues that had been ongoing since I purchased the laptop but they said because I was now outside of warantee that any repairs at thia point wouldn't be covered. Fml so glad I spent 2200 on this future proof macbook pro what a joke my sister purchased a toshiba laptop for 300 4 years ago and it still running like a champ. I loved my macbook but at the price I paid I expect it to last longer than 2 years before leaving me high and dry. *** apple??

  • I just updated iTunes to 11.1.4.62 and it doesn't recognize my iPod.

    Hello All!
    I've just recently updated iTunes to the latest version but it no longer recognizes any of the iPods in my house.  It shows up in Windows but for some reason when I open up iTunes, iTunes just doesn't recognize that it's plugged in.  I've never had this happen with any past updates, can anyone assist me please?
    Thanks in advance.

    SOLVED:
    refer to this forum if in need: https://discussions.apple.com/message/24603547#24603547

  • I just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP Please

    i just downloaded AOL Desktop 1.7 for Mac and I can't get my email to work. It welcomes me but I know I have new email but it doesn't recognize that I have ANY mail at all. HELPPPPPPPP Please

    Hey I've been all over and can't get any help. I'm well aware its not an Apple product but its an app for Mac OS so I thought I'd try here. I bought 2 new iMacs yesterday for my parents (5K) and I'm just trying to get them some help as there in their 70's and AOL is all they know.
    But hey thanks for your help,

  • I just bought an iPod nano 7th gen.  When I connect it to my laptop, it doesn't recognize the ipod.  I tried charging it, but now it won't turn on when i push the power button.  Please help me!  I don't want to have to return it.

    I just bought an iPod nano 7th Generation.  When i connect it to my laptop, it doesn't recognize the ipod.  I tried charging it but when I hold the power button, nothing happens.  I don't want to have to return it.  Please help me!

    Hi dnix257,
    Welcome to the Support Communities!
    What version of the Windows Operating System do you have?
    What version of the iTunes software?
    The troubleshooting steps below may help you with this:
    Apple - Support - iPod nano - iTunes Troubleshooting Assistant
    http://www.apple.com/support/ipodnano/assistant/itunes/#section_1
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Cheers,
    - Judy

  • I just installed update version 11.1.4.62.  Now Itunes doesn't recognize my iphone or ipad.  My wife just installed the same version with the same result.  The problem is clearly a problem with itunes.  What's wrong with itunes?

    I was running the previous version of itunes and it worked perfectly.  I just installed the latest version of itunes (version 11.1.4.62) and restarted the PC and now itunes doesn't recognize my iphone or my ipad.  I'm running Windows 8.1 on my pc.  I tried diagnostics to no avail.  The diagnostic didn't recognize either device.  As the directions advised, I closed itunes, disconnected the devices and stopped and restarted the apple  mobile device service,  That didn't work either.  My wife, who also has Windows 8.1, has the same problem.  She installed the new version and it doesn't recognize her devices.
    Until now, itunes has been totally reliable.  I am convinced the problem is with itunes.  Where do I go from here?

    I resolved the issue by doing the following:
    1. Uninstall iTunes and every Apple application (device support and such).
    2. Uninstall bonjour.
    3. Reboot.
    4. Go to Apple and install iTunes.
    It worked.  When I opened iTunes (after reinstalling) it recognized all my devices, music and video.

  • I just updated iTunes to 10.5.0.142 on Windows 7. Now it doesn't recognize audio CDs

    After updating iTunes to 10.5.0.142 this morning, iTunes doesn't recognize audio CDs. I ran the diagnostics for my DVD drive, and it said everything was OK, but the CD name doesn't show in the navigation bar, nor does the list of songs appear. I tried with several different pre-recorded commercial CDs.
    Ctrl E DOES eject the CD.
    Also Help-->iTunes Help ends up with an eror "Not Found--The requested URL /itunes/win/10.5/ was not found on this server."

    I find a way to add music.
    Make sure iTunes is closed.
    Go to the song file on your computer. If the file has the little black musical iTunes symbol as its icon, just double click the file. It should open up in iTunes and stay in you library.
    If the little black musical iTunes symbol isn't next to the file, right click the file and go to "Open With" and then click on "iTunes". It should open up in iTunes and stay in your library.
    Yeaaa its the long way but that's the only way for now, unfortunately.

  • I  have a Mac Pro running OS X 10.8.2. Frequently the system fails detect a CD. Doesn't seem to make a difference if it contains music or is blank. I am unable to eject the CD. The system just doesn't recognize that a CD has been loaded.

    I  have a Mac Pro running OS X 10.8.2. Frequently the system fails detect a CD. Doesn't seem to make a difference if it contains music or is blank. I am unable to eject the CD. The system just doesn't recognize that a CD has been loaded.

    Step one, boot the new MBA into recovery mode (CMD+R on startup), launch Disk Utility, wipe the HD, and restore the OS. On reboot, use the Setup Assistant to do the migration. Details in Pondini's Setup New Mac guide.

  • I just downloaded the new itunes and it doesn't recognize my phone

    I just downloaded the itunes update and now it doesn't recognize my phone when it is plugged in.  The computer recognizes it and it charges fine, but in itunes the "Phone" button does not come up and it won't synk.

    Hello,
    Maybe this article can help you: http://support.apple.com/kb/TS1591?viewlocale=en_US&locale=en_US
    Cedric

  • I just test drove a Lexus ES with the Entune system, and it not only didn't play the music I expected, it caused the iPod to become totally unresponsive, even my computer doesn't recognize it?  Is there a fix for this?

    I just test drove a Lexus ES with the Entune system, and it not only didn't play the music I expected, it caused the iPod to become totally unresponsive, even my computer doesn't recognize it?  Is there a fix for this?

    This problem sort of solved itself.  The iPod kept running until the battery went dead, and when I plugged it in to power this morning, it behaved normallyh.

  • Snow leopard 10.6.8 doesn't recognize hp laserjet 2100m  Just loaded SL yesterday, 2100m has worked for years. Hooked to Apple wireless.

    I just installed Snow Leopard  10.6.8 and it doesn't recognize the hp laserjet 2100M that has been connected for years using 10.5.  Nothing shows up when I go to add printers. 

    Welcome to Apple Support Communities.
    Appletalk network support protocol was dropped with Snow Leopard 10.6.
    You might find this thread helpful:
    https://discussions.apple.com/message/10076597#10076597
    siu-85's post in that thread gives comprehensive instructions on how to add the printer, if your printer includes an Ethernet card (EIO adapter).
    If not, your alternatives are apparently to connect via a USB cable, to purchase an EIO adapter, or to find a new printer.

  • I just purchased a Samsung DVD player with a USB port; says you can use a PC or player to play music; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod

    I just purchased a Samsung DVD player with a USB port; Samsung says you can use a PC or player to play music using the USB port; I tried to use my iPhone but it doesn't recognize it. Can you use an iPhone as a player, or would it have to be an iPod?  Or is there some ap?

    Skip the DVD player use an HDMI connection to your system.
    Use this http://store.apple.com/us/product/MD098ZM/A/apple-digital-av-adapter?fnode=3a&fs =s%3Dalpha
    or for just Audio use the 3.5 MM jack.

  • TS1591 i just got an ihome system and had trouble with it connecting to my iPhone.  I finally got it to work and now my itunes doesn't recognize my phone.  My software is up to date on both my Mac and my iPhone and I have shut everything down and restarte

    i just got an ihome system and had trouble with it connecting to my iPhone.  I finally got it to work and now my itunes doesn't recognize my phone.  My software is up to date on both my Mac and my iPhone and I have shut everything down and restarted.  Does anyone have any other suggestions?

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • I've just installed Mac osx lion and my mac doesn't recognize (don't see) my audio interface. Focusrite Saffire pro 24 dsp.

    I've just installed Mac osx lion and my mac doesn't recognize (don't see) my audio interface. Focusrite Saffire pro 24 dsp.
    I had no problems on snow leopard.
    thanks

    Well I found my answer…
    http://www.focusrite.com/answerbase/en/article.php?id=1159
    At the time of writing, the following products arecurrently not working with OS X 10.7:
    Saffire PRO 14
    Saffire PRO 24
    Saffire PRO 24 DSP
    Saffire PRO 40
    Liquid Saffire 56
    Liquid Mix HD
    Forté Suite
    Scarlett Plug-In Suite
    Focusrite is committed to providing support for ourproducts with the latest operating systems. We are currently working onproviding full support for our products with OS X Lion, and these will beavailable as soon as they are complete.
    Please check this page regularly for the most up to dateinformation regarding OS X 10.7 Lion compatibility information.

Maybe you are looking for

  • Error while invoking a Web Service from a Web Application in Websphere 5.1

    Hi, I get the following error when i try to connec to a Webservice on Weblogic server. Can anybody help me in determinig the reason for the error- faultCode: Server.generalException faultString: org.xml.sax.SAXException: WSWS3047E: Error: Cannot dese

  • UIView Animation Problem with different Controllers

    Hello! I have a problem regarding the UIView animation and therefore, I have three questions: 1. is it possible to flip from view old to view new whereby each of the views have their own controller? 2. Can I only flip views sharing the same controlle

  • 16:9 TEMPLATES IN DVDSP2 - ARE THERE ANY?

    Hi. Need a 16.9 version of the silver wedding ring template. My one remains 4.3 no matter what. Is there a source of 16.9 templates? Steve

  • Export with consistent=y raise snapshot too old error.

    Hi, Oracle version:9204 It raises EXP-00056: ORACLE error 1555 encountered ORA-01555: snapshot too old: rollback segment number 2 with name "_SYSSMU2$" too small when I do an export with consistent=y option. And I find below information in alert_orcl

  • Chm to PDF ?? is it possible

    Hi I was wondering if there are any software available for the mac that you can convert chm to PDF, thanks Chris