Not possible to store multiple fileReference object in same array?

Hi all,
I'm trying to store multiple fileReference  object in one array. But everytime I push() in a new object the old  objects that's already in the array gets set to the latest object.
I'm  letting the user select an image. Then I push the selected  fileReference object into an array like my_array.push(  FileReference(event.target) );
If I then run a loop on  "my_array" to check it's content I'm getting the latest pushed  fileReference object for every index in the array.
With one object pushed in:
1. Image1.jpg
With two objects pushed in:
1. Image2.jpg
2. Image2.jpg
Anyone have any thoughts on this?
Thank you so much

This is basically what I'm doing. The code is cut out from a larger portion so there might be errors, but hopefully not.
// Local Files
private var localFiles:FileReference           = new FileReference();
private var fileList:Array                = new Array();
private function browse(event:MouseEvent)
     trace("[Browse] Using local files");
     localFiles.addEventListener(Event.SELECT, onLocalFilesSelected);
     localFiles.browse(getAllowedTypes());
* LOCAL FILE
private function onLocalFilesSelected(e:Event)
     localFiles.addEventListener(Event.COMPLETE, localFileHandler);
     localFiles.load();
private function localFileHandler(event:Event):void
     localFiles.removeEventListener(Event.COMPLETE, localFileHandler);
     fileList.push(FileReference(event.target));
     showFileList();
private function showFileList():void
     for(var $x:int=0;$x<fileList.length;$x++)
          var file:FileReference = FileReference(fileList[$x]);
          trace($x+": " + file.name);
Thank you

