JiuGongGe.swc - JiuGongGe UI for Flash AS3 Projects

Datetime:2016-08-23 02:54:50          Topic: ActionScript           Share

For using the JiuGongGe UI in your Flash/AS3 projects, here is the pre-compiled swc file:

https://flaswf.googlecode.com/svn/trunk/JiuGongGeUI-v0.2/swc/JiuGongGe.swc

An example FlashDevelop project:

https://flaswf.googlecode.com/svn/trunk/JiuGongGeUI-v0.2/swc

To use "JiuGongGe.swc", first add the swc file to your project's library (path). Since the swc is built directly from original HaXe source code, there're two requirements:

1. Your main class must be a sub-class of " MovieClip " instead of " Sprite ".

2. Add the following code before using the " JGG " class:

haxe.initSwc(this);
Check the post http://bruce-lab.blogspot.com/2014/11/jiugongge-ui-simple-open-source-ui.html for how to using the UI library - most of the HaXe code in the post also works in Flash. Note that the function "Assets.getText()" and "Assets.getBitmapData() " are provided by OpenFL, so you may need to embed the assets in your AS3 code like the example Flash project.




About List