Create an array of strings of names of JPEG in a folder

I create a dynamic flash Gallery. I have filled external files with thumbnails, which are named descriptive. I was wondering if there was a way to create a string array of the names of JPEG (by file), then use that to drive my charger loop, instead of 'pic' + i + '.jpg', something like picArray [i], or picArray [i] + '.jpg '. I honestly don't want to rename hundreds of files named way descriptive pic1, pic2, etc., that I I want to use descriptive file name in the SWF file. In addition, if the user wants to browse the contents of the file without the SWF, they have an idea of what is the image. Any help is appreciated. Thanks in advance!

lol you need to use a 3rd party (such as zinc) application or use another application like adobe air.

Tags: Adobe Animate

Similar Questions

  • How to create an array of strings listing by program?

    How to create an array of strings listing by program? I'm trying to programmatically create an Enum containing a list of tests to run, based on the selection of the user.

    My code ranging from control on LAVA has a demo VI to convert an array of strings of an enum.

    Tone

  • Create the VISA of String resource name

    Hi all.

    I'm newbie working with VISA screws. I would create a resource name VISA from a string containing only the alias VISA, for example, COM4. The reason is that the serial port is chosen via a dialog box created by a node call library feature.

    Thanks in advance,

    Francisco

    Hello

    You can use a cast to this type. See the example.

    Kind regards

    Amine31

    (Give congratulations to good answers and Mark as a Solution If your problem is resolved)

  • How to convert an array of string elements to a cluster with elements named different data types?

    I'm looking for more help with the conversion of an array of elements of the chain in a cluster containing elements named different data types.

    I am importing data from an Excel worksheet.  He is coming in LabVIEW as separate (channels) 3 tables: 1) Variable name, (2) three possibilities Int, double, String) data type and the value 3), with the clues in each table corresponding to a separate variable (I have about 180 variables to import).  My ultimate goal is to convert the string array of 'Value' in a cluster.  But I want the correct data type in the cluster and I also the elements of the cluster name to match with the string 'Variable name' table so that I can use the Unbundle based on the name in my main VI.

    Please see attachment a Subvi for more details.  I did the size of the new items of tables 5 for simplicity.   I realize that labels property cannot be changed during execution and I don't think I need to do.  I just want to use the production cluster (mainly the unbundle by name) to help design my main VI.  I will need to 'read' and 'write for' the cluster during execution, but I won't need to change the names of the items.

    I was also wondering if there is a better way to import data from Excel?  Is it possible to import directly into a cluster immediately rather than put everything as strings?  I have attached a Subvi showing how I currently bring in data (found on the forum somewhere).  It comes as table 2D, which I divided into 3 separate tables that I mention above.

    I am open to any suggestion.  Thank you very much.

    -Mike

    Instead of trying to create a cluster, I think I would use only variant attributes.

  • String array to strings

    Hi everyone, thank you for your time.

    I recorded in a file of data like this:

    name address telephone e-mail, etc.

    Each field is separated by a tab (\t) delimiter.

    I have read each line of the file with the text file reading and read audit function lines, and then use the index string array, the result is: each while the iteration I can get the full range of text (String), I want to convert this string with fields of tab separated in an array of strings.

    Example:

    input string (name address phone email)

    Output of the elements of the string array: name

    address

    Phone

    E-mail

    Thank you all, I would appreciate any help.

    Get a constant table and create a string array, then you can change your output data type.

  • Array of strings of text written in the worksheet in LabView 8.0

    Hello

    I've used LabView 8.5 to perform the next action, but as I am now working on another system I'm currently forced to use LabView 8.0 (Windows XP) and would like to avoid the upgrade to LV8.5 +. However if I can't do the following so I'll have to!

    I am wanting to create a worksheet and I use the 'Write to worksheet File.vi' block in LabView. However, as I want to have included column headers, I build an array of strings using the block 'building the table '. This table is then injected into the entry "1 D data" on the block "write to the worksheet. The format for the spreadsheet block is defined by a string with '%s' to enter the entrance of "Format". In LV8.5, the table connects well, but in LV8.0, when I connect the output of the array of strings to the 1 d data entry, the wire becomes broken. The same happens when I use the 2D data entry.

    If I don't do something wrong, how can I put headers in my spreadsheet file? Is it possible in LV8.0, or should I upgrade?

    Thanks for the help!

    There are also detailed instructions on the block diagram of the writing on a file spreadsheet on how to modify it to write strings. Be sure to save it under a new name and in a new location.

  • How to insert values of array of String in BPM

    Hello

    I have defined an array of strings in the business object, created a data object and want to fill/insert values inside. I searched a lot of messages and tried several options but no luck.

    My BO:

    " < xs: Schema targetNamespace = ' http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "elementFormDefault ="qualified"xmlns =" http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "" xmlns: XS = " http://www.w3.org/2001/XMLSchema " xmlns:bpmo =" http://xmlns.Oracle.com/BPM/bpmobject/ " > ""

    < name XS: complexType = "SimpleArrayBOType" >

    < xs: SEQUENCE >

    < name XS: ELEMENT = "attr1" nillable = "true" type = "xs: String" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < xs: element name = "SimpleArrayBO" type = "SimpleArrayBOType" / >

    < / xs: Schema >

    Add a script task and tried different ways to fill in the values.

    Basic ['a', 'b'] also fails with the error expected "-result tree fragment" rather than "string".

    How to manually enter the values?

    Thank you

    Chandra

    Because your input is coming from a few strings and not a table, you can just add a Script activity to your process and to define table of your target XSD using XML.

    To do this, you must add a Script to the activity-> in the "Application" tab click on 'Data Associations'-> dragging the "Expression" icon above your target object on the right side (not the table but the table parent)-> open the XPath expression box in the Middle-> click 'XPath Exp' in the drop-down list at the top.

    I used your XSD to create the XML file for the logic below:

    oraext:ParseXml (concat ('))

    http://www.w3.org/2001/XMLSchema-instance '.

    "" xsi: schemaLocation = "http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO xsd/mySimpleArray.xsd.

    xmlns ="http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO" >. "

    ', bpmn:getDataObject('string1') '

    ', bpmn:getDataObject('string2') '

    '))

    When I 'bpmn:getDataObject('...')', you should rather to insert your data object variables both your process chain.

    Hope it gets you going,

    Dan

  • Array of strings for DNS in workflow Clone VM

    The VM Clone with single NIC workflow requires an array of strings as a parameter inut DNS servers. I'm not sure how to pass an array to this parameter. In c#, I have:

    String [] dnsArray = {"10.130.132.109", "10.130.132.108"};

    dns1Attribute.name = pmArray [18] .name;

    dns1Attribute.type = pmArray [18] game;

    dns1Attribute.value = dnsArray;

    attributeArray [18] = dns1Attribute;

    However, c# generates an error 'cannot implicitly convert type() Sting in string' for line 4. I tried passing a single string as attribute value, but it doesn't seem to work either - no value is entered in the workflow when it is running.

    Anyone have any ideas on that. An example of Java would be nice too - I am flexible.

    Thank you!

    Hi geno5150,

    here how to create a table to pass:

    var monTableau = new Array();

    MyArray.push ("10,20,30,40");

    MyArray.push ("192.168.100.254");

    For this move as an attribute:

    var AttrArray = newArray();

    var Attr = new Attribute();

    Attr.Name = '< ParameterName > '.

    Attr.Value = myArray;

    Attr.Type = "Array";

    AttrArray.push (Attr);

    push the other attributes & run the workflow

    That's all

    -

  • easier way to sort the array of strings 2D?

    I have an array of strings long 2d, and I would like to sort by the value 2. It originated as:
        public static final String names[][] = {
         {"000000", "Black"},
         {"000080", "Navy Blue"},
         {"0000C8", "Dark Blue"},
         {"0000FF", "Blue"},
            {"000741", "Stratos"},
            ...
         {"FFFFF0", "Ivory"},
         {"FFFFFF", "White"}
        };
    As you can see, they are first sorted by hexadecimal values. It is useful for the part of the application.

    There are 1 567 entries. I want to the alphabetize the names of color and place them in a widget from the list. I need to retain the values to hexadecimal color associated with name values. All I can think to do something like:

    (1) to a temporary array of strings of length 1 - d
    2) fill loop that adds hexadecimal values in the values of name: temp [i] = new String (names [1] + names [i] [0])
    (3) sort [temporary] with built in the sort of Java
    (4) make a permanent new string, [hexValues] array to hexadecimal values
    (5) copy the last 6 characters of each item to [hexValues]
    (6) to truncate the last 6 characters of each element in [temporary]
    (7) create widget with [temporary] list

    Is there a more elegant way? What I really want to do is build an array of int 1 d, with the values that represent locations in alphabetical order of the names. However, I see no integrated whole that would make this kind of indirect type.

    - - - - - - - - - -
    Second question - can the bottom of each item in a list widget be a different color? Ideally, the list would display in black or white color name and its value of color as the background. Specifically, I am trying to build the list produced by the JavaScript here:

    * http://chir.ag/projects/name-that-color/

    and add it to my Java interactive color wheel:

    * http://r0k.us/graphics/SIHwheel.html

    - - - - - - - - - -
    BTW, I've converted its name this Javascript (ntc.js) color to a native Java class. It is freely distributable, and I have the host here:

    * http://r0k.us/source/ntc.java

    -Rich

    Published by: RichF October 7, 2010 19:04
    Stupid forum software; I don't see what he did go italic the new Word.

    People forget that a 2D array is essentially a table 1 d of paintings.

    colorNames.add(new colorName(ntc.names[1], ntc.names[0]));
    

    The above code attempts to pass arrays as parameters to your Builder, but your Builder expects a String object.

  • Convert an array of strings 1 d

    Hello

    I am creating headers in a write to a text file.  Attached, it's my code and the file looks like when opened in Excel. I have my data in three columns, but the headers are not where I need them. LabVIEW does not seem to allow a conversion of an array of strings. Is it possible that I can get the headers in a row format and not a column?

    Thank you

    Something like that.

  • Return an array of strings of call library function node

    Hello

    I'm having a few problems getting the following work.

    I have a camera from a manufacturer that came with its own .dll and header files. I'm calling the LabVIEW .dll file (2011). In total, there are about 50 functions, and there is a rest that I can't go to work (probably because I understand enough about the topic to interface with an external code).

    The description of .dll is delivered with the following text:

    #define length

    #define MAX_CONFIGURATIONS

    Prototype: int ConfigListGet (char (& sConfigurations) [MAX_CONFIGURATIONS] [length]);

    and the header file with:

    extern "C" __declspec (dllexport) int RepRateConfigurationListGet (char (& sConfigurations) [MAX_CONFIGURATIONS] [length]);

    The function should return an array of strings to the list of configurations.

    The problem I have is that I can not understand how to return the array of strings for the node of the library function call to LabVIEW. I looked a little on the web and the examples in LabVIEW and I can't find anything specific to return an array of strings in this way, so if anyone can point me in the right direction I would really appreciate it.

    Also, if I click with the right button on the node library function call and click on "File Create.c", I would be able to create the prototype of function even that above? I tried this but no luck. Was the closest I came:

    int32_t RepRateConfigurationListGet (char sConfigurations [], uint8_t MAX_CONFIGURATIONS, uint8_t MAX_LEN);

    Thank you very much in advance for any help!

    D

    Hello!

    I tried once using an array of U8, converting it to a string and then split into an array.

    Here is my old piece of code (the split part can be cleaner ;=))

    Kind regards

    Marco

  • Write array of strings in the text file delimited by tabs without Report Generation Toolkit

    I find that writing in the File.vi worksheet does not Append REAL mode.  http://digital.NI.com/public.nsf/allkb/D1629D863F0442CC86256A0200558A15

    That url describes a workaround solution is to first create a file in Excel, save and then writing adds to it.  This is something that users of my compiled application will simply not do.

    Writing File.vi measure generates tab limited text files but only takes some input signals.

    I would take my array of strings and simply write that in a limited file tab.  Is there really no way to go in LabVIEW without spending $500 one another?


  • Array of strings to a menu control

    Hello

    I want to display my name of the worksheet in Excel as a menu choice for the user. How to make an array of strings as a menu control? Example I got 5 journal name and how can I do as a control?

    See photos attached.

  • Array of strings 1 d out of MathScript node

    I use arrays of cells inside a MathScript node and want to display an array of strings D 1.  I can't get output with this data type by selecting a column of string elements.  He seems to treat the strings as arrays of characters that are extremely difficult to work with.

    I've seen references 2008 who say that MathScript nodes cannot not out of arrays of strings,

    Is this always true?  Is there an example of how to get a string or some kind of workaround?

    My boss came up with a way to do it, as shown in the attached VI.

  • An array of strings as function parameter in loop fails

    Hallo,

    I have a weird problem here and I hope someone can help me find the cause.

    I have a function where I said an array of strings (string_list). I pass the array to a function that does modifactions to the table. I am addressing Walker the array of strings to an index of all the values are stored correctly. When I loop through the array by incrementing the index automatically only the last index value are saved in all positions.

    Why is this? Or what I am doing wrong?

    It is the passage to another function, an array of strings
    int calling_function
    {
    char * string_list [MAX_PATHNAME_LEN]; //< store="" strings="" in="">
    function_called (string_list); passing a pointer to an array of string
    return 0;
    }

    This is the function receives a reference to an array of strings to store data
    int function_called (char * output_list [])
    {
    int i = 0; counter variable
    / * This works and good values are stored in output_list * /.
    output_list [0] = '02 ";
    output_list [1] = '12 ';
    output_list [2] = "22";
    output_list [3] = "32";
    output_list [4] = '42 ';
    output_list [5] = "52";
    output_list [6] = '622 ';
    output_list [7] = "72".

    / * This does not work and will store '31' in all places of the matrix * /.
    < 32="">
    {
    < %d »,="" i) ;="" incrémenter="" la="" valeur="">< br=""> output_list [i] = sample; < br=""> i = i ++ ; < br=""> < br="" >="">

    output_list [0] = '02 "; < br=""> output_list [1] = '12 ';< br="" >="">

    Thanks!

    Hi,.

    When you do

    output_list [i] = sample;

    all of the members of the array have the same value: sample-a char pointer. You are modifying the afterwards glad of sample purpose the previous values still point to sample.

    If you assign values to each array member like:

    you assign different values: a pointer to a string containing "02", pointing to a string contaning "12",...

    If you want to assign values in a loop you need to allocate memory for each string (output_list [i]) and copy the content of sample in them.

    Does this make sense to you?

    Constantin

Maybe you are looking for