Description
available: SWFKit Pro
The Form object enable you to create applications with multiple forms. It can represent a modal or a modeless form.
A form is a modal or modeless window contains a playing Flash movie(SWF file). The Form object provides methods to create a form and get data from a form.
Each form has a return string. When the form is closed, you can test the return string of the form to see what action that has been done by the form. The return string can be returned by the ffish_ret command(see below) or the close method. If the form is closed by the x button, the return string will be empty.
The playing flash movie in the form can call all the fscommands such as ffish_run, ffish_eval which are supported by swfkit. The form object support one more fscommand than the main movie: the ffish_ret command
fscommand("ffish_ret", "the ret value");
When the movie calls the fscommand, the form will be closed and return a string "the ret value".
Syntax
new Form();
Usage
var form = new Form; form.movie = getMovies()[1]; form.showCaption = true; form.canDrag = true; form.caption = "A test";
form.initVars = "from=100&to=200&dir=c:\\";
form.onExit = function (ret)
{
trace("The return value is: " + ret);
trace(this.getVariable("_root.from"));
trace(this.getVariable("_root.to"));
trace(this.getVariable("_root.dir"));
}
if (form.show() == 'ok')
{
...
}