Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2004, 04:12 PM
Junior Member
 
Join Date: Mar 2004
Posts: 6
Default Inet getUrl

Hi everybody..

I have a problem using the GetUrl function if the Inet Object..

this is my script:

loadFrom = "http://localhost/myfile.txt"
saveTo = "c:\\temp\\thenewfile.txt"

myInet = new Inet()
myInet.onGetUrl = function(type,msg){
Dialogs.msgBox("OK DONE")
}
myInet.getUrl(loadFrom,saveTo)

it doesn't work!
it downloads a file of 1Kb every time... (assumed the original file is bigger)

and if I write
Dialogs.msgBox("does it works? " + myInet.getUrl(loadFrom,appPath+saveTo))
it prompts "false"

anybody can tell me where's the bug?

thanks in Advance

Kat
Reply With Quote
  #2 (permalink)  
Old 03-18-2004, 02:02 PM
Junior Member
 
Join Date: Feb 2004
Posts: 14
Default Re:Inet getUrl

Hi, you should return true in the event handler to allow the downloading process to continue.

Code:
loadFrom = "http://localhost/myfile.txt"
saveTo = "c:\\temp\\thenewfile.txt"

myInet = new Inet()
myInet.onGetUrl = function(type,msg){
   if (type == 0)
  {
     trace(msg);
     return false;
  }

   trace(msg + "bytes received");
   return true;
}
myInet.getUrl(loadFrom,saveTo)
Reply With Quote
  #3 (permalink)  
Old 03-18-2004, 02:19 PM
Junior Member
 
Join Date: Mar 2004
Posts: 6
Default Re:Inet getUrl

IT WORKS!!!

thanks my friend!!

thanks a lot!

Kat
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.