Loop doesnt work

Hi guys,
I need ur help,I am beginner to adobe flex and i got the following problem. When I write any Loop(for,while,...etc) I got the following error
1120: Access of undefined property i.
My code
<fx:Script>
         <![CDATA[
         var i:int;
         for(i=0;i<5;i++)
         ]]>
     </fx:Script>
I am using Flex 4 SDK
Adobe Flash Builder 4
Thanx,
Osama

hi,
If your code is actually as shown you will get the error as there is no function declaration
private function myloop(): void
for (var i:int=0; i < 10;i++)
notice also that you can declare the variable in the loop statement.
David.

Similar Messages

  • OSB - Resume in Foreach Loop doesnt work

    Hi,
    I have used for each loop in osb proxy service message flow, and in the stage error handler i am using a resume action to resume the for loop in case of error for any loop.
    But then it actually doesnt work. In case of error it continues to next stage instead of resuming the for loop.
    Can any one suggest any solution for this? I searched for fourms and was not able to get the exact solution. Was wondering what the problem is. Any suggestions on this? Appreciate your help. Thanks
    Note: I cannot use split join as i have to do sequencial invocations and in case of error from any invocation i need to log it and continue the for loop, which as per my knowledge is not possible using split join. Let me know if i am wrong. Thanks
    Edited by: 791951 on Mar 10, 2011 9:02 AM

    Thanks for replying. Nope I cannot call that proxy again from the error handler.
    Below is the Message Flow
    Proxy Service gets the Status as Input Field
    Request Pipeline:
    Then in the request pipeline proxy takes the status as input and queries DB for the messages (MessageID/Message) with that particular status.
    Once it retrieves all the messages for each record of the queried record i use a for loop and post all the messages to an Advanced Queue.
    So if there is any message which actually fails then if i call the PS again it again resubmits the messages which actually passed, which is not my requriement.
    Please suggest why resume is not working. Appreciate your help. Thanks

  • Conditional Loop doesnt work correctly.

    Hi There,
    If you analyze my code, its all about parsing a dictionary.
    Im checking the dictionary for the "aardvark" word. It gives me
    false all the time. When "aardvark" is the first word in the array,
    i.e my_dictionary[0] is "aardvark". I wonder why the conditional
    loop isnt working fine. Im checking if the user string aardvark is
    == my_dictionary
    ; it should be giving me the true value.
    Is there any error in the code? Can anyone explain me where
    im going wrong?
    P.S -> The traces put everywhere gives me the right
    output. Except for the result of the if().
    Regards and thanks a lot in advance.
    Roshan Kolar

    Hi Raymond,
    Thanks for the reply. I got the problem, actually the
    conditional loop was perfect, the parsing was not. The reason
    being, some words in the dictionary had a Space/NewLine/Carriage
    Return at the last index after the word. It was all random, so some
    words were taken, but some were not like "vicious" == "vicious " -
    gave INVALID WORD.
    So I redesigned the parser, where I removed the unwanted last
    char - now the condition worked fine. Thank god I was working even
    after posting the query.
    Thanks a lot Raymond.
    Regards,
    Roshan

  • Importing 3rd party loops doesnt work

    in logic pro x when i drag and drop loops from my loop library folders they dont import at all (worked fine in logic 8). the popup window asks where i want to use them from and no matter if i choose original location or import to new folder they dont show up in the loop browser.
    anyone know why?
    Thx
    Murray

    Maybe you need to select the user category?

  • My stupid FOR loop doesnt work to create a new array, help!

    Hello, I need help creating a new integer array that contains exactly one of each element a different array.
    My original array is called co[]
    lets say it has the values: 1213445232
    I want my new array called classArr[]
    for example, it would end up being: 12345
    my integer array is called classArr[]. and i want it to store exactly one of each element from the co[] array. Here is my code. It compiles without errors, but I get out of bounds exception when i run it.
    classArr[0] = co[0];
    int temp = 1;
    for (int k = 0; k < x; k++) { //x is the number or elements in co[]
         for (int j = 0; j < temp; j++) {
              if (classArr[j] != co[k]){
                    classArr[temp] = co[k];
                    temp++;
    System.out.println("Values in new array");
    for (int c = 0; c < temp; c++){
         System.out.println(classArr[c] + " ");
    } Thanks for your help!!!!

    im pretty sure the initialization of the variables are
    set right.Well, without seeing the initialization I doubt I can help you. Try to figure out if it is classArr[temp] or co[k] that causes the exception. (Hint: put them on two different lines.)
    x is the number of elments in the co[] arrayTry replacing it with co.length.
    classArr[] is a dynamic array set to a number, lets
    say it's abcWhat is a "dynamic array" in your terminology? And what is "abc"? Please provide at least the declarations of your arrays.

  • For loop not working & way to include an external file

    Hi everyone, i am new to java and am having some problems with my program.
    I have a for loop but it doesnt work it completely gets ignored and i have
    no idea why it does that.
    IS there a way that i add another option in the menu to open an external file
    which would be similar to this but it would be for cabinBooking. If so how do
    i do that. if opening an external file is impossible then could you please show me an example of how to extend the booking class.
    Any help would be appreciated.
    Thank you very much
    import java.util.Scanner;
    import java.io.*;
    public class Booking{
    Booking(String bId,     String bName,int bNum){
    bookId = bId;
    bookName = bName;
    bookNum     = bNum;
    String bookId;
    String bookName;
    int     bookNum;
    public double calculateBookingPrice(){
    double cost     = bookNum *     genBookingcost;
    return cost;
    double genBookingcost =     80;
    public void     summary(){
         System.out.println();
    System.out.println("Booking Number is: " + bookId + ", ");
    System.out.println("Booking Made for : " + bookName);
    System.out.println("Cost of booking = $" + calculateBookingPrice());
    System.out.println();
    public static void main(String[] args) throws IOException{
    Scanner     keyboard = new Scanner(System.in);
    BufferedReader charInput = new BufferedReader
    (new InputStreamReader (System.in));
    int bookCount = 0;
    char answer;
    Booking[] bookings = new Booking[6];
    do {
         menu();
         System.out.println("book Count = " + bookCount);
         answer = charInput.readLine().charAt(0);
                   if (answer == 'a' || answer == 'A'){
                        System.out.println("Booking     ID : ");
              String idstring     = keyboard.nextLine();
              System.out.println("Booking     Name : ");
              String namestring =     keyboard.nextLine();
              System.out.println("number of people : ");
              int     ppl     = keyboard.nextInt();
              bookings[bookCount] = new Booking(idstring,namestring,ppl);
              bookings[bookCount].summary();
                        bookCount++;
                   }else if (answer == 'b' || answer == 'B'){
                        System.out.println("Enter printing");
                        bookings[0].summary();
                        bookings[1].summary();
                        // this is the loop that it is ignoring GGRRRR!!!
                   for(int i = 0; i >= bookCount; i++){
                        System.out.println("Counter: " + i);
                        bookings.summary();
                   }else if (answer == 'x' || answer == 'X'){
                        System.out.println("Exiting the programme...");
    System.out.println();
    System.exit(0);
    }while (answer != 'x' || answer != 'X');
    public static void menu(){
         System.out.println("********** Main Menu ***********");
              System.out.println(" A. Make General Booking");
              System.out.println(" B. Print Summary");
              System.out.println(" X. Exit program");
              System.out.println("*****************************");
              System.out.println("Select one of the options above");

    in order to extend the Booking class, you can create anew class like this..
    public class CabinBooking extends Booking
       public CabinBooking( /*String bId, String bName,int bNum .. more args or fewer, or none.. */)
        // add new methods or override ones from Booking
    }

  • MSI GF4 Ti-4200 doesnt work with WindowsXP

    I can't get the MSI display tools to work - it crashes,
    the vbios.dll doesnt load, it also crashes.
    the tv in doesnt work ,it crashes
    the tv out doesnt work ,it crashes.
    all the supplied software also crashes "application has encountered an error and cannot continue. sorry for any inconvenience"
    the intervideo software (windvr, wincoder, winproducer) and MSI PVI software all crashes as well.
    what's the deal with this stuff?  ?(
    I have a Dual AMD athlon Tyan thunder k7 motherboard,
    MSI Ti-4200-VTD video card and MSI tv anywhere card.
    is there any resolution for this?

    I'm sorry gfilitti if I don't have my system listed, but I thought my question was pretty simple...
    Has ANYONE been able to make the InterVideo WinProducer 2 software, that comes with the retail version of the MSI G4Ti4200-VTD64 card, work successfully under the Windows XP Home or Pro operating system?
    If the answer is YES, then I will begin investigating why my system can't.
    If the answer is NO, then I only ask for other people's recommendations of what software WILL work in place of that. I NEED those functions to work. That's why I paid extra for the VIVO.
    All we've heard so far in this thread are NO votes. I would like to see just how widespread this is. If I can find ONE person who claims it works fine on his/her computer under Windows XP, then my NEXT question would be if they had to do anything different to make it run, or was it just a straight install? Did they add the program patch available from the MSI website? See where I'm going with this?
    If you would REALLY like my system details, here ya go...
    ========================================
    CASE - ANTEC SX1000II with 4 internal 8cm fans
    POWER SUPPLY - ANTEC 400W "True Power" w/dual fans
    MOTHERBOARD - MSI 645E MAX (MS-6547 Ver 2.0)
    BIOS - AMI Ver 3.2 (10/21/02)
    PROCESSOR - PENTIUM 4 2.0aGHz (Rev/Step 2/4(9) )
    MEMORY - 1 Corsair 512MB DDR RAM (Winbond chips)
    DISABLED IN CMOS - FLOPPY Controller, AUDIO Device, MODEM Device, Serial Port B, MIDI Port, and GAME Port
    AGP SLOT - MSI G4Ti4200-VTD64 - IRQ 16
      DRIVER: MSI 31.00
      CAPTURE DRIVER -  nVidia 1.08
    SLOT 1 - Creative SB0090 Audigy Sound Blaster - IRQ 17
      DRIVER - Creative 3.0.0.18 9/20/02
    SLOT 1 - Creative SB1394 FireWire Controller - IRQ 18
      DRIVER - MS 5.1.2535.0 7/1/01
    SLOT 2 - NIC #1 D-Link DFE-530TX Ethernet - IRQ 18 (LAN)
      DRIVER - REALTEK RTL8139 5.396.0530.2001
    SLOT 3 - Adaptec 29160N Ultra160 SCSI Controller - IRQ 19
      DRIVER - Adaptec 6.2.0.0 3/19/2002
    SLOT 4 - EMPTY
    SLOT 5 - MSI SYSTEM D-Bracket
    SLOT 6 - NIC #2 NetGear FA312 Ethernet - IRQ 18
      DRIVER - Windows XP Pro native driver
    NOTE:
    NIC #1 is for home LAN
    NIC #2 is for Alcatel SpeedTouch External DSL modem
    SCSI DRIVES:
    ID 0 - COMPAQ (Seagate) ST318451LW, 18GB, 15K RPM
    ID 1 - QUANTUM Typhoon Atlas II, 18GB, 10K RPM
    ID 2 - Seagate ST39103LW, 9G, 10K RPM
    ID 3 - Plextor CD-RW PX-W1219S
    ID 4 - Toshiba DVD-ROM SD-M1201
    ID 5 - EPSON Perfection 1640SU Flatbed Scanner
    ATA/ATAPI DRIVES:
    Primary Master - No Connection
    Primary Slave - No Connection
    Secondary Master - MATSHITA LS-120 Ver F523
    Secondary Slave - No Connection
    USB DEVICES:
    DIAMOND SupraMAX 56K V.92 Model:SUP2920
    Generic Flash Memory programmer and other assorted USB devices on occasion.
    MONITOR - HITACHI SuperScan Pro 21 w/5-BNC input
    ========================================
    BTW, I would think when investigating a program's FLAT refusal to run, that the MOST important things aren't listed in these signature files. It has to do with what ELSE is running at the same time. Which services are running and which are NOT? What memory resident programs are loaded at boot-up? Any service packs installed? How about any security patches from Microsoft? Which anti-virus software (if any)? Which DirectX version? Personal firewall? Etc., etc.
    Granted, the hardware DOES have a factor, but I feel all of these are MORE important factors than the speed or brand of a persons hardware. I look at the signitures more as bragging rights than anything else.
    Now, this is just my opinion and may not reflect the feelings of the more sane people around me.  
    Cheers!

  • Macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again

    macbook pro 15" mid 2010 i spilled water on keyboard now it wont power on if the battery is connected and the keys on keyboard doesnt work it works fine with no battery and external keyboard if i order a battery and new keyboard will every else work again lik it did before

    If you have records that show that you've taken your MacBook Pro in for a year to fix the machine, I would escalate the problem to Apple Customer Relations - unfortunately I don't have a number for Spain.
    It would only seem logical to me that if you've been trying to have the machine repaired during the time that the 'recall' was in effect that you should be eligible for a new logic board. But only customer relations will be able to make that call.
    Good luck - take the issue as high up the food chain as you can and see what happens.
    Clinton

  • On Safari, ipad connects to the internet.  But when in applications such as Keynote, I try to e-mail presentattion it doesnt work.

    I am a teacher and have my own iPad with a data plan.  We also have a router in teh classroom for wifi, and it has a very strong signal.  On Safari, the ipads can connect to the internet.  But when in applications such as Keynote and HTML Egg, I try to e-mail presentat. or post website to web, it doesnt work.  I tried re-setting the proxies and the router, no luck.  Please Help!  I am a teacher and want my students to be able to post their websites on to the web, and e-mail themselves and their parents their Keynote Presentations.

    Try this. Turn your iPad Off. Then disconnect the power going to the router for 30 seconds or longer. Then replug the power to the router (allow it to initialize) and turn On the iPad. Hopefully everything will connect. If not, see below.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt

    I've just installed CS6 creative suite mainly for photoshop CS6. It comes with camera raw 7.0.something, but need something newer to use my canon 6d. When I download camera raw 8.5 and install the raw converter doesnt work anymore, wont even open or isnt available anymore in the plugin list. Tried to reinstall everything for a few times, but nothing helps.

    When I search for updates the raw converter doesnt get update automaticly. Frustrating, is costing me the whole morning.

  • I am locked out of my computer (macbook air) I just got it back from the apple store and they reset it. I put in a new password, and now it doesnt let me log in anymore. Command R doesnt work, all i hear is a sound, but nothing happens.

    I just got it back from the apple store and they reset it (becuase it kept shutting down and not turning back on).
    I put in a new password because i needed to start over from factory settings, but now it doesnt let me log in anymore. (I don't know if this is because it doesnt accpet my password, or I forgot my password in less than 5 minutes, or because when i typed in my new password, i typed it in wrong twice)
    Command R doesnt work, all i hear is a sound, but nothing happens.

    What I don't understand is why it is rejecting a password I am creating.
    Perhaps the password you are creating is too short, or has characters that are not allowed, or is not secure enough because it is a word in a dictionary.
    FileVault may have standards for what it considers an acceptable password. If the password is part of the 128-bit encryption scheme, it might have to be 16 characters, for example. (Don't know if that is true, but it's a possibility.) Check your documentation for password requirements.

  • Scrolling and rightclicking with magic mouse doesnt  work anymore

    Suddenly scrolling and rightclicking with magic mouse doesnt work any more. Left clicking and cursor moving works normal. I have checked the system preferences for the mouse and find nothing strange or unchecked. Any ideas?

    Also tried the universal access thing. Doesnt work.

  • People Cannot Hear Me When I make Calls on iPhone 4, Bought a new iPhone 4, uploaded all of my own information from the backup, and it still doesnt work, help!

    I went in to apple, they couldnt figure it out, I am on AT&T so I was figuring on going into their store today and seeing if its something with the network, if not I am going back to apple, but this is literally a brand new phone i bought yesterday, not refurbished or anything, brand new, does anyone know why this isnt working? Everything else works fine, the mics both work, its just when I make calls or someone calls me the mic doesnt work.

    When you see the same issue on more than one hardware device, it means that the problem is likely to exist outside of the hardware.  Two things to investigate would be the software/firmware on the backup and issues with the cellular network.  It's probably safe to rule out the cellular network as well.
    First, make sure that you have imported copies of all the information (pictures, videos, documents) on the device.  Do this thorough itunes, and the applications (photographic and document processing) on your computer.  Perform a firmware update then restore the device as new.  If the problem persists, then you may actually have the worst luck and discovered two devices with an identical issue.
    Read each of the steps before initiating the DFU.
    !.  Connect the iPhone to any computer running a fully updated version of iTunes.
    2. Press and hold both "home" and "sleep/wake" buttons
    3. After eight seconds let go of only the sleep/wake button.
    4. Keep holding the home button until you see a popup mesage in iTunes.
    5. Read all all the popups, then use iTunes to update the iPhone's software.
    If the popup fails to show, repeat steps 2 through 4

  • My iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    my iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    Did you try rebooting the iPad? You will need to have some battery power for this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This may be helpful
    iPhone, iPad or iPod touch: Not responding or does not turn on
    Frozen or unresponsive iPad - Apple
    iPad: Unable to update or restore

  • My GX630 doesnt work properly on Windows Vista 64 bit

    Hi,
      I have problem with my GX630, its doest work properly at W Vista 64 bit, exactly Sleep mode ... its imposible to awake my computer nd I have to turn it off and than on to wake it up ...
      those buttons Turbo nd Eco mode doesnt work.
      sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ...
    some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ...
    I would be pleased if someone could help me up to this topic or to my email (removed to protect user privacy) or ICQ (115-378-414)  thank to all of you Jabu

    "sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ... "
    What is the BSOD error code? What .dll ? Write down the exact error.
    Do you OC your notebook?
    "some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ... "
    Install Drivers from MSI web:
    http://global.msi.eu/index.php?func=downloaddetail&type=driver&maincat_no=135&prod_no=1513
    "those buttons Turbo nd Eco mode doesnt work."
    You need SCM: http://global.msi.eu/index.php?func=downloaddetail&type=utility&maincat_no=135&prod_no=1513
    But x64 bit is N/A.
    Why you use x64bit version anyway? Why not 32bit?

Maybe you are looking for

  • Will os x 10.5 run on my emac g4?

    Hello, I have an old Emac g4 (ATI) with a 30gb hard drive and 512 mb of ram. I heard this machine can run mac os x 10.5 but I wasn't sure if this was true. Can my machine run it and if not, what is the best os to use? Current os is 10.3.9

  • Concurrent Employment - Payroll

    Hi! Has anybody got an idea when payroll capabilities for concurrent employment will be available for Austria? Regards, Thomas

  • Which font supported in Arabic language

    Hi There, Can somebody please suggest me how to develop Arabic language course. witch font support in this language. i am using captivate 6. Looking forward for help. Thanks, Srikanth

  • Call not connecting, after dailing a

    In N. Ga. after dailing a #, delays to connect then drops call. its been happening for the last 2 hrs

  • Error running com.evermind.server.jms.JMSUtils

    I'm running the following from the Developer prompt command window of a 10.1.2 midtier install. java -classpath C:\OraHome_AppServ\j2ee\home\oc4j.jar com.evermind.server.jms.JMSUtils destinations This gives the following error: Oracle Application Ser