Not possible to store several fileReference object to the same table?

Hi all

I'm trying to store several fileReference object in a table. But whenever I have a new object each time push() artefacts which is already in the table gets set on the object later.

I let the user selecting an image. Then I push the fileReference object selected in a table like my_array.push (FileReference (event.target));

If I then executes a loop on 'my_array' to check he's glad I get the most recent pushed fileReference for each index object in the table.

With an object pushed:

1 Image1.jpg

With two objects pushed:

1 Image2.jpg

2 Image2.jpg

Anyone has any ideas on this?

Thank you very much

Hello

Sorry for the delay.  You've probably discovered the answer to that now, but in case you do not have or someone else runs into this issue here is the code that should fix this:

// Local Files
private var fileList:Array = new Array();
private var localFiles:FileReference = null; 

private function browse(event:MouseEvent):void {
     localFiles = new FileReference();
     trace("[Browse] Using local files");
     localFiles.addEventListener(Event.SELECT, onLocalFilesSelected);
     localFiles.browse();
}

The problem is you have had one instance of localFiles, and while that you stored more than once in the table, when the reference has changed it performs all of the table.  Instead, I'm newing up a FileReference browse() service, so that we get a new each time.  I hope that makes sense.

Chris

Tags: Adobe AIR

Similar Questions

  • Is it possible to mark several custom components in the same namespace prefix?

    Hello

    I've referenced several .swc library in my Flex project. The problem is that what I realized, is that they do not have the same namespaces, so that I have set a separate for each .swc file label, such as my Application tag looks like this:

    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    xmlns:test = "" some.namespace. * ""

    xmlns:Test2 = "" some.otherNamespace. * ""

    < / s:Application >

    In this example of a reference library components would be called by the prefix of the trial, while another reference library will be called by the prefix test2.

    I realize that the simplest solution would be to combine all the components into a .swc file, but it is important to separate the .swc files as it is (one of the reasons is that I don't have the source files for most of the .swc to merge together).

    So is it possible in Flex to define several namespaces for a tag prefix, or they are strictly a one-to-one relationship?

    Thank you

    Patrick

    No, the link I mentioned did not mention on the fusion of everything together, he mentioned on the unique prefix for all components in a .swc, if you have access to the source of the library, you can follow the steps mentioned in the link to get a unique prefix, or well, it's a bit impossible to do without access to the source.

  • How (if possible) to check several Applecare statutes at the same time?

    I have several assets (hundreds) I want to check the soap operas to reach purchase date, and when the warranty expires. The Web site to check this allows only one at a time so as you can guess, it would be painstakingly your time.

    Is it possible to check in bulk of serials to acquire this information?

    None that I know, and I suppose that if there was a way he could mention on the status page.

  • Is it possible to view several RSS STREAM at the same time, but also the tag each article, so you can easily know who feed it comes from?

    I have a bad setting to the top of my RSS. I'm trying to do a single folder, put several RSS feeds inside, view the output of each stream RSS feed in the main folder and add an identifier for each article that told me that he feed came in a blink of an eye.

    See below for a crudely photoshopped example of something like what I hope to accomplish.

    You can configure a filter for messages from tag based on their website link corresponding to the custom Content-Baseheader, as described in the guide. Then, you can create a virtual folder of saved search as a subfolder of the folder that contains subscription main power. The saved search folder criterion would be the specific tag; the file can have any name. In this way, see you all the messages of all streams in the main folder and can focus on a specific stream by selecting the saved search subfolder.

  • It is possible to export several storage spaces at the same time

    How can I simultaneously export multiple tablespaces with expdp and ORACLE DB 12 c?

    Yes, it's possible: read here: https://docs.oracle.com/database/121/SUTIL/dp_export.htm#SUTIL200

  • Is it possible to put multiple text objects in the same frame, but with different timings?

    Windows 7

    Adobe Premiere Elements 12

    Novice user

    I'm editing a video of my talk to the camera and would like to impose the text on the screen to highlight what I'm saying. When I talk about each point, I would like them to appear as text separately.

    Imagine the video of me standing up and talking to the camera

    "Today I'll talk about the trip in the North of Scotland and give advice on how to get. "I'll talk to the best value hostels" - the word "hostels" appears first in the top right of the screen

    'I'll tell you the best routes to take' - the word 'itineraries' now appears under the word "hostels".

    "And finally, I will describe the best places to eat a traditional Scottish" - the word "food" appears now under "routes".

    My apologies if this seems basic, but the documentation is focuses on the use of a title or the effects of set. I suppse I am trying to create a style of presentation of the video.

    See you soon

    SunnyKSood

    Fastest approach that comes to mind is

    a. create 3 separate titles in the Titler (text Menu/New Text/Default Text)...

    food, going on Video 4

    routes, go to the Video 3

    Hostels, goes on Video 2

    Arrange them so that when saw that they are considered

    Hostels

    routes

    food

    b. move Inns (Video 2) to where you want to start

    "Today I'll talk about the trip in the North of Scotland and give advice on how to get. "I'll talk to the best value hostels" - the word "hostels" appears first in the top right of the screen

    Go the where you want to start road (video 3)

    'I'll tell you the best routes to take' - the word 'itineraries' now appears under the word "hostels".

    Go the where you want to start food (4)

    "And finally, I will describe the best places to eat a traditional Scottish" - the word "food" appears now under "routes".

    c. when all that is done at this point, it might look like this...

    From now to organize and drag the contents of the track so that we see

    Hostels

    then the hostels + routes

    then hostel + road + food

    When they are supposed to appear jointly with the dialogue in the video.

    The final workspace should look like

    Please try this. And, feel free to let me know if you need any clarification on what it is described.

    We will follow to your results.

    Thank you.

    RTA

  • Possible to insert more than once in the same table using multi table insert?

    I used multi-table insert before insert a source separate from the tables without problem.

    However, when I want to insert into the same table two or more distinct lines, I encountered a problem because when I call nextval on the sequence since this is the same sequence # will try to use the same number for two inserts, which will raise a violation of PK constraint on the 2nd insert.

    A way around this problem?

    Another option is to create the sequence with increases of 2 or however many tables, you are targeting.
    When you then specify the. NEXTVAL, you must subtract the relative number of it, apart from the first table that you insert in to.

    Something like that;

    drop table t1;
    
    create table t1 (a number, b number);
    
    drop table t2;
    
    create table t2 (a number, b number);
    
    drop sequence test_seq
    /
    
    create sequence test_seq increment by 2 minvalue 0
    /
    
    insert all
    when 1 = 1 then
      into t1 (a, b) values (test_seq.nextval, 1)
    when 1 = 1 then
      into t2 (a, b) values (test_seq.nextval  - 1, 1)
    select 1, 1 from dual
    /
    
  • How to use several different sections of the same clip in the timeline?

    Hey, I used this tutorial as a reference for editing. I have my own equipment I want change, which includes several takes different. Is it possible to use several different sections of the same clip in the timeline? You know, like the good part of a certain record keeping. I appreciate any assistance. Thank you

    Post edited by: Kevin Monahan

    Reason: changed the title of best research opportunities

    I prefer to put the clip in the Source monitor Panel, then set the points and exit. From there you can simply drag the section of the element in the sequence.

    Or, you can make a subelement, the section will have a distinct element in the bins in the project Panel. You should always keep the original material, but now you can have real subitems to work if you prefer.

  • Prime Minister CC does not allow me to add several MTS files in the same sequence?

    Hello. I've been shooting on a Sony A7s ii. When editing first CC does not allow me to add several MTS files in the same sequence? It will add the audio but no Visual.

    Any ideas?

    Hi Bunglefoot,

    Hello. I've been shooting on a Sony A7s ii. Which first CC edition does not allow me to add several MTS files in the same sequence? It will add the audio but no Visual.

    Please visit this link:

    FAQ: Why no audio or video will not at the track where I let down?

    Thank you

    Ilyes Singh

  • I TRIED TO BUY PHOTOSHOP LIGHTROOM PACKAGE AMD AND SAYS IS NOT POSSIBLE IN PUERTO RICO UNITED TERRITORY OF THE UNITED STATES. WHY?

    I TRIED TO BUY PHOTOSHOP LIGHTROOM PACKAGE AMD AND SAYS IS NOT POSSIBLE IN PUERTO RICO UNITED TERRITORY OF THE UNITED STATES. WHY?

    The associated profile adobe ID is registered with countries like United Stated minor remote islands.

    Creative cloud is not available in this country.

    We have creative Cloud available in Puerto Rico.

    Please see the change of the country associated with your Adobe ID.

    To change the Adobe ID, you can check your Adobe ID account management

    For further help please contact the Support from Adobe on the Customer Contact

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Is it possible to store parameters to script with the InDesign file?

    Hello

    I have a crazy idea: it is possible to store parameters to script with the InDesign file?

    In this case the Scripting Guys will be able to store these settings with the file, and when the script runs - he can check if those setting exists - if so - script can run without showing the dialog with the settings... (like all the necessary parameters are stored with the indesign file), and of course we can force InDesign to display the script dialog parameters if run us with the alt/option key pressed when executing this script. Maybe even different scripts will be able to share these settings and interact with each other... We will be able to have the settings will be saved with the file, or temp settings for the document assets or session (till InDesign is closed). With eventListeners and commissioning, scripts, that we will be able to make scripts that would be able to check updates and automatically run when we placing images and text and so on... This can be a set framework of InDesign scripting, allowing to write scripts that use ui and same libraries so we don't have to write everything from scratch every time and just included required libs...

    So here are 2 great questions for now:

    (1) is it possible to store script with .indd file settings

    (2) who is interested in creating InDesign scripting (because it only makes sense if it will use a lot of people)

    PS: I know that it is possible to store settings in an external file, but this time, I'm interested only to save the params with .indd

    The syntax of the function to write the label:

    app.activeDocument.insertLabel('myLabel', 'myLabelValue');
    

    IMPORTANT: If you forget the name of the label, the label is LOST! Really? YES, REALLY!

    The syntax of the function for the reading of labels:

    var myLabel = app.activeDocument.extractLabel('myLabel');
    

    http://indisnip.WordPress.com/2010/07/31/saving-script-data-within-document/

  • Two objects with the same name

    Hi all

    In my production database, there is a materialized view and a table with the same name. The two objects have the same number and type of columns.

    Record from user_object table

    OBJECT_NAMESUBOBJECT_NAMEOBJECT_IDDATA_OBJECT_IDOBJECT_TYPECREATEDLAST_DDL_TIMETIMESTAMPSTATUSTEMPORARYGENERATEDSECONDARYNAMESPACEEDITION_NAME
    TEST_OBJ151373151373TABLE22/06/201222/06/20122012-06 - 22:15:39:30VALIDNNN1
    TEST_OBJ152287MATERIALIZED VIEW22/06/201208/03/20122012-06 - 22:16:08:46VALIDNNN19

    I have another mode to normal display, TEST_NORMAL_VIEW, which selects the data of TEST_OBJ.

    Then, on which table data select. Please give some input on this subject.

    Kind regards

    Matondo

    A materialized view has 2 objects internally for her

    1. the materialized view (it is more of a model)

    2. the table that stores the actual data.

    So when you create a materialized view, you can see 2 objects created by querying the USER_OBJECTS.

    See this

    SQL> create materialized view my_test_mv as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV';
    
    OBJECT_TYPE        OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE              MY_TEST_MV                  1638964
    MATERIALIZED VIEW  MY_TEST_MV
    

    Now, you may notice that DATA_OBJECT_ID has null for the MV. DATA_OBJECT_ID is the Segment where the data is stored. As MV object is just a model and does not have data to null.

    The user has no direct access to the MY_TEST_MV table. See this

    SQL> drop table my_test_mv;
    drop table my_test_mv
               *
    ERROR at line 1:
    ORA-12083: must use DROP MATERIALIZED VIEW to drop "KARTHICK"."MY_TEST_MV"
    

    Also, you can associate an existing table to a materialized using the clause ON TABLE PREDEFINED view.

    Here is an example

    SQL> drop materialized view my_test_mv;
    
    Materialized view dropped.
    
    SQL> create table my_test_mv_new as select * from emp;
    
    Table created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    
    SQL> create materialized view my_test_mv_new on prebuilt table as select * from emp;
    
    Materialized view created.
    
    SQL> select object_type, object_name, data_object_id from user_objects where object_name = 'MY_TEST_MV_NEW';
    
    OBJECT_TYPE         OBJECT_NAME          DATA_OBJECT_ID
    ------------------- -------------------- --------------
    TABLE               MY_TEST_MV_NEW              1638967
    MATERIALIZED VIEW   MY_TEST_MV_NEW
    
    SQL>
    

    Once you associate a Table with a MV direct Table access is limited. You can directly access only the MV.

  • MC placed several times and given the same instance name?

    Hi all, I'm pretty new to the code in flash.

    I especially used to use object oriented programming, but in flash, I do everything in an image.

    I'm a car game. A little style GTA, but very simple. You are a police car and chasing you a thief through a city.

    The thief uses ground nodes to know where it can lead, and where he can turn.

    Basically, here's the scene. I placed these objects directly on the stage and given some of them instance names. :

    _________________________________

    |      O

    |  I have o

    |            _______________________

    |            |

    |            |

    |            |

    |            |

    |      ^     |

    |      |     |

    |     X     |

    The is a MC named node_switch.

    The O is the two objects of the same MC, who both are named node_stop

    The X is the thief (mc), and it's driving up along the road.

    When the thief strikes node_switch, it will look up, down, left and right if any node_stop is placed.

    This is done with hitTestObject. the thief 'beams' invisible in 4 directions, inside it's MC.

    The problem is as follows:

    When several nodes are placed on the stage, the thief faces only one of them.

    As I said, they have the same instance name.

    Is there a way to be able to place them directly on the stage, give them all the same instance name and make a loop where it goes through each of them and check the collision?

    Edit:

    Or maybe it is possible to place them directly on the stage, give them the name of bodies such as 'node_switch01', 'node_switch02' and then check for them all at the same time in a loop for or in some other way? There will be a lot of knots, then...

    If you name them all differently, you will have an easier time of it.  Loop through them with the naming convention, you suggested that you can use the notation of support, but it would be easier to get rid of zeros...

    for (var i: uint = 1; i<=numNodes;>

    {if (Thief.hitTestObject (this ["node_switch" + String (i)])}

    don't go that way

    }

    }

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    Ideas: I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    • Pragrams you have problems with
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

    ------------------------------------------------------

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    ----------------------------------------------------

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for