How to extract the names of file/URL of all files in a folder (in the same directory of site)?

I am creating an online music player, simple Flash-based; the user clicks on a song in a DataGrid, and then he plays, simple. I displays the information of the song with the ID3 method in the class 'sound', but I don't want to hardcode all the songs in the ActionScript code, because I change them. I created a folder "tracks" in the directory of the site; How can I extract the names of the files in this folder without knowing how many there are by nature, and files without knowing the URL?

Use PHP or another script server to read the contents of the folder and to deliver the names of files for Flash in the form of data (xml or txt).

Tags: Adobe Animate

Similar Questions

  • How to extract the same song, several times using different bit rates or formats and store all the digital music files in WMP 12 default on the same HDD music library

    Using Windows Media Player 12 (w/under Windows 7), "can I ripping the same song, several times, using different bitrates & and/or formats and store all the digital music files in the music library by default WMP - 12, on the same hard drive?

    1.) #1 goal: tear up the same song repeatedly, w / "different rates" as a WMA file.

    2.) #2 goal: tear up the same song repeatedly, w / "different rates" as an mp3 file.

    3.) #3 objective: NOT to each subsequent copy (version) of the song, deleted & and/or replaced by the previous version of the song [even].

    4.) question Bottom Line Up Front--> is Windows Media Player 12 (included with the Windows 7 operating system) are able to achieve '#1 objectives; #2; & #3 above?

    5.) details/example: I want to tear the piece "Maria Maria by Carlos Santana" to my laptop as a Windows Media Audio [WMA] file.  In addition, I would like to rip the song 'Maria Maria' three several times with 3 different bitrates in format WMA; and, as an MP3 file.  Therefore, my final result wished (after the extraction process), will take place the four 4 audio files split up as follows: (a) 'Maria Maria by Carlos Santana'--> Format: file WMA; Ripped @128 Kbps bitrate.  (b) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped to the "Variable bit rate; (c) ' Maria Maria by Carlos Santana'--> Format: file WMA; Ripped commissioning "Lossless." and (d). 'Maria Maria by Carlos Santana'--> Format: MP3 file. Ripped @256 Kbps bitrate.

    6.) my preference: I do NOT want to rename the file (s). {for example, 'Maria Maria by Carlos Santana' renamed/changed for--> "Maria_Maria_by_Carlos_Santana_128kbps.wma",...} 'Maria_Maria_by_Carlos_Santana_256kbps.mp3 '; etc.}.  In addition, I am not concerned about the additional disk space that will be consumed after multiple copies of the same song with different speeds of transmission and different formats.

    7.) my experience w / Windows Media Player 10 (w / the operating system of Windows XP): using WMP - 10, my goal (s) described above is not a problem at all.  Simply insert the CD purchased by Carlos Santana, containing the song "Maria Maria"... Select the desired Format (WMA; WMA VBR; WMA Lossless; or mp3)... Select the desired flow rate (WMA... 128/160/192kbps_mp3: 128/192/256/320 kbit / s; etc.) ; and click on the "RIP" button to start the copy process on the hard disk of of Carlos Santana's "Maria Maria".  This process (w / WMP-10) would result in having the same song, copied on the hard disk, with levels of quality different "audio" (via the different bit rate settings); regardless of the format (MP3/WMA) which was chosen.

    8.) my experience w / Windows Media Player 11 (w / the operating system of Windows XP): using WMP 11, to described above of my objective (s) could not be reached e-a-s-i-l-y.  The problem with WMP - 11 - in short - which was after the desired selection "Rip settings" tab 'Options' of WMP - 11 (i.e., Format & Bit Rate) and heart-wrenching piece wanted to {'Maria Maria by Carlos Santana'} a moment later/second, WMP11 remove / would crush the previous version of the song [even].  Therefore, the program would NOT allow the user to have multiple copies of the same song on the hard drive of the PC; which obviously restricts a user to have the freedom to choose what level of quality digital audio, they prefer to listen to.

    9.) the ability to have multiple copies [at my descretion] of the same song (on my hard drive) with different bitrates and formats in my music library, is important for me because it has a direct impact on "how I enjoy MY music ', and in what form (audio quality), I choose to listen to my music.  {For example, when I exercise and listening to my camera, digital audio player (Zune), a song ('Maria Maria by Carlos Santana'), will usually be torn off at a lower rate due to the unit of capacity reduction of storage - compared to the storage capacity of notebook PCs/desktop/external hard drives PC.}  However, when I listen to my music through my home cinema or entertainment system (which contains a hard disk dedicated with a large storage capacity), I prefer to load the entertainment system with digital music files that have been ripped to WMA... with the bit being rate-setting is for the: settings "WMA Variable Bit Rate" or "WMA Lossless.

    10.) there you have it.  This is my first post in this forum.  I hope that [detailed] explanations, will be sufficient to encourage these "with knowledge & the hands on experience" using Windows Media Player 12 (as well as with WMP-10/WMP-11 respectively), by providing a [step] "How-to"... "solution to my situation.  It would be highly appreciated.  I'm looking forward-'the solution' - and relevant suggestions & and/or community feedback regarding my request for assistance.

    * Thank 'All' (that would) in advance... For your time & Assistance *.

    Certainly, you can, but I would say that they be in different folders, for your convenience as well as Windows.  You can create one for each debit/format, then you will know who is who.

    In Windows Media Player, on the toolbar, select Tools, Options, Rip, and then select the flow you want first, rip music, then change the folder (higher on the same tab) and rip again... and so on and so forth.

    When you are at home on your home theater, you can use the 320 bitrate folder, when you transfer to the Zune, you can use one of the lower bitrate files (although I personally tear it up to 320 and let the Zune reduce as he wants, even with the iPhone via iTunes, hard drive space is not really a problem here) my server has several hard drives, and I can always add more if and when space is low!

  • How to extract the same part of the substring of two strings?

    How can I retrieve the first identical substring of two strings?
    version: 10 gr 2
    as for example:
    Given:
    str1: randomStringWith123abc
    str2: randomStringfor345abc
    
    Get:
    substr:randomString
    
    Given:
    str3: dummyhowareu
    str4: dummyiamfine
    
    Get:
    substr:dummy
    As you can see, the size of the substring is unknown.

    any ideas?

    Hello

    something like this:

    with x as (select 'dummyhowareu' str1, 'dummyiamfine' str2 from dual)
    select replace(str1,ltrim(str1,str2))
    from x
    

    Herald tiomela
    http://htendam.WordPress.com

  • How to extract a ttf from file file have this software? Please, help me and show the steps.

    Hello

    Please suggest me how to extract the file 'TTF' to a 'HAVE 'file with the help of the adobe Illustrator?

    Thank you

    Ankit Chugh

    988885156

    [email protected]              

    Ankit,

    "" "" "" but now let's look at the other face, assuming that we do not have the fonts in our machine and we will always look for file HAVE, so we have to buy these fonts, am I right on this point, I want to just be confirmed in this regard.? "" » »

    Yes, this is the case.

    You can use the file HAVE to is to establish the names of the fonts, as it appears in I like you did as shown in your #10 post, so you can buy (or just download them if they are free fonts).

  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

  • How to extract the values of XMLTYPE column,

    SQL > create table temporary global xmtype_tab (xmlfile xmltype);

    SQL > select * from all_directories;

    SYS RESTOREDIR/home / / dbimptask /.

    insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

    1 line of creation.

    SQL > select * from xmtype_tab;

    XMLFILE
    --------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


    How to extract the values inside each tag?


    XML file has the following data...


    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
    < > 9600 BAUD_RATE < / BAUD_RATE >
    < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
    < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
    < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
    < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
    < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
    < / ROW >
    < / LINES > ';

    I use the Oracle 10.2.0.3 version...

    Why does this work?

    You are missing the tag of the ROWSET:

    select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
      from xmltype_tab
     where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
    
  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    How to export the same MB size of my cr2 files in jpg or tiff files in Lr?

    Let's say that my height is 22 MB, when I export the file in TIFF or jpg, although careful Iam with size of file settings, size, resolution, I can't manioukate how I want it.

    With jpg I tried everything, no matter what I do or a change in file size or meanless remains the same size - 7 mb instead of 22...

    Please advise,

    Best wishes

    T

    You should not even try to do it.

    JPG uses compression technology, so the files will have to be smaller than the original size of your RAWs. In addition, JPGs are 8-bit, while your RAWs are probably 14 bits, so the size needed to store your image will be smaller.

    Thus, there is absolutely nothing wrong with getting a 7 mb JPG of a 22 MB RAW.

  • I have two files of the same name in the same directory. If it can happen?

    I've attached a screenshot of this. This isn't a photoshop, I always have that. There are two folders named my videos in the same directory T. However when I look through the window run, typing T:\, it showed my videos and videos such as fall down in this directory...

    One of the record is fair 'videos' but configured (in desktop.ini) appears as "my videos."

  • How to use the same services-config for servers the and remote.

    My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config
    < services >
    < id = 'amfphp-flashremoting-service' service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < destination id = "amfphp" >
    <>channels
    < Ref channel = "my-amfphp" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    < / properties >
    < / destination >
    < / service >
    < / services >
    <>channels
    < channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
    < / channel-definition >
    < / channels >
    < / services-config >

    I think the problem is the line


    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "

    but I don't know how to use the same services-config for servers the and remote.

    I'll back up a bit.

    Breakpoint URLS are defined as follows in the services - config.xml:

    https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

    The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.

    If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.

    In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.

  • Reading of the same directory file

    Hello

    I have an application that uses a config file

    I set the config file in the same directory as the application (only one folder below src and res)

    When I run my application on the Simulator I want to try to read the file

    How to read the file just by giving his name

    is this possible with fileConnection to do.

    and if not, I don't know which is the full path of my application in the simultor

    How can I know it?

    THX

    I put my config files in the same directory where a class he needs (so I only have one category which consume the file, the exposure of its content as properties of the class). The code I use is as follows:

    InputStream is = null;
    try {
      is = this.getClass().getResourceAsStream("config.txt");
      LineReader lineReader = new LineReader(is);
     _url = new String(lineReader.readLine());
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      if ( is != null) {
         is.close();
      }
    }
    
  • How to map the same tag of the element with a different value in BI Publisher rtf model.

    Hello

    I have an xml file with the same name in the < tag > element and I do not know how to associate the same < tag > element to different string in the document rtf template attribute.

    For example: "' Eswitch <number > is repeated in this xml file, when I am mapping this element to the document rtf with a different string, I have same value 'D00002 ' . I should get values D00002 and DMR00002.

    < document >

    < TitleBlock >

    < number > D00002 < / number >

    < itemType > Document < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    < description > gtedgg < / description >

    < shippableItem > n < / shippableItem > < / cartridge > < / Document >

    < DMR >

    < TitleBlock >

    < number > DMR00002 < / number >

    < itemType > DMR < / itemType >

    < lifecyclePhase > preliminary < / lifecyclePhase >

    test nomenclature model bom1 < description > < / description >

    < POS > < value > Test < / value > < / POS >

    < shippableItem > n < / shippableItem > < / cartridge > < / DMR >

    < / AgileData >

    I followed steps below for map document model rtf with the same tag xml with a different value.

    1. install Office word 2013.

    2 BI Publisher for desktop software installed. It will add a BI Publisher plugin to the word document.

    3. with the help of desktop publisher BI, created a model of document rtf file.

    4 imported the document rtf template example xml file.

    The data is loaded successfully.

    5 tires model rtf field symbol to map the tags to xml to rtf document attributes element.

    7 saved the document in PDF format.


    Thank you

    Please mark it correct so that it is useful for others to find the solution to a similar request.

  • How can I remove a single file from a folder of bookmarks

    How can I remove a single file from a folder of bookmarks

    Drag the bookmark you want to delete to the left. A red button that says delete. Press the key and he went.

  • How to install the same copy of creative suite on the second computer?

    Basically, I'm on a Macbook Pro and upgraded my hard drive. A

    After that I got the data using time machine, I was unable to access my CS6 applications, which all became the trial version. So I would like to know how to install the same copy of creative suite to the new disk.

    Transfer usually doesn't work - you must install using installation files, in the same way that you originally installed the programs.

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

Maybe you are looking for