How to access a Access array in flex

Hi
      Guys can any body explain me how to access an array.Actually i am succsufully getting value from array named Dynamic array.
                   DynamicArray[i].language_1[0].translation;
here the node language_1 is not static it may be language_2 or language_3 or language_4 ect.. so i put that getting value in a variable named key
var key:String = 'language_1'; //Suppose i am getting right value here in key
So please guide me how i access my dynamic array using key so that i got same value as previous code give.
i already tried:-DynamicArray[i].key.translation;
                       DynamicArray[i][key].translation;
but every time got error.
for more clarity i put array structure here
DynamicArr= Array (@43b1271)   
    [0] = Object (@43ad219)   
        contentlanguage_1 = Array (@43b1431)   
            [0] = Object (@4417a11)   
                choice_id = "0"   
                deleted = "N"   
                downloadurl = "http://94.126.48.105:80/cgi-bin/WebObjects/DataVit.woa/wa/Download/getImage?imageId=1281&f ilename="   
                selected = "Y"   
                translation = "2_486"   
            length = 1   
    [1] = Object (@4417949)  
please Help me out
Thanks In Advance
   Vineet Osho

Hi Vineet Osho,
You haven't tried ---> DynamicArray[i][key][0].translation; This will work
You tried -> DynamicArray[i][key].translation; (This is wrong as you havent specified on which index you want to access)
If still doesn't work ty this...
Try  (DynamicArray[i])[key][0].translation;
If the above one doesn't work then try the below one...
var obj:Object = DynamicArray[i];
var translation:String = obj[key][0].translation;
Thanks,
Bhasker

