|
|||
|
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);
__________________
#define true false //happy debugging, friends |
|
|||
|
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);
Code:
downloader.setEventHandler("OnComplete", onCompleteFunction);
|
|
|||
|
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); |
|
|||
|
Quote:
Now, i've used my magic skills and forced it to work. Now, its all fine -) Thx! |
|
|||
|
Quote:
|
|
|||
|
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 |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|