3 Replies Latest reply on Feb 22, 2010 6:17 AM by archemedia

    Problem in  navigateToURL




      I am downloading the audio mp3 file from the server.


                        private var _urlRequest:URLRequest;

                        private var _url:String = "http://www.abc.com/audio/pqr.mp3";

                        _urlRequest    =    new URLRequest(_url);



      Above 4 line are the main code of my application, for downloading the mp3 file.


      I have downlodable software(Orbit , DAP) installed on my system.


      When I am clicking the link to download mp3 file from the server, it takes loot of time(more then 30 - 40 seconds) to open the download page, and then downlaod is started with the help of DAP or Orbit.


      But when I open any other site, and try to download the file, the download page is open within a second.



      Please let me know, where I am going wrong, why its taking more time to show the download page at my end.


      Or is there any other way to achieve this?


      Awaiting for prompt response.


      Thanks and Regards


        • 1. Re: Problem in  navigateToURL
          archemedia Level 4

          You shouldn't use the navigateToUrl for this, but;


          var req:URLRequest = new URLRequest("bigSound.mp3");

          See also: http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000286.html


          • 2. Re: Problem in  navigateToURL
            Prestine Level 1

            Hello Dany,


            In my code, I was geeting  the download page, but it was coming a bit late.(this is the only problem I am  facing)


            But, what you have suggested , it not working, means after clicking the button to download the mp3 file ,  nothing is happening.


            My requirement is as follows :


                         I have mp3 file stored on the server, size is around 20 -  30 MB each files and user should be able to download that file.


            I dont want, that they should listen, they should only download it.


            Awaiting for prompt reply.


            Thanks and Regards


            • 3. Re: Problem in  navigateToURL
              archemedia Level 4


              Can you give me a working link to test please?