Detecting files in a folder

Hi.
Is it possible for flash to detect the number of files (ie.
images) stored in a folder / directory on the server or local
machine. In the same way that it can look into an xml file and
detect the number of nodes (i know this is completly different but
its the best way i can explain it). What i want to do is load
images dynamically into flash without having to know how many
images are in the folder before hand. I know i can do this with an
xml file to direct flash to each image and update the xml
accordingly but i am wondering if it is possible to get flash to
detect this automattically?
thanks
Barry.

hey barry,
i just went through the same exact thing (check out my post:
dynamic insertion) and it turns out that flash can not search out a
directory and detect its contents. wish it could, man.
_name

Similar Messages

  • Import Server detects file in Ready folder but does not process

    I have a problem where MDIS detects a file in the ready folder, but it does not launch the import:
    2772 2008/10/22 23:37:52.240   1.xml
    Source file retrieval: Delta: 0.001451 seconds.  
    2772 2008/10/22 23:38:23.428   1.xml
    Source file retrieval: Delta: 0.001151 seconds.  
    2772 2008/10/22 23:38:54.678   1.xml
    Source file retrieval: Delta: 0.006335 seconds.  
    2772 2008/10/22 23:39:25.897   1.xml
    Source file retrieval: Delta: 0.011595 seconds.  
    2772 2008/10/22 23:39:57.272   1.xml
    Source file retrieval: Delta: 0.003268 seconds.  
    2772 2008/10/22 23:40:28.507   1.xml
    Source file retrieval: Delta: 0.006276 seconds.
    The log file shows the above.  You can see it detects the file is there, but since it does not launch the import it does not process the file or even move it to the exception or archive folders.  I have confirmed settings in the MDIS.ini file, e.g. password, etc.  I can import the same file using Import Manager without any errors.
    Please help!

    Hi Jitesh,
    Your suggestion to try a different file type yielded positive reults.  I created a simple tab delimited text file and import map and changed the existing Port from using XML based on the MATMAS05 schema to using the text file.  The log shows:
    6056 2008/10/23 17:32:34.066   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: ImportTask: Task started. Chunk size[50000], No. parallel chunks[5]
    4572 2008/10/23 17:32:34.144   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xStructuralTransformer: Thread started.
    1160 2008/10/23 17:32:34.144   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xValueTransformer: Thread started.
    4192 2008/10/23 17:32:34.144   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xImporter: Thread started.
    4572 2008/10/23 17:32:34.144   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xStructuralTransformer: Thread finished; Start -> End: 0.000000000 seconds.
    1160 2008/10/23 17:32:34.160   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xValueTransformer: Thread finished; Start -> End: 0.000000000 seconds.
    4192 2008/10/23 17:32:34.660   Repository Load Successful. [JAN Master]: Delta: 0.085377 seconds.  
    4192 2008/10/23 17:32:35.958   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: xImporter: Thread finished; Start -> End: 1.000000000 seconds.
    6056 2008/10/23 17:32:36.458   [MDS=ROBLB2K1H2J Repos=JAN Master ClientSystem=U2K2_MDM Port=Materials_from_U2K2_MDM]: ImportTask: Task finished. Chunk size[50000], No. parallel chunks[5]
    4192 2008/10/23 17:34:11.133   22355-3-1-10-23-08-06-32-57_081023-063303_999.xml
    Source file retrieval: Delta: 0.006444 seconds.  
    4192 2008/10/23 17:34:11.242   Repository Load Successful. [JAN Master]: Delta: 0.028803 seconds.  
    4572 2008/10/23 17:34:43.825   22355-3-1-10-23-08-06-32-57_081023-063303_999.xml
    Source file retrieval: Delta: 0.003005 seconds.  
    4572 2008/10/23 17:35:16.018   22355-3-1-10-23-08-06-32-57_081023-063303_999.xml
    Source file retrieval: Delta: 0.010113 seconds.  
    4572 2008/10/23 17:35:47.742   22355-3-1-10-23-08-06-32-57_081023-063303_999.xml
    Source file retrieval: Delta: 0.001994 seconds.  
    4572 2008/10/23 17:36:19.419   22355-3-1-10-23-08-06-32-57_081023-063303_999.xml
    Source file retrieval: Delta: 0.012413 seconds.  
    The text file was immediately picked up and imported.  This thus proves that (1) MDIS is functioning, (2) user / password is correct.  Unfortunately you will also see from the log above that when I changed the port back to run on XML the problem has not been resolved.
    Any ideas?

  • To delete clean up software which removes file from temp folder

    when i pause a download and switch off the system and resume it after 2 or more days an error c:\Documents and settings\ ....etc couldn't save the file appears. Some one replied me in this forum that i may 've cleanup software which has deleted the file in temp folder. How to detect and delete this cleanup software if i have it ? i don't know if i've this because i haven't seen it in my program list. i'm using windows xp.
    == This happened ==
    Every time Firefox opened

    when i pause a download and switch off the system and resume it after 2 or more days an error c:\Documents and settings\ ....etc couldn't save the file appears. Some one replied me in this forum that i may 've cleanup software which has deleted the file in temp folder. How to detect and delete this cleanup software if i have it ? i don't know if i've this because i haven't seen it in my program list. i'm using windows xp.
    == This happened ==
    Every time Firefox opened

  • Counting files in a folder and showing results in an alert window.

    Hello all.
    I would like to get the script to count the number of files in a selected folder.
    I have a UI where there are browse, ok and cancel buttons.
    I wanted the OK button to show the number of jpeg files in the selected folder. If no folder is selected, and the OK button is pressed, it would prompt the user to select a folder before pressing the OK button.
    Thanks!

    all you need to learn scripting is in the "JavaScript Tools Guide", you're making some progress but reading that and following the samples will make things clear and speed the learning proccess up.
    if you look at your code there's only one function, it is called when the Browse button is clicked. See how it is constructed and write another similar function for the Ok button, in there read the contents of the label box and create a folder with that path, then call the function to read the files.
    dlg.Panel1.okBtn.onClick = function (){
       selectedFolder = new Folder(decodeURI(dlg.Panel1.Path.text));
       if (selectedFolder.exists)
            doSomething (selectedFolder);
       else
            alert("select a folder first...");
    dlg.center(); //center dialog box on screen
    dlg.show(); //show dialog box
    function doSomething(folder)
            files = folder.getFiles();
            alert(files.length + " Files in selected Folder");
            alert(files);

  • Archiving  file in different folder in sender file adapter

    Hi,
    I have a requirement in witch i have to pick 7 different file from seven different folder.
    for this I am using advance selection tab and defining all the other folder path.
    but my problem is I have to archive the different file in different folder .
    For exm..
    /folder1/file1.txt need to be archive in /archive_filder1/file1.txt
    /folder2/file2.txt need to be archive in /archive_filder2/file2.txt
    /folder3/file3.txt need to be archive in /archive_filder3/file3.txt
    can any one tell me that how to  define the dynamic  archive folder path??.
    regards,
    Navneet

    Hi Navneet
    In File Access parameters --> Target Directory
    Use this type of Directory name
    \XIDEV_STORES\%store%\sapoutbound
    here %store% will be changed accordingly
    e.g. if file will come for store 001 then this %Store% will be replaced by 001 and file will be placed in this 001 folder and if file will come for store 002 then this %Store% will be replaced by 002 and file will be placed in this 002 folder over FTP.
    For to achieve this Go to Advanced tab 
    For Variable Substitution check mark Enable
    Now speciofy the parameter values for Variable Name and Reference
    Under Vriable name specify = store
    Under Reference specify = payload:WP_PLU02,1,IDOC,1,EDI_DC40,1,RCVPRN,1     -
    You have to give full path name here that where this store variable is located into IDOC.
    Hope this example will help you
    Regards
    Dheeraj Kumar

  • To Place the XML file from one folder to another folder in AL11

    Hi All,
      Here my requirement is to create the quotes using XML document. The XML document will come from the Application server. this one is fine.
    Now my prob is after processing the XML file, we have to place the XML file into another folder.
    Please let me know how to move the data inot XML file.
    Now iam reading the data into one variable V_string(it will contains the total XML file). From this variable how to move the data into APplication server.
    Please do the needful.
    Regards,
    Sreehari

    Hi,
    Use FM WS_FILE_COPY To FIrst Copy the File to some Location
    and Next Use FM TMP_GUI_DELETE_FILE To Delete the File from Old LOcation.
    Regards
    Bala.M

  • To relocate mail.log, mail.log_current file to specific folder

    Hi
    We have configured CommSuite 6 in single host. The output of “imsimta version”:
    Sun Java(tm) System Messaging Server 7.0-0.04 32bit (built Jun 20 2008)
    libimta.so 7.0-0.04 32bit (built 01:01:00, Jun 20 2008)
    Using /opt/sun/comms/messaging/config/imta.cnf
    SunOS mail 5.10 Generic_120012-14 i86pc i386 i86pc
    Output of imta_tailor file:
    IMTA_USER=mailsrv
    IMTA_USER_USERNAME=nobody
    IMTA_WORLD_GROUP=mail
    IMTA_LOG=/logs/messaging/imta
    IMTA_PRIMARY_LOG=/logs/messaging/imta/mail.log_current
    IMTA_SECONDARY_LOG=/logs/messaging/imta/mail.log_yesterday
    IMTA_TERTIARY_LOG=/logs/messaging/imta/mail.log
    We need to relocate mail.log, mail.log_current, mail.log_yesterday file to specific folder.
    After above setting we cannot be able to relocate above file.
    Pl. help us.
    Thanks
    P.K.

    world.group wrote:
    We have configured CommSuite 6 in single host. The output of “imsimta version”:Please note that CommSuite 6 update 1 is now available and it is advisable that you upgrade using the "commpkg upgrade" command.
    IMTA_LOG=/logs/messaging/imta
    IMTA_PRIMARY_LOG=/logs/messaging/imta/mail.log_current
    IMTA_SECONDARY_LOG=/logs/messaging/imta/mail.log_yesterday
    IMTA_TERTIARY_LOG=/logs/messaging/imta/mail.logThese parameters are now ignored as per the Messaging Server 7.0 release notes:
    http://wikis.sun.com/display/CommSuite6/Messaging+Server+7.0+Release+Notes#MessagingServer7.0ReleaseNotes-Ignoredimtatailorsettings
    We need to relocate mail.log, mail.log_current, mail.log_yesterday file to specific folder. You can relocate the MTA log directory through the use of symlinks.
    Regards,
    Shane.

  • Does itunes automatically copy files to its folder?

    If I download music from a website to my desktop, and then doubleclick the icon on my desktop, it starts playing in itunes. But it also looks like it saves a copy of the file in the itunes music folder. Can i just safely delete the files off my desktop now (and still play the music in future) because they have been automically copied into the itunes folder?
    Also, is there a way to turn this feature off, so that I can still play the music by clicking on the icons on the desktop, but itunes doesn't automatically copy the files into its folder?

    Hi Jeff,
    iTunes does put a copy of the song in your Music Folder, and yes, you can delete the file off your Desktop as soon as it opens in iTunes, I'll take a minute now to see if you can turn off the automatic copying feature.
    Edit:
    You can turn off the auto-copy setting by going to iTunes-Preferences-Advanced-uncheck the box next to "Copy files to iTunes Music Folder when adding to library"

  • Importing All the files from a folder at a time

    Hi....
    Can any body tell me how to import set of files from a folder into IDM.
    It is becoming very difficult to import the files one after other....
    Waiting for Reply....
    Thanks in advance..........

    We used an ant script to build an XML file that will contain the files. The script is configured to use the folder structure of our CVS repository.
    We'd checkout our XML module and then run the build script and import the resulting init file.
    Code to the script is below -- caveat emptor. You'll need to change the folder structure to suit your own environment.
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="MyInit">
        <target name="init">
            <property location="." name="src.dir"/>
            <property location="." name="dest.dir"/>       
            <property name="project.name" value="${ant.project.name}"/>
            <property location="${dest.dir}/MyInit.xml" name="MyInit.output"/>
            <property name="source.configuration" value="${dest.dir}/configuration"/>       
            <property name="source.emailTemplate" value="${dest.dir}/emailTemplate"/>
            <property name="source.forms" value="${dest.dir}/forms"/>
            <property name="source.reports" value="${dest.dir}/reports"/>               
            <property name="source.resource" value="${dest.dir}/resource"/>          
            <property name="source.rules" value="${dest.dir}/rules"/>
            <property name="source.workflow" value="${dest.dir}/workflow"/>
            <!-- get the source path -->
            <path id="configuration.path">
                <fileset dir="${source.configuration}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="cp" refid="configuration.path" />
             <path id="emailTemplate.path">
                <fileset dir="${source.emailTemplate}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="ep" refid="emailTemplate.path" />
             <path id="forms.path">
                <fileset dir="${source.forms}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="fp" refid="forms.path" />
            <path id="reports.path">
                <fileset dir="${source.reports}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rptp" refid="reports.path" />                 
            <path id="resource.path">
                <fileset dir="${source.resource}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rep" refid="resource.path" />        
            <path id="rules.path">
                <fileset dir="${source.rules}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rp" refid="rules.path" />
            <path id="workflow.path">
                <fileset dir="${source.workflow}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="wp" refid="workflow.path" />
            <!-- get the path prefix -->
             <path id="source.path">
                <pathelement location="${src.dir}" />
             </path>
             <property name="sp" refid="source.path" />       
        </target>
        <target depends="init"  name="win_init">
            <!-- change the path of xml files to windows path -->
            <property name="importfile.path" value="${sp}"/>                            
        </target>              
        <target depends="init" name="make">
        <!-- using XML character entity references to escape
        <  <
        >  >
        '  &apos;      -->    
            <echo file="${MyInit.output}" append="false"><?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    ${cp}
    ${ep}
    ${fp}
    ${rptp}
    ${rp}
    ${wp}
    </Waveset>
            </echo>
         <!-- replace path prefix with ImportCommand -->
         <replace file="${MyInit.output}"
                  token = "${sp}"
                  value = "<ImportCommand name='include' file='${importfile.path}" />
         <!-- deal with file and path separators in an os independent way -->
         <replace file="${MyInit.output}"
                  token = "${file.separator}"
                  value = "/" />        
        <replace file="${MyInit.output}"
                  token = "${path.separator}"
                  value = "${line.separator}" />
        <replace file="${MyInit.output}"
                  token = ".xml"
                  value = ".xml'/>" />
        </target>
        <target depends="init,win_init,clean,make" description="Build everything." name="all"/>
        <target depends="init" description="Clean all build products." name="clean">
            <delete file="${MyInit.output}"/>
        </target>
    </project>

  • HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no ma

    HELP. ............Hi folks hope some one can help me please.Having a problem in Bridge I open my images in ACR,  as I open files in a folder and lets say they are labeled in yellow  they are all going back to  the camera raw default , in other words no matter what work I have done, inc cropping they  all go back to ,as they came out of camera. What on earth is happening? I am on PS CS6. I might point out everything was working normally up to  yesterday, when this first started.
    I recently changed computer to 64bit from 32bit, not sure if this causing  the problem or not. Any help would be appreciated.

    Robert,
    Would you be so kind to rephrase your question with concise, precise information and without any "let's say that" hypotheticals?  Sorry, I can't quite follow you.
    Also please give exact versions of Photoshop CS6 (13.what.what), of Bridge and of your OS.
    Thanks.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Authenication needed when moving or saving files to a folder

    I've been online searching but can't find a resolution to disabling having to authenticate when moving or saving files to any folder.
    I read something about using Terminal and tried the suggestion which was typing in
    sudo chawn -R yourshortname . Then putting in my password when prompted. It either will not type my password or not accept it.
    Can anyone help? Thanks

    You can't disable or correct it with that command. See http://discussions.apple.com/thread.jspa?threadID=1216618 for more information.

  • FILE DELETE FROM FOLDER

    HI ALL,
    I AM USING THIS METHD FOR DELETING THE FILE FROM THE
    FOLDER  BUT I DONT KNOW WHAT VALUE SHULD I PASS TO THE RC.
    CALL METHOD cl_gui_frontend_services=>file_delete
      EXPORTING
        filename             = 'E:\FOLDER1\TEST1.XLS'
      changing
        rc                   =
    THANKS AND REGARDS,
    SUGEET.

    Hi,
    You should declare a local variable of TYPE I and pass it to RC. RC is nothing but a return code set by system upon successful deletion or otherwise of the file that you have specified for filename.
    Some thing like the following,
    DATA: lv_subrc TYPE i.
    CALL METHOD cl_gui_frontend_services=>file_delete
    EXPORTING
    filename = 'E:FOLDER1TEST1.XLS'
    changing
    rc = lv_subrc.
    IF lv_subrc NE 0.
    ****Deletion failed..
    ENDIF.
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • KIO (Dolphin) is failing to detect file changes automatically.

    I am facing something very similar to the following bug.
    https://bugs.kde.org/show_bug.cgi?id=207361
    Dolphin opened to a directory. Konqueror opened to the same directory. If I delete a file from that folder via console Dolphin doesn't update the file list. Konqueror does.
    Can anyone else test it?
    Any option I should check?

    Hi,
    Is your windows activated?
    When performing Windows Updates, you may encounter the error message: "Failure configuring Windows updates. Reverting changes. Do not turn off your computer."  During this time, the computer may reboot multiple times in order to revert changes. 
    Please do not interrupt this process.
    This issue normally occurs when Microsoft Windows has not been Activated.  To resolve this issue, please Activate Windows prior to installing Windows Updates.
    If you have any update, please feel free to let us know.
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • When using Iphoto to import photo from existing folder, what happens if I delete the photo in Iphoto ? Will the original file in the folder be deleted too?

    When using Iphoto to import photo from existing folder to iphoto, what happens if:
    1. I delete that photo in iphoto? will the original file in the folder be deleted too ?
    2.  when importing, does the hard disk store 2 versions of the photo, hence occupying additional space in the harddisk?

    1 - no  --  iPhoto only manages fiel within the iPhoto library - it does not ever do anything with files outside the library
    2 - No idea what you are asking - by default (and strongly recommended) iPhoto copies the original to the iPhoto library and you delete the source file outside the iPhoto library - iPhoto alwasy has at least two versions of every photo and some times three - it always have the original, a thumbnail and once a photo is modified a preview - this is not optional - if it is not what you want then iPhoto is not the correct progrtam to be using for phopto management
    LN

Maybe you are looking for

  • Why would I stay with Verizon?

    Hello,   I am just writing to get this on file how displeased I am with Verizon. I switched back to Verizon just over a year ago because of the service coverage Verizon provides. I will be leaving Verizon when my contract is up because of the poor qu

  • I have tried everything! ("service error/reinstall itunes")

    Just for reference, I'm getting 2 error messages (Using Windows XP and iPod color). One, when I try to connect my iPod my PC recognizes it but I get this error message when I open iTunes: The software required for communicating with the iPod is not i

  • Compare two string in different line in textarea

    import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TextCounterPanel extends JPanel { private JTextArea textInput; private JLabel lineCountLabel;                     public TextCounterPanel() {                     setBackgr

  • Window Size in Time Machine

    Does anyone know how to set a custom window size for the Finder window when entering Time Machine? Whenever I enter Time Machine, the Finder window is resized and it gets really annoying. I know how to resize it when I'm in Time Machine, but I want t

  • Odds of Getting One?

    Anyone else think its gonna be hard to grap a iPad now? Seeing as its 3, almost 4 weeks into its release date. Im going to the city tommorrow and im going to be trying out 3 Apple Stores. Im in NYC so im guessing its gonna be hard but im also hoping