Creating a Flex library project
The first step in creating Guide extensions is to create
a Flex library project in Flash Builder. When completed, the Flex
library projects you create must be compiled into an SWC file for
importing into the Guide Design perspective in Workbench. An SWC
file
is
an archive file for Flex components and other assets.
Each Flex library project you create must include the following
elements:
-
A reference to the Guide runtime library (SWC) file.
-
A folder structure with specific subfolders for each type
of Guide extension. For more information about creating the correct
folder structure, see
The folder structure for the Flex library project
.
In addition, you can optionally include additional SWC files
that contain MXML components or ActionScript classes that you want
to leverage. You can also include other assets such as image files
or videos.
Create a Flex library project for custom Guides
-
Start
Flash Builder.
-
Select
File
>
New
>
Flex Library Project
.
-
Type a project name, assign a workspace, set the Flex SDK
version to the default Flex 3.4.1 version of the SDK, and then click
Next
.
-
Click
Library Path
.
-
Click
Add SWC
.
-
Go to the LiveCycle_ES_SDK\misc\Guides\code\libs folder where
Workbench is installed. By default, the path is C:\Program Files\Adobe\Adobe
LiveCycle Workbench ES2\LiveCycle_ES_SDK\misc\Guides\code\libs.
Add the following SWC file to the project:
-
Select the
Link Type
option for the SWC file, and
click
Edit
.
-
(Optional) Set the value of the
Link Type
option to
External
.
By keeping the dcruntime_library.swc file as an external reference,
you reduce the size of the compiled Guide extension (SWF file).
-
Click
Finish
.
After you create the
Flex library project, create a folder structure to store your Guide
extensions. Each type of Guide extension must be in an appropriately named
project folder.