By default we will be using a GFx exporter to compile our SWF file; the GFx exporter is located in the Tools folder of the CRYENGINE build you have installed.
Large packages can be bundled into a single SWF file to house almost all of your game functionality through one GFx, but it is also good to break them up into individual elements to make them even more manageable.
It should be noted that, by default, the GFx exporter will generate TGA files for the bitmap images used in your Flash project. This will have the undesired effect of consuming more resources than what would otherwise be used by a more appropriate image format such as DDS.
Thankfully, there is a flag switch that can be used with the GFx export tool that allows the generation process to output DDS files for us. Below, the workflow for this procedure is explained.
Start by first saving your Flash file in the UI folder of your project, for example, <root>/Assets/libs/UI.
libs/UI
-i DDS
to the end of the new shortcut's Target Path (after the last quotation mark).You then need to drag and drop your SWF file over the new shortcut to generate the GFx file and any necessary images.
Drag and drop your SWF file over the new shortcut
The GFx Export tool for Scaleform 3 can be found at <root>/Tools/GFxExport/Scaleform3/gfxexport.exe.
-i DDS
to the end of the new shortcut's Target Path (after the last quotation mark).You then need to drag and drop your SWF file over the new shortcut to generate the GFx file and any images necessary.
Drag-drop your SWF file over the new shortcut
The GFx Export tool for Scaleform 4 can be found at <root>\Tools\GFxExport\Scaleform4\GFxExport1.exe.