|
|||
|
Im in hurry! my deadline on first release of the application is about 5 hours from now (5 pm CET) and my client will be waiting.
Since, he is the owner of the company, he is not available as often as i would need. Thats, the reason why i need autoUpdate so i dont have to contact him everytime i need him to update the application. When i run my application i get this error in flash Syntax error: dllimport autoupdate stdcall void AutoUpdate_UICheck(char*, char*); Im really not getting it, why isnt it working ? My code Code:
var autoupdate = getAdditionalFile("AutoUpdate.dll");
dllimport autoupdate stdcall void AutoUpdate_Check(char*, char*, Boolean);
dllimport autoupdate stdcall void AutoUpdate_UICheck(char*, char*);
ActiveXObject.register(autoupdate);
var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
ax.updateINI = "http://mysite.com/updata/update.ini";
ax.appName = "fGuru";
ax.check(true);
import SWFKit.* import SWFkit.application.* import SWFkit.AX.. something :S |
|
|||
|
So, problem allmost solved.
Didnt realize tha above code needs to be in initialize in swfkit autoupdate works... but when i starts to download it fails... i get error 404 then, i press twice backwards... and re-do update process and then i get worng parameter (handle)... why ? isnt 404 (File doesnt exist or something lika that ???) |
|
|||
|
yes, both files are where they should be:
wwwroot/updata and in ini file i have LINK:"http://mysite/updata/update.ini/data.0" LINK:"http://mysite/updata/update.ini/data.1" another question is, in help files as well in manual you guys talk about silent checking. i think this dosen work here for me... i always get a wizard ive tested so many times but without any luck... here is my code. would appreciate if you post the real and clean code of what i really need for auto update. (im using // symbols at the moment cause i belive i have a bug in my code) Code:
//var autoupdate = getAdditionalFile("AutoUpdate.dll");
//dllimport autoupdate stdcall void AutoUpdate_Check(char*,char*, Boolean);
//dllimport autoupdate stdcall void AutoUpdate_UICheck(char*,char*);
//ActiveXObject.register(autoupdate);
//var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
//ax.updateINI = "http://mysite/updata/update.ini";
//ax.appName = "App";
//ax.check(true);
//AutoUpdate_Check("http://mysite/updata/update.ini","My Application", true);
and my last question is... i use menu on systray icon... and i would love to add manual update check in systry menu, since the menu itself is created in AS2, how and what do i need to add for update ? SWFKIT thanx again for your answer! |
|
|||
|
i think i fixed update, it is checking the remote files and downloading as well.... but i still need silent mode. especially because my remote webserver is not always running and when its shutdown my app tells it couldnt establish any connection with the server... i dont want that popup message.
possible to remove it in silent mode ? |
|
|||
|
SWFKIT...
Thank you for your reply! Yes exactly, it behaves this way. It is just beautiful!!! No other 3 art application can give you this result as SWFKIT does! ( have also tested it with mProjector and no result... big money into nothing ![]() thak god i get more payd than i should ![]() ABSOLUTELY WORTH INVESTING YOUR $399 !!!!!!!!!! What ever you do... BUY SWFKIT!!!! (NO OTHER APPLICATION CAN PROVIDE YOU ONLINE SUPPORT LIKE SWFKIT!!!!! Consider that!) |
|
|||
|
I read that the code that shoul go into initialize script in swfkit...
should use Global in AS2.0 like, if i use in initialization getAppDir(); then i AS2 it has to be Global.getAppDir(); but how about this code, that should entirely be in initialize ??? Code:
//Initialize
getAdditionalFile();
var autoupdate = getAdditionalFile("AutoUpdate.dll");
dllimport autoupdate stdcall void AutoUpdate_Check(char*,char*, Boolean);
dllimport autoupdate stdcall void AutoUpdate_UICheck(char*,char*);
ActiveXObject.register(autoupdate);
var ax = new ActiveXObject("AutoUpdate.SWFKitAutoUpdate");
ax.updateINI = "http://mySite/hpm/update.ini";
ax.appName = "HPM";
ax.check(true);
return true;
So i need everything inside my AS 2.0 files! Than you! |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|