You cannot do everything in Vitalize! applications :
- Some extensions are disabled, because they are not safe. Refer to the list of vitalized extensions for more info.
- The actions that could allow you to retrieve private information from the user's machine are disabled.
- The Load actions are "Download" actions. For example, the Load action of the Active Picture object will try to download
the file from the server, it won't load it from the local machine. Refer to the "How to use external files" section below for more info.
- You cannot save files. The Save actions are disabled, except for 1 or 2 actions that prompt the user for a filename, and for the INI and Hi-Score objects. See below.
How to use external files in Vitalize! applications
If your application uses external files, like picture files loaded by the Active Picture object, text files loaded by the Edit box object :
1. These external files must be in the directory of your MFA file, or in a sub-directory.
2. When you build your CCN file, build it in the directory of your MFA file.
3. If you load the files with expressions in the event editor, you should specify the full path : Apppath$ + "name_of_your_file".
4. Upload these files to the directory of the CCN file on the server (or to the same sub-directory, if they are in a sub-directory).
If you follow these rules, Vitalize! will download your external files.
Note for MMF2 users : you can also embed the files in the CCN application if you add them to the Binary Data tab in the Data Elements editor.
Special case : INI object
As in Vitalize! 3, when you write .INI files with the INI object, Vitalize! 4 writes the data to a unique Vitalize.ini file.
In Vitalize! 4 this INI file is usually located in the Application Data\Clickteam directory of the current user.
However if you use Internet Explorer on Vista and are playing a CCN file from a non-trusted zone, Internet Explorer is executed
in protected mode and in this mode the file system is virtualized. In this case, Vitalize.ini is usually stored in :
C:\Users\%UserName%\AppData\Local\Microsoft\Window s\Temporary Internet Files\Virtualized\C\Users\%UserName%\AppData\Roami ng\Clickteam
This may cause issues if the user uses Internet Explorer and then FireFox and your application uses INI files to store data,
as the data saved in IE won't be the same as the one read in FF.
Special case : Hi-Score object
The same rules apply to the Hi-Score object. The scores are saved in a unique cncscore.ini file in the Application Data directory (or in the virtualized Application Data directory).