About kagswf

General information

Kagswf is an easy to use, open-source, free (GPL) tool for building SWF applications based on ActionScript language and linking them with images.

Kagswf provides:

  • ActionScript 2.0 compiler, based on Mtasc and Swfmill
  • Standard low level component library giving access to essential display functions

Features:

  • Bezier drawing library — allows you to draw perfect circles and ellipses from the level of ActionScript code
  • Easy embedding images in SWF movies — supported formats are PNG, JPEG, partially SVG
  • Runtime image loading components that can create multiple copies of an image that was loaded once
  • Easy to use text display components that support embedded fonts in TTF format

An automatically generated documentation of the classes in kagstd package is available.

Usage

Compiler

When you call kagswf's compiler, it looks for files named "Frame1.as" with class "Frame1", "Frame2.as" with class "Frame2" etc. in the current directory. It compiles the classes into appropriate frames of SWF movie. Every time a played movie reaches a frame N, a new object of class "FrameN" is automatically created. All the frames have a default "stop" action assigned.

You can add data to the movie library in a specified frame by creating a subdirectory called "FrameN_library" and placing images as well as fonts in it.

See tutorial pages for examples.

ActionScript

All the project classes are passed through Mtasc compiler, which is fully compatible with ActionScript 2.0 language. However, it forces a strict programming style.

In Macromedia Flash you could write (without initializing variable "n"):

n = 10;
n *= 2;

When working with kagswf, you have to declare all variables with their types:

var n : Number = 10;
n *= 2;

Copyright by Karol Guciek, 2007

k.g|nospam|uciek@gma|nospam|il.com