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; private static 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 Prices + Features! - 04.03.09
We are proud to announce great new price offers on all our Shu
products, as well as features enhancements to exec and execAsync.
Read more.
New Shu Products! - 05.02.09
We are proud to announce the release of our new
installable version of Shu, as well as exciting updates across the product range. Read more.
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


