Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-29-2007, 03:20 PM
Member
 
Join Date: May 2007
Posts: 53
Default Re:downlod , resume file

Cpuld you help me with setting onEvent functions for this ActiveX in AS2?
Code:
var SWFKit_downloader:ActiveXObject = new ActiveXObject("SWFKit.ZHttpDownloader");
onCompleteFunction = function() { Global.trace('COMPLETE!!!'); };
SWFKit_downloader.setProperty('onComplete', onCompleteFunction);
SWFKit_downloader.callMethod('download', distr_url, TMP_distrib_file_path, 0, 0, false);
Why my handler does not work?
__________________
#define true false //happy debugging, friends
Reply With Quote
  #12 (permalink)  
Old 05-30-2007, 03:40 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:downlod , resume file

Please use the method shown in the sample.fla file in the ZDownloader.zip sample to handle ActiveX component events.

1. We've created wrapper classes called "DownloaderLib" for the Downloader component, with which you can access the properties and methods of the Downloader component in actionscript 2 directly. The as files of the wrapper classes are included in the ZDownloader.zip sample.

Code:
var activex = new ActiveXObject("SWFKit.ZHttpDownloader");
var downloader = new ZHttpDownloader(activex.Identifier);
...
downloader.download(url, filename, 0, 0, true);
2. To handle events of an object in swfkit, you must use the setEventHandler method in actionscript
Code:
downloader.setEventHandler("OnComplete", onCompleteFunction);
The reason is that the event handler "onCompleteFunction" you provide is in actionscript, so the downloader object in ffish script cannot access it directly. The setEventHanlder method will first register the event handler you provide in the ffish script, and then pass the ffish script alias of the onCompleteFunction in actionscript to the downloader object.
Reply With Quote
  #13 (permalink)  
Old 06-01-2007, 09:01 AM
Junior Member
 
Join Date: May 2007
Posts: 5
Default Re:downlod , resume file

Greate!
Many and many thanks!
Reply With Quote
  #14 (permalink)  
Old 06-01-2007, 09:45 AM
Junior Member
 
Join Date: Dec 2006
Posts: 26
Default Re:downlod , resume file

great works !!!


Reply With Quote
  #15 (permalink)  
Old 06-06-2008, 04:02 PM
Junior Member
 
Join Date: Jan 2008
Posts: 6
Default Re: downlod , resume file

Code:
var filename = "c:\\flash\\setup.exe";
var url = "http://www.swfkit.com/download/swfkit/frobjsetup.exe";
...
..
var fu = new ActiveXObject("SWFKit.ZFileUtilities");
fu.setFileSize(filename, size);
is that mean, after downloading frobjsetup.exe , it will be saved as setup.exe at c:\flash\ directory ?
Reply With Quote
  #16 (permalink)  
Old 11-10-2011, 12:32 AM
Junior Member
 
Join Date: Nov 2011
Posts: 1
Default

Quote:
Originally Posted by myxus View Post
Yes, i read that manual before. Anyway, i cant include the .dll in the compiled file.
Actually, I don't use installer.
I add the file in the resource pannel and compile the app. But the size of the app does not changes..
Sorry for that dumb question.
Now, i've used my magic skills and forced it to work.
Now, its all fine -)
Thx!
Reply With Quote
  #17 (permalink)  
Old 12-02-2011, 01:35 PM
Junior Member
 
Join Date: Dec 2011
Posts: 4
Default

Quote:
Originally Posted by SWFKit View Post
Please use the method shown in the sample.fla file in the ZDownloader.zip sample to handle ActiveX component events.

1. We've created wrapper classes called "DownloaderLib" for the Downloader component, with which you can access the properties and methods of the Downloader component in actionscript 2 directly. The as files of the wrapper classes are included in the ZDownloader.zip sample.

Code:
var activex = new ActiveXObject("SWFKit.ZHttpDownloader");
var downloader = new ZHttpDownloader(activex.Identifier);
...
downloader.download(url, filename, 0, 0, true);
2. To handle events of an object in swfkit, you must use the setEventHandler method in actionscript
Code:
downloader.setEventHandler("OnComplete", onCompleteFunction);
The reason is that the event handler "onCompleteFunction" you provide is in actionscript, so the downloader object in ffish script cannot access it directly. The setEventHanlder method will first register the event handler you provide in the ffish script, and then pass the ffish script alias of the onCompleteFunction in actionscript to the downloader object.
Where can I found this ZDownloader.zip sample?
Reply With Quote
  #18 (permalink)  
Old 03-30-2012, 04:35 PM
Junior Member
 
Join Date: Mar 2012
Posts: 1
Default downlod resume file

The game loads and plays.

It will ask you if you want to save and quit.

Unfortunately, after I save it and then try to return to the game the Resume option does not appear all of the time.

Also, could you make it possible to load a game other than the last one played? I would like to run several games using different characters.

Tilted Mill Entertainment - can you fix this problem? It completely ruins an otherwise enjoyable game.

DX file attached
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 04:04 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.