How to create an mp3 download link (AS3)

I'm having a lot of trouble figuring out how to let users
download mp3s from my flash website (so the user gets the same sort
of dialogue box that they would from a normal html site). Part of
the issue is that I have a very, very piecemeal knowledge of as3
and flash. So far, it's been a couple of tutorial books and a lot
more ambition than knowledge : ) With that being said, I would
greatly appreciate not only the answer, but an explanation of how
and why the answer works. The tutorial books I used really dumbed
down as3, so the "correct" way is much different than what I
learned. Thank you so much in advance, and I really appreciate the
help!
Thanks!
Dave

Zip up the MP3 then link to it.
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple

Similar Messages

  • How  to  create a direct  download  link  ?

       Hello,I want to download a trail product from Adobe,but I do not want to use Adobe Download Assistant  for its poor download speed.I want to creat a link such "http://trials2.stage.adobe.com/AdobeProducts/PHSP/13/win32/Photoshop_13_LS1.7z".But when I click it,it shows that
    Access Denied
    You don't have permission to access "http://trials2.stage.adobe.com/AdobeProducts/PHSP/13/win32/Photoshop_13_LS1.7z" on this server.
    Reference #18.e4c18d3f.1360043436.1274112
    Why? and I want to know where I can  download product.Could you please  offer an website  like  "ftp://ftp.adobe.com"  ?
    Thanks!

    I got it,thanks a lot Mylenium.
    But,I want to know  when I clik this link,
    "http://trials2.stage.adobe.com/AdobeProducts/PHSP/13/win32/Photoshop_1 3_LS1.7z",it shows me
    Access Denied
    You don't have permission to access "http://trials2.stage.adobe.com/AdobeProducts/PHSP/13/win32/Photoshop_1 3_LS1.7z" on this server.
    Reference #18.e4c18d3f.1360043436.1274112
    Why?

  • Creating a file download link on jsp

    I have the following on my jsp. The code worked fine until I tried to use it in a new html design page.
    <code>
    //page name is index.jsp
    try //DISPLAY THE CONTENTS OF THE DATA DIRECTORY
    File dirname = new File(PATH); // create an instance of the File class
    if (dirname.exists()&&dirname.isDirectory())//check to see if File class dirname exists and is valid
    String [] allfiles = dirname.list();//create an array of files in the dirname File class
              for (int i=0; i< allfiles.length; i+=2)//loop through allfiles[] and print out file links
    out.println("<br><table border='1' cellspacing='1' width='99%'>");
                   out.println("<tr><td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i]+"'>"+allfiles[i]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td>
    <% if(i+1 < allfiles.length)//PRINTS OUT THE SECOND TD SO THAT WE HAVE 2 COLUMNS OF LINKS
    out.println("<td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i+1]+"'>"+allfiles[i+1]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td></tr>
    <%
    out.println("</form></font></table>");
    catch (IOException excep)
         out.println("An IO exception has occured.");
    </code>
    Then when clicked this code is run:
    <code>
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
    if (request.getParameter("downfile") != null)
    String filePath = request.getParameter("downfile");
    File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
    if (f.exists() && f.canRead())
    response.setContentType ("application/octet-stream");
    response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
    response.setContentLength((int) f.length());
    BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
    int i;
    out.clearBuffer();
    while ((i = fileInputStream.read()) != -1) out.write(i);
    fileInputStream.close();
    out.flush();
    </code>
    When I click on this link I get the download dialog box. If I open it I get the following open up in notepad(the files I am trying to give download links are .txt files)
    Below is what is displayed in notepad ALL on 1 line:
    <html>
    <head>
    <LINK rel="stylesheet" ty
    That is displayed in all of the links that I click on. It is the first few lines of html code for index.jsp.
    I know this code is probably not a good way of doing what I need but I got it to work fine until the change.
    I am sure there is an easier way to code the download link without resubmitting the page.
    Thanks in advance!!

    Well all was fine with this jsp until I moved it to ApacheJServ. Now the problem has resurfaced(although it is a little different now)
    I had moved the following code to the top of my page:
    //CHECK TO SEE IF EITHER DOWNFILE OR ZIPFILE VARIABLE EXIST, AND IF THEY DO SET CONTENT TYPE BEFORE SENDING ANY HTML CODE TO THE BROWSER
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
        if (request.getParameter("downfile") != null)
                String filePath = request.getParameter("downfile");
                File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
                    if (f.exists() && f.canRead())
                        response.setContentType ("application/octet-stream");
                        response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
                        response.setContentLength((int) f.length());
                        BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
                        int i;
                        out.clearBuffer();
                        while ((i = fileInputStream.read()) != -1) out.write(i);
                            fileInputStream.close();
                            out.flush();
                            response.flushBuffer();
    catch (Exception e){}
    //This is where the java code ends and the javascript/html code begins.Then further into the page I create the file download links like so:
                            <a class="a" href="main.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a>I know this isnt a secure way of doing this but I am on a intranet.
    The problem I am having now is that when I click on one of the links and download the file and then open it, I get the contents of the file plus concatenated to the end of it is the first few HTML lines of the actual jsp that I downloaded the file from. Before I was just getting the first few lines of html from the jsp, not the actual contents of the downloaded file.
    This is an example of what I am getting:
    This is the contents of the file that I downloaded.//This is where the file contents ends.
    <html>
    <head>
    <LINK rel="stylesheet" type="text/css" href="default.css">
    <script language="JavaScript1.2">
    //function that allows user to select all checkboxes
    function doIt(v)
    for(var i=0;i<document.form1.cb.length;i++)
       document.form1.cb.checked=eval(v);
    function swap(imageName,image)
    imageName.src = "templateImages/"+image;
    function imageOver(imageSrc, imageName)
         changeImage = new Image();
         changeImage.src = imageSrc;
         document.images[imageName].src = changeImage.src;
    var hide = true;
    function hideShow( ) /
    Any morre ideas?
    TIA!
    BTW, I went to ApacheJServ because they wont let me use tomcat :(

  • How to create 2 or 3 links URL in a jpeg ?

    How to create 2 or 3 links URL in a jpeg ?
    Do i use photoshop ?
    Thank you

    Images cannot contain links. All that stuff is done in the web page source code, e.g. using image maps, interactive SVGs or JavaScripts that track coordinates and respond accordingly. You will have to use a web authoring tool like Muse or Dreamweaver to produce such stuff, but since you seem to be a complete beginner, I strongly urge you to read up at least on some basic stuff about HTML, CSS and how the web ticks in general or you'll be forever lost.
    Mylenium

  • E Recruitment how to create Carrier and Job link

    Hi
    My client asking for carrier and job option in ESS, presently we are implementing to E Recruitment only
    We donu2019t have EP Consultant,
    Please any one help me how to create Carrier and Job link (we are using BSP and Webdynp)
    Regards
    eshwar

    HI,
    Go to OX02 and create a company code by copying the standard company code 0001 / 1000
    Then go to OX10 and create a plant by copying the standard plant 0001 / 1000
    OX09 - maintain storage loaction for the created plant
    OX08 - create purchase org copying from standrard 0001 / 1000
    Go to OX18 and assign your plant to company code
    OX17 assign purchase org to plant
    In order to get the tcode go to SPRO and in the top menu click on additional informations - additional information - display key - IMG activity.
    After you select this then in the SPRO you have a column additional information comes up. each and every activity in SPRO will have and additional informatiom, in the additional information the last 4 characters is tcode.
    Eg : SIMG_CFMENUSAPCOX02 this is the additional information for CC. the last 4 characters OX02 is the tcode
    Thanks
    Kiran

  • How to create menu function for link to open file

    Hi,
    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.
    Thank you.
    Regards,
    Wilson

    I need help how to create menu function for link to access file and allow user to save the file when click on it.
    The file will keep inside server.AFAIK, you have to write a custom code to achieve this and Oracle does not provide this functionality.
    If you want to store the file as an attachment, please see (How to Store Image/PDF Attachments on the File System in 11i and R12 (like Attachment File Directory) [ID 294525.1]).
    Thanks,
    Hussein

  • How to control an mp3 downloaded to an ipad?

    I am on IOS 8 and have never used itunes to listen to a podcast. In the iPad safari browser, I clicked on a link for a podcast on the webpage, which said "Download the mp3".
    The podcast mp3 immediately started playing. But I could not find a player where I could control it, i.e., I could not stop, pause, go forward or reverse.
    Since I didn't download the podcast in iTunes, it didn't show up there.
    How do you control the playback of an mp3 downloaded this way? And does the mp3 stay on the ipad so that I can play it again without going to the website?

    It is not possible to remotely control the screen of an iPad unless you jailbreak and install a VNC server. This is because the security model in iOS does not allow an app to reach outside of its sandbox to control other apps or the springboard home screen. Apple does not provide any remote control functionality at the iOS level either. There is no way to do what you are asking for without jailbreaking.

  • How to create text buttons that link to video?

    I've finally gotten around to trying DVD SP, and even though I read the whole manual, it's not at all clear if, or how, you can create text buttons that link to the video you want to play, without displaying a clip of that video in the button itself.
    I have no problem creating a text button, but I can't change the font, and editing is counter-intuitive, unlike iDVD. I'd use iDVD, but it doesn't accept .m2v files, and it seems to think that my 6 videos of about 43 minutes each are too large for a DVD+DL disc, so it won't let me burn it or save it as a disc image.
    Does anyone have a way out of this conundrum, or am I SOL?
    Mulder

    It really isn't that hard!
    As Drew said, go into your menu and click and drag to create a button rectangle. With the button highlighted, look in the property inspector at the bottom and type in the text that you want to use. Ensure that you 'include in button highlight' and then set the colour choice for selected and activated.
    What you get is a simple line of text which illuminates when you roll over it, and changes colour when you click on it.
    Once that is done, click on the button area again and set the target to go to the piece of video that you want to have play back.
    You should also set the menu call and end jump on that track to make sure your viewer can get back to the menu.
    Once that is done the menu will show as a simple piece of text (more buttons means more bits of text, and the first button will be highlighted by default) and no video will play until the button is activated.
    DVDSP is definitely a steeper learning curve than iDVD but for very good reasons. You get far greater control and access to far more advanced features in DVDSP. This means that some things will seem harder, whereas in fact they are just different and the process for achieving the result you want is different. Much of what you want to know is in the manual and also in the tutorials which came with the app. Failing that there are several good online spaces where you can find a lot more information... not least of which is right here, of course!

  • [iPhone] How to create an app store link that generates a search query?

    Does anyone know how to create a link to the app store that will bring the user directly to a search results page? I've noticed that there is a free application called "Art Gallery" that contains a menu option that will take you to other games from the same developer. Upon clicking this option, the user is taken directly to app store on the phone and the search field at the top has the company name in it.
    I'd like to be able to create a similar link for my game. I would normally just send the user to a website with iTunes links to all my games, but that functionality is currently broken on firmware 2.1. I've searched all over these forums and the Apple documentation to find the answer, but so far everything seems to suggest that the only ways to generate app store links are to 1.)use the iTunes link generator tool or 2.)right click a link in iTunes and copy the URL.
    Neither of the above methods seem to work for generating a URL that will actually search the store. I've also tried getting an artist link for my developer name, but the link doesn't work when I try launching it on the device. Has anyone solved this problem?

    you can try using an actionscript class like purePDF (http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php) or use server-side code like fpdf (www.fpdf.org).

  • How to create an external url link with my pdf in acrobat pro

    I have no pb with adobe non pro to create an external web link which is connected to my pdf ( but internal link inside my pdf doesn't work ! ) , but I can't find in adobe pro, and further more I need  to have inside my pdf  another link  which must be connected to a web site
    Is there anyone to help a french guy ? Thanks to you

    Hi jeromemonange,
    Here is some information about creating hyperlinks in a PDF, both to external sources, such as a website, or to another page within the PDF: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7cb7.w .html
    Please let us know how it goes.
    Best,
    Sar

  • How to make a mp3 download button i had added to reappeared on firefox?

    I have installed a mp3 download add-on and had a download button pinned on the firefox page so that i could click and download you tube videos into my hard disk. Somehow it disappeared and I don't know how to get it back. when I tried asking add-on again but it does not give me the option to pin a button to the firefox page. please tell me how I can do this.

    Is that extension still installed?
    *Tools > Add-ons > Extensions
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Open the Customize window to set which toolbar items to display:
    *View menu > Toolbars > Customize
    *Firefox menu button > Options > Toolbar Layout
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    If the above didn't work then check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to create table control and link in screen exit

    Hi Friends,
                     I want to create table control in enhancement CONFPP07.  The values entered in table control should be stored in ztable along with some other information.
    But I want to know how to create table control in screen-exit and how and where to write code and how to link all.
                   Kindly send me step-by-step documentation or real time examble prg.
                   Kindly give ur answers for this problem only.
    Thanks in Advance,
    S.Senthil kumar

    If u have a  screen exit..then u will have a option to create a sub screen..in that sub screen u activate the pai and pbo events..it will show u where to write the code..

  • How to create citadel database and link it to an existing project library programatically?

    hi,
    does anyone knows how to create citadel database progarmatically and linking it with my project library programatically?
    samriddh sarbalhi
    [email protected]

    hi,
    i have designed an application having four security levels like administrators, engineers, operators & guests.
    now i want that whenever the guest logins in my application, windows components on the desktop will not be accessible to him means he can only view my application but he will not be able to view start menu on the task bar of the windows page or any icon on the desktop.
    please tell me how to accomplish it progarmatically using labview.
    the appropriate response will be highly appriciable.
    thanks
    samriddh sarbalhi
    [email protected]

  • How to create a JMS queue linked to external (remote) JMS server?

    Hello,
    I'm trying to receive messages from a remote JMS queue. I found some information on the Internet on how to create an external JNDI resource (my remote JMS queue connection factory is bound to LDAP context on remote box). I was able to configure JNDI resource that points to remote queue connection factory, but I don't know what to do next.
    How can I create a local JMS destination (queue) that will be the image of the remote queue? At least I'm guessing this is what needs to be done in order to deploy MDBs.
    I would appreciate it if someone could tell me how to get this working. Maybe the steps I took were not in the right direction - the bottom line is that JMS queue and queue connection factory are deployed on a remote server, and I need to get messages sent to them on the local server. I'm using Sun App Server from J2EE 1.4.
    Thank you,
    Mark

    Please refer to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6377822, particularly the evaluation. Could your situation be the same too (i.e server ip address changing dynamically)? Also, which OS are you using and do you have any firewalls setup that prevents access to port 3700?

  • How to create a mp3 playlist compatable with the media server (storage link)

    Hi,
    I have setup the wrt160nl wireless router with the latest Firmware Version: 1.00.01 B17.
    Everything is working great. I can browse the artists, albums, song titles etc from my usb hard disk.
    What isn't working is the play lists.
    What format does the play list need to be in?
    I assume a text file with the tracks listed like: \music\acdc\back in black.mp3
    What file extention or name will the playlist need to be in?
    My pnp player only sees two playlists:
    1) playlistlastplayed
    2) playlistmostplayed
    If I knew where those play lists were stored on the usb hard drive (or linksys internal ram?) then I might have a clue.....
    Thanks for any help on this.

    Playlistlastplayed has every track on the hard disk - and I haven't played them all, only like 3
    Playlistmostplayed has ONLY 1 track that I haven't played from the linksys upnp server at all
    I can play music off the album, artist and song lists fine.
    I'd just like to be able to use a play list, and can't seem to find out how to make one.
    I realize and understand that the linksys storage link system doesn't create them.
    I assume I can make my own text file with track listings and copy the play list to the usb hard drive attached.
    I just need to know the format of the text file, and what extention will it need.
    I have tried .m3u .m3u8 .wpl
    I don't have iTunes but if you told me I have to download that, import my music into that, then create the playlist there, well, I guess I could try that. I rather not load iTunes if possible.
    Thanks

Maybe you are looking for