Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | Mio File Format SEARCH    


  TechNotes
About MioEngine
About MioScript
Adding a Login feature
Admin Panel Configuration File: Account
Admin Panel Configuration File: Alerts
Admin Panel Configuration File: Channels
Admin Panel Configuration File: Servers
Admin Panel Configuration File: Software
Admin Panel Configuration File: Tasks
Admin Panel Installation Troubleshooting
Deploying an application remotely
Get the real size of a web page
How to create a Business Card
How to create a Desktop Alert
How to create a Desktop Ticker
How to create a Scrolling Alert Software
How to create a Scrolling Ticker
How to create a simple RSS Reader
How to create an icon file .ico
How to debug
Installing Admin Panel on a server
LCD Monitor Chart: Screen Resolution, Size, Pitch, Display Area
Managing read marks
Measuring Elements in JavaScript
Media center remote control
Mio File Format
MioScript: Conditions
MioScript: Events
MioScript: Functions
MioScript: Loops
MioScript: Variables and Data Types
Programming MioScript
Statistics: How to track users and actions
Where to host Mioplanet Admin Panel
XML Configuration File Format

  Products
All Products
MioDB
MioFactory
Mioplanet Admin Panel

TechNote
Mio File Format



A .mio file is a package of codes and files necessary to run a widget or an application.

A .mio file cannot be executed by itself. MioEngine is required.

Editing a .mio file


A .mio file can be opened with MioFactory to view and update the files and codes.

The .mio file can be locked. In that case, the code contained cannot be edited with MioFactory.

Running a .mio file


MioEngine can run a .mio file.

To run the .mio file, you can drag it over a copy of mioEngine.exe.

The best way is to copy mioEngine.exe in the same folder than your .mio file, and to rename mioEngine.exe to the name of your .mio file.

For example, your mio file is myWidget.mio
Rename mioEngine.exe to myWidget.exe. Then click twice on myWidget.exe.
MioEngine will search for myWidget.mio in the same folder and run it.

Distributing a .mio file


With the help of MioFactory, a .mio file can be linked to MioEngine.exe. The final file can be run on any Windows based computer, without the need of downloading a run-time.

You can create an exe file that will run the .mio file it contains when the user click twice on the exe file.

An installation package can also be created to install the .mio file permanently on the computer, with shortcuts and auto-start when necessary.

Structure of a .mio file


The .mio file contains an header and a files merged into a single file.

Header
 
The header contains basic information about the application and the list of files embedded with the size of each one of them.

 
Files
 
The files are merged after the header.

Files are compressed except the following extensions:
.mio, .jpg, .mp3, mp4, .wma, .gif, .swf, .pdf, .wmv, .avi, .qt, .asf, .divx, .ivf, .mov, .mpg, .mpeg, .rm, .viv, .ram, .ra

 
MioScript Code
 
MioScript is a scripting language interpreted by MioEngine.

When MioEngine runs a .mio file, the MioScript code is loaded from the file identity.kexe. This file is built by MioFactory when the application file is created.
Additional libraries files may be added by MioFactory: _identity.lib and _identity2.lib.

Finally, the MioScript code is interpreted when an event is raised by MioEngine, such as event.load.