Split project into several Sub Projects

 

Splitting a project into multiple databases (mmf files) is recommended or necessary, if

 

the project includes EXE files and the database size would be more than 250 MB
different file formats are mixed in one project, e.g. PDF and Video
you want to 'bundle' multiple products on one CD

 

Unlike flash files, where each file is only loaded when needed, EXE files and all the other files in the database are loaded during program start. If the database is too big, the program start takes too much time.

 

The following steps are necessary to built a project, which is split in sub projects (databases).

 

Copy / Duplicate the main project

 

First create a main project of the application. Then copy the project (select TAB File: Copy Project)

 

 

 

Click to enlarge
Check - Project is a Sub Project of the Master project

 

 

The important option is: Project is a Sub Project of the Master project . Check this option. This creates a new database which uses the same encryption and same Serial Numbers like the original database. You can have one license file and one Serial Number for all project files.

 

 

Example

Main project name: english-course
Copy project 1: english-course-lesson1
Copy project 2: english-course-lesson2

Copy all databases in a new folder

Each project will create a Publish CD folder with the All-In-One Player, the license file (.lic) and the database (.mmf) - see chapter the Basics about Distributing a Project.

 

Create a new folder, e.g. ..\complete project. Copy all files from your main project and only the database (.mmf) file from the sub projects into this folder. The folder content would be as follows:

 

autorun.ini
english-course.exe
english-course.lic
english-course.mmf
english-course-lesson1.mmf
english-course-lesson2.mmf

 

Start files

Starting a file depends on the type of the main application.

 

Start by user

The user can just click on the EXE file or MMF file

 

 

Menu

 

The best solution is to use a menu application, which allows to start Lesson 1, Lesson 2 separately. This menu would be outside the All-In-One Protector project. the  See Menus.

 

The start command within the menu is:

 

englisch-course.exe -f englisch-course-lesson1.mmf to start lesson1
englisch-course.exe -f englisch-course-lesson2.mmf to start lesson2

 

List of all start options

 

Flash Menu

 

If the start application in the main project is a flash file in SWF format (e.g. a menu), the flash file needs to use a special command.

 

http://FILE:english-course.exe -f english-course-lesson1.mmf$$RUN

 

This commands starts an exe file which is already available on the CD or hard disk. It can be used to start any external application. The file must be on the same folder like the All-In-One Player. A pathname cannot be used.

 

The parameter -f provides the database name to start.

 

Sample flash code: loadMovie("http://FILE:english-course.exe -f english-course-lesson1.mmf$$RUN",2);