How can I save on this code?

Infact, this code is so long, and I was tried to save on it, but I can't find that way.
The code as following:
var music0001:URLRequest = new URLRequest("mp3/0001.mp3");
var play0001:Sound = new Sound();
var music0002:URLRequest = new URLRequest("mp3/0002.mp3");
var play0002:Sound = new Sound();
May I have another quick way to define all code and save on it, If mp3 files are about 3000 degrees.
Thanks

I try to minus code, it is to long, and create so many code line.
I use the "for" loop want to saveing on code line, I am trying angain and again.
Still can't work.
var music0001:URLRequest = new URLRequest("mp3/0001.mp3");
var music3000:URLRequest = new URlRequest("mp3/3000.mp3");
var play0001:Sound = new Sound();
var play3000:Sound = new Sound();

Similar Messages

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • My computer broke and i lost all files including ITunes. what happens to all the stuff purchased already. will this appear in itues when i download it agian? how can i save the music on my ipod and transfere it over to the new itunes?

    my computer broke and i lost all files including ITunes. what happens to all the stuff purchased already. will this appear in itues when i download it agian? how can i save the music on my ipod and transfere it over to the new itunes?

    Unfortunely, all movies and songs purchased in iTunes will be lost...you'll have to purchase them again! Any applications you've purchased, you can download again for free.
    Music Rescue is a program you can use to transfer any and all data (music, movies, pictures..) from your iPod to your computer, and iTunes.
    http://www.kennettnet.co.uk/products/musicrescue/

  • How can I save my keepsake photo albums as PDFs in my album folder. Since I changed from Snow Leopard to Lion last year I have't been able to do this.

    How can I save my keepsake photo albums as PDFs in my album folder. Since I changed from Snow Leopard to Lion last year I have't been able to do this.

    preview it using this method -http://support.apple.com/kb/HT1040 - and save the resulting PDF
    Is this what you are doing?Your description does not sound like you are
    LN

  • When I zoom in on photo using iPhoto, how can I save the zoomed in photo please?  This always looks better than cropping., When I zoom in on photo using iPhoto, how can I save the zoomed in photo please?  This always looks better than cropping.

    When I zoom in on photo using iPhoto, how can I save the zoomed in photo please?  I would like a screen shot of my zoomed in photo - is this possible?.  Cropping doesn't give the same effect as zooming in and magnifying the photo.  Any help would be appreciated thank you.  I have an iMac

    To take a screenshot of the zoomed photo, press either the key combination
         ⇧⌘3   for a screenshot of the full screen, or
         ⇧⌘4   to bring up a selection rectangle: select the section of the screen, that you want to save.
    The screenshots will be sent to your desktop; drag them from there to the iPhoto icon in the Dock to import them.

  • My Ipad crashed, so I pressed both power and home button, now I have to restart my ipad on the itunes, but there are some important info I cannot loose... how can I save this info at this time? actually is some info the I saved in the "notes" app! help!!!

    My Ipad crashed, so I pressed both power and home button, now I have to restart my ipad on the itunes, but there are some important info I cannot loose... how can I save this info at this time? actually is some info the I saved in the "notes" app! help!!!

    I Had it on my iPod, but I reset to factory settings and it got deleted :( If I find a way to get it back, I'll post it here so you can too.

  • Last week I've install Mac OS X Mountain Lion and then after the installation finish my IMAC start up in verbose mode. How can I turn off this mode and start my IMAC normally. I've try to key in the code "sudo nvram boot-args=" in terminal also.

    Last week I've install Mac OS X Mountain Lion and then after the installation finish my IMAC start up in verbose mode. How can I turn off this mode and start my IMAC normally. I've try to key in the code "sudo nvram boot-args=" in terminal also.
    Thank you for all of your answer.

    I've seen it mentioned on here that a PRAM reset may solve it:
    Reset PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P and R.
    You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Email attachments: whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    Is this a particular sender, or all of your attchments?  Google winmail.dat and you will see a number of returns that can explain this, but in short, this is the way some e mail providers deal with attachments.  If all of your e mail is coming that way, you need to change a setting on your isp set up.  Perhaps stary here...
    http://www.nytimes.com/2010/11/25/technology/personaltech/25askk.html

  • HT1349 My laptop needs to be reimaged. How can I save my personal music?I have done this before and when I logged in to itune. It thinks I am installing my music on a new computer.

    My laptop needs to be reimaged. How can I save my personal music?I have done this before and when I logged in to itune. It thinks I am installing my music on a new computer.

    roaminggnome wrote:
    Why would you set up a new account?
    Copy everything from your backup copy of your old computer to your new one.
    Its wrong to assume that everyone has a backup copy.
    are you PC or Mac?

  • TS3694 i get a error code of 3194 and can't restore my ipad because of this.what is code 3194 and how can i get around this problem. thanks.

    i am trying to restore my ipad, on itunes i get a error code 3194, consequently the ipad won't restore. How can I get around this ?.
    Thanks.

    glasstiger wrote:
    i am trying to restore my ipad, on itunes i get a error code 3194,
    3194  = http://support.apple.com/kb/ts4451
    If that Article does not resolve it... then you have a problem.
    Perhaps a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is required..
    Be sure to make an appointment first...
    Note:
    That error message may be indicative of the Device being Hacked / jailbroken.... If this is the case then you are on your own.
    Unauthorized modification of iOS... http://support.apple.com/kb/HT3743

  • I put a passcode on my iphone 5 and forgot the four digit code, how can i get past this to get on my phone?

    I forgot the four digit passcode to get on my iphone5 and its disabling my phone, how can i got past this to get on my phone?

    iOS: Forgotten passcode or device disabled after entering wrong ...

  • How can I get the HTML codes in illustrator?

    Hi, I am a graphic designer, and I am getting into the web world, I wanna know how can I get the HTML codes to upload a web design made using Illustrator,...¡?Does any one know?Please let me know...

    everyone here is right, dreamweaver is better and you will need to understand html for this to work. HOWEVER, you can make a functional website using just illustrator and notepad (or text edit if you're on a mac).
    Design your site in illy, slice it up with the slice tool. http://s23.postimg.org/mv311kpp7/test_illy.jpg 
    Save for web and select html and images, you'll get an html file and an images folder. Open the HTML file in your text editing program and it will look like this: http://s10.postimg.org/f32nf6r2h/html_stuff.jpg   you'll have to know HTML codes but you can find tutorials online for most stuff, you'll just have to figure it out. In my fake site, i linked a button to google so i had to add <a href> tags to the code. http://s22.postimg.org/5avpadhch/a_href.jpg  save the html file and open it in your web browser, hopefully not IE. You can't tell in the picture but the middle button actually does link to google. http://s21.postimg.org/qd77slqmf/firefox.jpg

  • In Windows how can I save a video just played by Flash Player?

    In Windows how can I save a video just played by Flash Player?

    This is what I ended up doing.  I put the FLVPlayback inside a movieclip and put this on the first frame:
    stop();
    var vidTime:Number=0;
    on the frame that the video plays on I have the video and a close button (which is a movieclip) and I put the following script:
    if(vidTime>0)
        htMeasVid.seek(vidTime);
    close_btn.addEventListener(Event.ENTER_FRAME, seekCount);
    close_btn.addEventListener(MouseEvent.MOUSE_UP, closeBtnUp);
    function seekCount(e:Event):void
         vidTime=htMeasVid.playheadTime;
    function closeBtnUp(e:MouseEvent):void
        e.currentTarget.parent.play();
    on the following frame I have this code:
    close_btn.removeEventListener(Event.ENTER_FRAME, seekCount);
    htMeasVid.stop();
    and then on the last frame I have this:
    gotoAndStop(2);
    so that it doesn't reset the vidTime variable to 0.
    Thanks again for the help.

  • Video Remixer in flash How can user save there content?

    If I created a video remixer for my user how can they save
    content they remix. How do they send it to there phone or email the
    remix video that they created to others. I can make the mixer but
    don't know how user can save there work or even download it. Can
    someone help me with this? Is there any books about what I'm
    talking about? Anyway to generate the code for this to work.
    Help me.. Thanks

    Never mind.
    I downloaded the latest Creative Explorer for Micro and now can copy to and from the Micro.
    Thanks

  • How can I save an Adobe Flash video to my hardrive?

    My son was recently featured in a TV segment, and the link is to a flash video on the station's website. How can I save this so we'll have this after the link is no longer valid?

    You may not be able to. Most news networks use scripting to prevent downloads of their video feeds (copyirght laws and stuff)
    You can try Ant Video Downloader for Firefox (it's NOT available for IE, but it IS for Firefox and Chrome)
    If it doesn't work, contact news station. That's what I do. My brother is on the news from time to time bbecause of his work and they simply provide me with embed code to the videos so I can put them on his website. Here's why I mention this: I was told by the ABC, CBS and NBC affiliates that they NEVER delete those videos. Only an act of god destroying their servers will ever remove them, and even then they have backups.

Maybe you are looking for