Including the Shu Commands
Overview
To make use of the Shu commands in your AIR project, you will need to include the Shu.swc.
This process varies depending on what type of project you are creating.
Flex builder
- With a project selected in the Flex Navigator view, select
Project > Properties > Flex Build Path. - Select the Library tab.
The core library (SWC) files, such as frameworks.swc and playerglobal.swc, appear. - Select 'Add SWC' to add the Shu.swc.
- After adding, select the Shu.swc and double-click the Link Type option.
The Library Path Items Options dialog box appears. - Select the 'Merged into Code' option, and click OK.
- You can then initialize and access Shu via:
import com.cjt.shu.Shu;
var shu = Shu.GetInstance();
Flex SDK comand-line compiler
Simply add:
-library-path+=path/to/Shu.swc
Flash CS3
- Place the Shu-cs3.swc in your Components folder. Eg:
Windows:C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components
Mac:/Application/Adobe Flash CS3/Configuration/Components
- Restart Flash.
- Drag the Shu component from the Components Panel onto the stage.
- You can then initialize and access Shu via:
import com.cjt.shu.Shu; var shu = Shu.GetInstance();
HTML and JavaScript based AIR file
- Make a copy of the Shu.swc and rename it Shu.zip
- Extract the file library.swf from the zip and place it in a folder named lib.
- In your html code:
<script src="lib/library.swf" type="application/x-shockwave-flash"></script> - You can then initialize and access Shu via:
var shu = runtime.com.cjt.shu.Shu.GetInstance(); - Make sure the lib directory and library.swf file are also included when the AIR file is created.
Quick Links
Latest News
New Release of Shu Lite! - 02.07.08
We are proud to announce the release of Shu Lite! So what is Shu Lite? - Everything Shu is but without the extra commands. Read more
Shu application update. - 15.04.08
We have been in ongoing discussions with Adobe regarding AIR redistribution in our product Shu and in turn, redistribution in Shu output applications.
Read more
SHU site launches - 01.04.08
The long awaited launch of the world's first AIR packager application for extending AIR features.
Read more