Similar Messages

  • Is it possible to  add multiples dimension objects in Webi Ranking ?

    As per the project requirement we need to convert custom sqls to reporting sql in webi 3.1 sp5 .
    Is it possible to  add multiple dimension objects while applying ranking (Webi query panel ).
    Or is there any other way to achieve this feature in BO ?
    Regards,
    Pranay

    Hi ,
    There is a way if you want to apply ranking within a ranking . Below are the steps:
    First on the outer side we can use the Rank feature which is available directly
    Then use the Rank Function (=rank ()) and reset your dimension accordingly .
    This kind of Ranking is possible.
    Regards,
    Rahul

  • Is it possible to have multiple SOA Server within same domain ?

    Hi All
    I need to know whether I can install and setup multiple soa_servers inside the same domain so that they can be managed by single weblogic instance.
    The use case scenario :
    We have a single DEV environment instance that has several environments configured with it like PR1, PR2, TR, PY, PC.
    The way we have achieved it is by creating partitions under soa_infra and deploying the code as we move up the ladder in testing phases before we move to separate QA and Prod.
    Because of the way Dev is being setup, we are not able to use/test Oracle B2B properly because there is no way to have environment specific distinction be created in Oracle B2B.
    In essence, at any point in time testing can happen only in one environment for out Dev box because it makes call to Oracle B2B (Trading Partners) and there is no way for us to distinguish whether the call is coming from PR1 or PR2 or PC or TR or PY.
    We have no issue testing it as long as it is not restricted to B2B but with B2B we are restricted because a single soa instance has a single B2b instance. ( We can not have partition wise instances of B2B)
    Requirement :
    Is it possible to install and configure different soa_server for.e.g
    soa_server1 : PR1
    soa_server2 : PR2
    soa_server3 : PY
    soa_server4 : PC
    soa_server5 : TR
    inside the same domain (dev_domain) so that they can be managed from single weblogic instance through Admin console and we can have different B2B instances for each soa_server.
    This way we will be able to differentiate between environments on the basis of ports with the same IP address.
    Please let me know if there is a possibility of achieving the same.
    Thank you so much in advance.
    Regards
    ACM

    Thanks Sharmela for your directions.
    Let me try to clone the soa server and see if it helps.
    Before I move forward, I would like to verify one thing from you.
    As you have mentioned the word "cluster" , I am not exactly trying to achieve the clustered setup "conventional way of load balancing and high availability" but instead I want to have these cloned soa servers( soa_server1 : 8001,soa_server2 : 8002,soa_server3 : 8003,soa_server4 : 8004,soa_server5:8005 )to have separate partitions ( PR1, PR2, PY, TR,PC) respectively.
    I hope I don't have to configure OHS to access these nodes since I want these nodes be available as a separate instance rather than redirecting load in case of any other becoming unresponsive ( OHS configuration)
    I am not sure whether I am making sense but all I need to do is point the PR1 instance having it's own port number(8001) to the PR1 instance of ERP.
    I think it is doable but just wanted to double check with you.
    Please let me know
    Thank you

  • Is it possible to upload multiple files at the same time?

    Hi folks,
    It seems pretty trivial to implement a file upload item, but is there some way to allow selection (upload) of multiple files at the same time? Seems like this has probably come up before, but I didn't find much for solutions in my search. Any links or insight would be appreciated.
    Thanks!
    -Adam vonNieda

    Thank you both for your replies.
    @Manish - That does allow for multiple file uploads without refreshing the page, but does not allow for multiple file uploads at the same time.
    @Tony - That might be the way I end up going, although I probably should have been more specific. It would be really nice it there was a way to do a mutli-file select using the control or shift button like you can with a standard file selection dialog (if you want to copy multiple files, for example). Having a separate line for each file browser means there has to be a limit on the number that can be selected at the same time.
    Has anyone implemented a method of selecting multiple files at once, and hitting an upload button once to get them into the database?
    Thanks again Manish and Tony, very helpful.
    -Adam

  • Is it possible to add multiple sound objects to a slide

    I am wanting to make slides that contain several "cards". Each card would have a word on it (sight words for elementary students). I'd like to place 2 speech bubble graphics on each card. Students would click one of the bubbles to hear the word read to them (me recording the words). They would click the 2nd bubble if they wanted the word read in the context of a sentence.
    Is this possible within Keynote? I know that it's possible within Powerpoint to make any object a sound object--and I believe that I could do more than one on a slide.
    However, I've never tried anything like this in Keynote and I'm not sure if it's even possible.
    Any ideas?

    Keynote is designed primarily for linear presentations, and really doesn't have any capability to do actions (other than hyperlinks) when an object is clicked. If you wanted each card to play the two recordings in order on each click, then you could do this in Keynote, but if you want the second recording to play only if the students clicks on it, then this isn't really possible in Keynote.

  • Is it possible to have multiple accounts under the same apple id

    I just bought an ipod touch primarily for my daughter to use, and would like to communicate from my ipad to the ipod touch using facetime. However, both are under my apple id and apple account. Is there a way I can talk from one device to the other - if they are both owned by me but being used at different locations? Additionally I would like to have a different ID for my MAC if possible, so I can communicate by facetime with people at home if I am not there.
    Any suggestions?

    Yes, follow the instructions here:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Is it possible to do multiple recordings with the same session.

    I appologize in advance for this but here goes.  I want to make several background narrations for some video clips.  Using Audition 3, I start out by recording in the multitrack view on the top track.  Because of mistakes, this takes several audio clips.  After finishing, I rightclick on one of the clips, select bounce to new track all audio tracks and this creates a mixdown.  Moving to edit view, I do noise correction, then back to multitrack where I export the mixdown as .wav.
    THen I select the clips in the top track and mixdown in the next track and hit delete.  However, when I hit the arming 'R" and then the record button, the cursor doesn't move more than a milimeter and then keeps going back and forth.
    I was trying to do multiple narrations with just this one session, so is that possible?  Do I have to do a separate session for each separate mixdown?
    If there is something I'm doing wrong, I would appreciate any directions.
    Thanks in advance,
    John Rich

    Blue_Devil1 wrote:
    I appologize in advance for this but here goes.  I want to make several background narrations for some video clips.  Using Audition 3, I start out by recording in the multitrack view on the top track.  Because of mistakes, this takes several audio clips.  After finishing, I rightclick on one of the clips, select bounce to new track all audio tracks and this creates a mixdown.
    Let me stop you right there, for a start, because what you are doing still isn't clear, although I think that I can guess at it...
    Creating a bounce-down is not the same thing as creating a mixdown. If each of these clips you've recorded constitutes a separate file, which it will if you hit the stop button rather than pause - which it sounds as though you have, otherwise you wouldn't be able to separate them so easily - then just double-clicking on the clip will open it immediately in Edit View anyway. And the bounce-down options don't mention tracks, they mention clips - all audio in session, selected range or selected clips. Yes you get one file as a result - but it's literally just the clips as they stand run together not via the mixer, any effects or automation system - which it would have to be if it were a proper mixdown. A bouhce is exactly what it says - just bouncing the clips.
    THen I select the clips in the top track and mixdown in the next track and hit delete.  However, when I hit the arming 'R" and then the record button, the cursor doesn't move more than a milimeter and then keeps going back and forth.
    I was trying to do multiple narrations with just this one session, so is that possible?  Do I have to do a separate session for each separate mixdown?
    Hmm... when I hit the delete key, nothing happens - I have to right-click to get stuff to delete like that. But you most certainly can re-record in a session, yes. If you get the cursor moving just a fraction of a mm, then almost certainly this means that instead of moving the cursor back to the start, you've moved it slightly with the mouse pressed and created a very small range.So before you record, hit the 'Go to Beginning or Previous Marker' key (next to the play looped key) and try again - it should work properly then.
    And of course you haven't deleted all the files - they are still there on your system and will remain so unless you delete them outside Audition, either the hard way, or using MediaSweeper.
    Your workflow is, to say the least, a little strange. If I were recording narrations (which I do sometimes), I'd record in Edit View, and keep just the files or takes I wanted. Then I'd import these into Multitrack view, arrange them, crossfade them, whatever, and then do a mixdown of the result, which would appear back in Edit View for final trimming and saving, and I'd have a file (or files) to use in the final production. This would have the advantage of not creating all these 'take' files that you have to get rid of separately in the first place, and generally keep the workflow down to a sensible number of steps.

  • Is it possible to recharge multiple iPhones on the same computer but have each iPhone backed up with its own data?

    I have multiple iphones, one for personal use and one for work.  I would like to backup and recharge both on my MacBook Pro but do not want the information on the personal one to be on the work one.  My personal iPhone is 64 GB and the work one is 16 GB so the data from my personal iPhone would would not fit on the work iPhone  Both are running iOS 7.1.2 and the MBP is 10.9.4

    Disable automatic syncing - http://ipod.about.com/od/iphoneipodbattery/qt/disable-auto-sync.htm e.g. for charging device on another computer.

  • Is there any possibility to bookmark multiple tabs at the same moment in the firefox 5? Becouse this is a very important function for me.

    That function was in the Firefox 3, and it was ultra effective. Why do Firefox 5 do not have it? It should be progress, not downgradation.

    You can access bookmark all tabs by right-clicking on a tab, or use the keyboard shortcut Control+Shift+D

  • Is it possible to open multiple files in the same window

    I just upgraded from Reader 8.1.0 to 9.2 and whenever I open multiple pdfs it opens a new window.
    Is there a way to prevent this. If didn't happen in 8.1.0.
    Aditya

    Thank you for the brilliant idea.....
    How about in 9.2 ?

  • How to store multiple edits of the same file

    When I edit photos I typically create several versions of the same photo. The first edit I will end the filename with an "x". The second edit I will end with a "y", etc. For a black and white edit the file name ends with "bw". An edited version scaled down for sharing will typically end with it's long side dim i.e. IMG_2345_960.jpg. I'm new to Lightroom and it looks like only one version is stored in the data base. Can multiple versions be saved in the catelog? How would I set my version system up in Lightroom? Thank You.

    You can also use "snapshots".  Snapshots are saved and when you open a RAW file just select the snapshot you want and output the image. 

  • Is it possible to place multiple Annotations on the same cwgraph?

    Hi,
    I'm trying to add multiple vertical bars (annotations) on a cwgraph.
    Here is the code that I have for a command button:
    Private Sub Annotation_Click()
        S = S + 2
        CWGraph1.Annotations.Add
        CWGraph1.Annotations.Item(1).Shape.XCoordinates = Array(S, S)
        CWGraph1.Annotations.Item(1).Shape.YCoordinates = Array(-10, 10)
    End Sub
    What happens when I click the button, is a new annotation is added with respect to S, but the last annotation is removed.  Can someone point out the error of my ways?
    Thanks,
    Max

    The annotation isn't removed. What's happening is that you're always updating
    the properties for the first annotation that you added, and the same
    annotation is updated with the new coordinates each time that you click the
    button. If you change your code to
    always use the last index into the Item property, you will see the expected
    results. For example:
    Private Sub Annotation_Click()
    S = S + 2
    CWGraph1.Annotations.Add
    Dim index as Integer
    index = CWGraph1.Annotations.Count
    CWGraph1.Annotations.Item(index).Shape.XCoordinates = Array(S, S)
    CWGraph1.Annotations.Item(index).Shape.YCoordinates = Array(-10, 10)
    End Sub
    Alternatively, you can use the return value of Add to update the most recently
    added annotation. For example:
    Private Sub Annotation_Click()
    S = S + 2
    Dim annotation As CWAnnotation
    Set annotation = CWGraph1.Annotations.Add
    annotation.Shape.XCoordinates = Array(S, S)
    annotation.Shape.YCoordinates = Array(-10, 10)
    End Sub
    - Elton

  • In CS6, is it still possible to edit multiple layers at the same time?

    I often color code layers in the layers panel.
    In CS5 I could select several layers and change the color for all at once. Doesn't seem to work anymore in CS6.
    Screen shot: http://d.pr/i/uTjh

    Hey thanks guys, this has been bugging me for weeks since I upgraded to CS6. I'm used to double clicking to manipulate several layers at once. Have been double clicking one at a time for a while. So glad I don't have to do that anymore. Cheers!
    Jeff

  • Is it possible to print multiple days on the same sheet of paper in iCal

    I want to make my own day to day calender and don't want to have it be huge. I was trying to print in day view but want to put 4 days on each page and I cannot figure it out.
    Please help.

    File > Print has an option to print by View (Day, Week, Month or List). Experiment with the List View to see if it meets your needs.

  • Do i have to store multiple variations of the SAME number for caller id to work properly?

    i am in trinidad and tobago, using the TSTT/bmobile network. i have a brand new factory unlocked iphone4 from the UK.
    all my contacts are stored as +1868XXXXXXX.
    with sms, i get the name matched to caller id.
    with calls however i'm having a problem. carriers in my country send the caller id for incoming calls randomly in several different formats (+1868XXXXXXX; 1868XXXXXXX, 868XXXXXXX; or XXXXXXX).
    does this mean that i must have all four variotions of the same number saved for EACH contact???
    why doesn't the iphone match the numbers backwards like almost EVERY other phone that i have owned in the past?
    is there no other solution to this problem? from what is posted in the article below, it seems like only solution #4 works:
    http://support.apple.com/kb/TS2326
    i've read that there is a 'jailbreak fix'. i don't even know what jailbreaking means, but is that the only option that i have to explore?
    this is a SERIOUS shortcoming of this phone. has anyone found any other solution to this problem?

    jasonnPOS,
    you seam to have had the exat same problem I am having now. Have you solved it?
    The link you send in your post :
    http://support.apple.com/kb/TS2326
    As I think you already noticed doesn't solve the problem it merly duplicates the numbers in each contact. One with +and country code and one without that...
    There has to be another solution...