Similar Messages

  • Accessing a public array from extra class.

    I am trying to access a public array that I declared in my main class from a separate class. I am a bit confused about why this is not working.
    The method search in the extra class is called in the extra class in part one of the nextKeystream method. How can I get it to use the int array "key". That I declared in the MainSolitaireDriver?
    Thanks
    My main class:
    import java.util.*;
    import java.io.*;
    import java.util.Scanner;
    public class MainSolitaireDriver
       int pcount = 0;
       public int[] key = new int[26];    
       public MainSolitaireDriver()
           getValues();
            public void getValues()
                try
                    Scanner inFile = new  Scanner(new File("input.txt"));
                    for (int counter = 0; counter < key.length; counter++ )
                        key[counter]= inFile.nextInt();
                        System.out.print(key[counter]+" ");
                catch(FileNotFoundException e )
                e.printStackTrace();
                System.err.print("Failure- File Not Found");
         public static void main (String[] args)
                /*String whereInTheWorldMyFileShouldBe = new File("input.txt").getAbsolutePath();
    System.out.println(whereInTheWorldMyFileShouldBe); */
    }My extra class:
    public class Solitaire
         private Deck deck;
         *  Initialize the deck from the current key deck ordering.
         public Solitaire (int[] shuffle)
              deck = new Deck(shuffle);
            public void getArray(int[] Array)
            public int search(int [] span, int target)
                for (int indexcount = 0; indexcount < span.length; indexcount++)
                    if (span[indexcount]==target)
                        return indexcount;
            public void getArray(int[] a)
         *  Returns the next keystream generated by the Solitaire  Algorithm
         public int nextKeystream()
              // Step one: Move Joker A one card down.
                    int jokerAindex = search(MainSolitaireDriver(key), 27);
                    System.out.print(jokerAindex);
              // Step two: Move Joker B two cards down.
              // Step three: Perform a triple cut.
              // Step four: Perform a count cut.
              // Step five: Find the output card.
              return 0;
         *  Returns the ciphertext corresponding to the specified
       *  plaintext, according to the current key deck ordering.
         public String encrypt(String plaintext)
              return "";
         *  Returns the plaintext corresponding to the specified
       *  ciphertext, according to the current key deck ordering.
         public String decrypt(String ciphertext)
              return "";
    }

    Main Class
    import java.util.*;
    import java.io.*;
    import java.util.Scanner;
    public class MainSolitaireDriver
       int pcount = 0;
       public int[] key = new int[26];    
       public MainSolitaireDriver()
           getValues();
            public void getValues()
                try
                    Scanner inFile = new  Scanner(new File("input.txt"));
                    for (int counter = 0; counter < key.length; counter++ )
                        key[counter]= inFile.nextInt();
                        System.out.print(key[counter]+" ");
                catch(FileNotFoundException e )
                e.printStackTrace();
                System.err.print("Failure- File Not Found");
         public static void main (String[] args)
                /*String whereInTheWorldMyFileShouldBe = new File("input.txt").getAbsolutePath();
    System.out.println(whereInTheWorldMyFileShouldBe); */
    }Solitaire Class (not main)
    public class Solitaire
         private Deck deck;
         *  Initialize the deck from the current key deck ordering.
         public Solitaire (int[] shuffle)
              deck = new Deck(shuffle);
            public void getArray(int[] Array)
            public int search(int [] span, int target)
                for (int indexcount = 0; indexcount < span.length; indexcount++)
                    if (span[indexcount]==target)
                        return indexcount;
            public void getArray(int[] a)
         *  Returns the next keystream generated by the Solitaire  Algorithm
         public int nextKeystream()
              // Step one: Move Joker A one card down.
                    int jokerAindex = search(MainSolitaireDriver.key, 27);
                    System.out.print(jokerAindex);
              // Step two: Move Joker B two cards down.
              // Step three: Perform a triple cut.
              // Step four: Perform a count cut.
              // Step five: Find the output card.
              return 0;
         *  Returns the ciphertext corresponding to the specified
       *  plaintext, according to the current key deck ordering.
         public String encrypt(String plaintext)
              return "";
         *  Returns the plaintext corresponding to the specified
       *  ciphertext, according to the current key deck ordering.
         public String decrypt(String ciphertext)
              return "";
    }

  • Access the object array from client.

    I'm trying to access the object array from client.
    it's throwing the following error,
    RemoteException Ocuredjava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.MarshalException: CORBA BAD_PARAM 0x4f4d0006 Maybe; nested exception is:
         java.io.NotSerializableException: oracle.jdbc.driver.OracleResultSetImpl is not serializable
    how to resolve it?
    thanx in advance,
    Ilam.

    Don't send a ResultSet back as the result of an RMI call. Extract the data from the ResultSet on the server and send that back instead.

  • How do I share access to Dreamweaver with a colleague of mine in a separate location?

    How do I share access to Dreamweaver with a colleague of mine in a separate location?
    I currently have DW loaded onto my desktop. I am presuming that if my colleague wants to get access to it, I have to copy the DW files I've created and put them onto the creative cloud connection. If that is the answer, How do I do that?
    My colleague has already downloaded DW onto his computer - he just can't see the files that I've created, even though I am making sure that my version of DW is always closed when he accesses his version.
    Any help gratefully received
    Jamie

    It is against the standard Dreamweaver license for your colleague to be using your license. Your colleague needs his license.

  • User Management - How to submit Additional Access Request on behalf of employee

    User Management - how can we configure "Access Requests" so that Managers can submit Additional Access Requests, or Initial Access Requests on behalf of employee?
    Have looked at "Manage Proxies" but this seems to allow access to everything - not ideal
    Please assist with knowledge and/or experience
    Many Thanks
    Me

    Additional Access Request Registration Process is complete
    Giving access to User Management to users is not an option.
    What I would like is the scenario below - is this achievable?
    When employee goes to iProcurement > Preferences > Access Requests > Request Access | they can submit an access request on behalf of themselves.
    Would like an option where a manager, navigates to same UI as above, has option to choose a subordinate, and request additional access on their behalf
    The table UMX_REG_REQUESTS has columns REQUESTED_FOR_USER_ID & REQUESTED_BY_USER_ID - so it seems they don't have to be same person (manager can submit request on behalf of an employee)
    Can this be achieved through UI for "Access Requests"?

  • RDS 2012 R2 - How do I lockdown access to Local Computer Management and Windows Backup via Group Policy

    Greetings all,
    I am needing assistance in how to lockdown access to Local Computer Management and Windows Backup via Group Policy for users that access RDS service. I have followed this awesome guide - h t t p://w w w.it.ltsoy.com/windows/lock-down-remote-desktop-services-server-2012/
      - but it is missing two important resources that I would like to lock down.Currently, I have successfully locked down Control Panel for users via Group Policy, but I cannot find any group policy or guide on how to restrict user access
    to Computer Management (different to Server Manager). When using Win-X shortcut to open the 'Administrator's shortcuts' near the windows icon, I have locked down everything except Computer Management. Computer Management gives direct access to Disk Management,
    Shares etc, which are locked down for users. But Windows Server Backup is still accessible. Can someone please guide me on how to restrict access to both Computer Management and Windows Server Backup.
    Thanks in advance.
    Terry.

    Prevent running of Windows Server Backup
    Computer Configuration\Policies\Windows Settings\Security Settings\File System
    Right click on File System - Add File - Drill down to \System32\wbadmin.msc
    On the Database Security ACL that pops up - Remove Creator Owner, Remove Users and check Adminstrators have Full Access.
    On the Object window - choose Propagate inheritable permissions to all... (Default)

  • SSH login- how do I restrict access to a shared folder?

    I have created Shares in WGM for SMB and AFP access on my OS X 10.4.8 Server. However when I connect via SSH it's not restricting access to the folder based on the User Name I login with- I see the entire volume! How do I restrict access to a specific folder based on a user name setup in WGM? ACL's?

    Hey George,
    It sounds like you are trying to limit ssh/sftp users to a specific area, aka jails. The FTP server lets you 'chroot' users to a certain area making it appear as the root thus preventing them from navigating up the hierarchy, which is what I think you, and me and many others are trying to accomplish.
    The ssh compiled into OS X is missing this very needed feature. There have been a few documented workarounds, but they've either been too insecure or too clunky for me.
    I've dealt with the fact that my users can get to the root of the hard drive, and have just been very careful about my privileges (by using ACLs), thus preventing them from getting inside areas they shouldn't.
    There's a good write up here: http://www.schwie.com/brad/macosxsftpchroot/ and if you include the term 'chroot' in your searches, you should find a bit about it here too.
    And Roger, I think George meant the file sharing protocol used by ssh. man sftp.

  • How can I regain access to a MAC account? -- Macbook Pro?

    Situation:  My wife has a 13" Mac Book Pro, that we received in May 2011.
    OS: Mac OS X Snow Leopard (not sure which version it came with -- 10.6?)
    My wife's computer had two administrative accounts.  She uses one regularly, and the other is the 'primary' account for downloading updates and such.
    She was unable to figure out how to use Time Machine or any of the other backup software and the like.
    Yesterday, she updated to OS X Lion, and found that a number of the programs that she enjoys using no longer function.
    She wanted to roll-back to Snow Leopard.  After transferring the majority of the 'must-save' files, she put in the install disk again for snow leopard.  This allowed her to start fresh, however, she wants to regain access to those old accounts.  She tried, but, none of the passwords work anymore.  We know what the passwords are; but, they are not working.
    Our ATTEMPTED solution:  She found a site "http://en.kioskea.net/forum/affich-7339…  This site told her to do something in the boot terminal that allowed her to add a new administrative account.
    She tried going into that new admin account and changing the passwords to the other accounts; no joy.  She changes them, but, they are not retained when she logs off or restarts.
    How can she regain access to her old files?

    Open itunes.  Sign into your account.

  • How can I restrict access to add. internal hard drive by account?

    Hello! Okay, so I am my computer's administrator, and I have a secondary 'guest' account that anyone else can use. So, I know that all my data on my main, OS hard drive is secure from the guest account accessing it, but what about the additional hard drive that I have installed?
    I have a good deal of sensitive data and files stored (and aliased) on my second internal drive that I do not care for 'guest' users to stumble upon. How can I restrict access to the secondary storage hard drive from my Guest login account, and/or just plain hide it from it? Surely, there is a need for this that has brought about a solution. Any tips/advice/solutions?
    Thanks!!!
    =)

    Click here and follow the instructions followed by placing the folders and files on the image; if the password is in the keychain, it will be supplied whenever you're logged in.
    (41018)

  • How to create the Access sequence for the Vendor+material+plant combination

    Hi all
    Please let me know How to create the Access sequence for the Vendormaterialplant combination..
    Whats the use? What its effect in purhcase and taxe..
    brief me please

    Hi,
    you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
    goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
    find the tax condition type. see in it which access sequence is attached.
    if there is none then use JTAX used for taxes in India.
    or you can create the similar one for your.
    to create the same goto OBQ2.
    new entry or copy JTAX.
    and assign the access sequence to condition type.
    this will resolve your problem if you just need to assign the access sequence.
    regards,
    Adwait Bachuwar

  • My old computer had itunes and downloaded songs that I put on my ipod. My old computer got replaced years ago without saving hard drive info or passwords and my iPod burnt out and will not activate. How can I get access to my old songs on new computer.

    My old computer had itunes and downloaded songs that I put on my ipod. Well, my old computer got replaced years ago without saving hard drive info or passwords and my iPod burnt out years ago and will not activate. I now have a new computer and iPod and I have an iTunes account on my iPhone5. How can I get access to my old songs on new computer? Are they lost for good? I have no info about my old computer and old account.

    Downloading past purchases from the App Store ... - Support - Apple

  • I saved a spreadsheet to iCloud now I can not access it.  The message I get say I need a newer version of Numbers but I already have it.  How do I get access to my document on iCloud?

    I saved a spreadsheet to iCloud now I can not access it.  The message I get says I need a newer version of Numbers but I already have it.  How do I get access to my document on iCloud?

    Please see this user tip:
    Need newer version of Numbers to open file

  • How do I get access to recent Creative cloud offer  re Kelby one

    How do I get access to the recent Offer re Kelby One?  I paid for a year subscription to Creative Cloud and it said there was an offer of three moths access

    There are no serials. Refer to this:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Mylenium

  • Following a software update, I can no longer access/authorise music purchased via iTunes from my old Apple ID, which I have not used for 8  years, and no longer have password.  Any ideas how I can re-access/recover that music?

    Following a software update, I can no longer access/authorise music purchased via iTunes from my old Apple ID, which I have not used for 8  years, and no longer have password.  Any ideas how I can re-access/recover that music?

    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • I downloaded iTunes to a new computer and authorized that computer but my music is grayed out and will not play, how do I get access to my music?

    I installed iTunes to a new computer and authorized that computer but my music is grayed out.  How do I get access to my music?

    Is there a way to change that?
    You can easily set up the iPod to automatically sync to your current iTunes library (or just do a Restore), but that will replace the iPod's existing content with content from your current iTunes library (erasing the iPod).  If your old computer was "retired" gracefully and you were able to transfer its complete iTunes user data to your new computer, there is no problem because all of the songs on the iPod now are already in your current iTunes library.  However, if there are songs on the iPod that are not in your current iTunes library, those songs will be lost.  That may be a problem...
    If you want to preserve what is on the iPod, you can try setting the iPod to Manually manage music and videos.  I believe you can do that from an iTunes library that is not the iPod's currently associated library.  Select the iPod in iTunes, so that you see its Summary settings screen.  Check the box for Manually manage music and videos.  (If iTunes puts up any warning about erasing or replacing the iPod's existing content, Revert the change and cancel out.)  Click Apply.  The iPod is no longer set to automatically sync.  But you can add new content manually to what is already on the iPod.  And the songs should not be grayed out. 
    However, you cannot use iTunes to transfer songs on the iPod to your current iTunes library (except for songs purchased from the iTunes Store).  If there are songs on the iPod that are not in your computer's iTunes library, you should eventually "offload" those song files because your iPod can easily break, become corrupted, or get lost.  iTunes syncs content in one direction only (from computer to iPod), but there are third-party methods and utilities that can transfer from iPod to computer.  If you do an Internet search on something like iPod "transfer," you should get some links, including a CNET article on the topic.
    Once all of your songs are "consolidated" in your current iTunes library, you can set up the iPod for automatic syncing to that library.

Maybe you are looking for

  • How to retrieve data from xml file into obiee reports

    Hi all, I've got a situation here. A xml file is stored as blob in oracle database table. Now i need to retrieve data/info from that xml file into obiee reports. How am i supposed to proceed with this ?

  • How do I delete bookmarks from the Firefox Home app on my iphone?

    I just installed Firefox Sync on my iphone and it has successfully synced all of my bookmarks. After I read a bookmark on my phone, I'd like to delete that bookmark permanently so I don't have to delete it on my computer as well. I can't find an opti

  • To_Number conversion in Fast Formula

    Hi All I am doing a simple Fast Formula calculation where I'm trying to convert the return date into number. It is throwing error. But What am i doing wrong. I'm trying to convert the date returned value to number. APP-FF-33983: Parameter type mismat

  • IMovie exporting to camera

    I am trying to export a movie back to my camera, the video exports fine but the audio does not follow. However if I playback the camera through the Imovie the audio is there. I assume there is some encoding that only Imovie can playback, how can I ch

  • How to create a file folder

    hi, The following codes throw an exception. The problem is that I can not create a folder "mytemp" under drive C. (Windows 2000) However, I have already given full permission to jre in the policy file. Can someone please tell me why? Thanks a lot. Fi