Maybe you are looking for

  • Question in invoking a bpel process from adf (how to return a table)

    hi all, i have developed a bpel process that checks customer name and if the customer name is valid , it will go to query a table of product and send this data to the client (jsf) In my bpel process ,there are two services 1. Getcustomer service--> t

  • Why doesn't FF make the latest Update compatible with a Power PC G4?

    I've got a Power PC G4 Mac, which apparently doesn't meet the System Requirements for the latest Update of Firefox: why not? In this Economy, I'm sure there are a lot of people like me still running Power PC's, yet now I can't even "suggest" to FF th

  • 3.6.8: I'm not able to edit the bookmark name before saving it.

    In any webpage on any tab: Cmd-d or click star twice. The Edit Bookmark dialog appears, with the Name field highlighted. My cursor doesn't change when placed over the highlighted Name field. If I click or double-click anyway, nothing changes. If I pr

  • HT1338 Skype

    why won't Skypw work with MAC?? I can't do vidseo calling, it shows me a s off line to the receiver, and when I dial their number it's like making a call vs video chating.

  • Layout is not opening in Developer 6.0 [Urgent]

    Hi, I am using Forms 6.0 on NT, if I place an bean control on a canvas and close layout designer, again layout designer is not opening. JavaBean works with web preview on NT only, on 95 web preview itself not working. Is there any patch is available?