|
|||
|
Hi swfkit:
![]() I just found this product. This's just what I want,a fantastic one! FFish is easy and powerful. Since I'm a actionscripter ,I'm coding in AS editor. And I use MM IDE only to pack components I want and publish a swf. Anything else I do is in AS editor. Could you please tell me if I can write FFish in a class file? Or how does a class communicat with FFish? Alvin |
|
|||
|
Thank you. Coding ffish script in as editor is a feature of the next version of swfkit, swfkit 3. In the current version, you would have to add a new script in the ffish script editor of swfkit, and then call the script in as by using the fscommand. E.g. Launch a file open dialog box by a button click:
1. insert a script named "openfile" into swfkit, in the script editor add the following code Code:
var filename = Dialogs.fileOpen("All files(*.*)|*.*");
if (filename)
{
FlashPlayer.setVariable("_root.filename", filename);
}
Code:
on (click)
{
fscommand("ffish_run", "openfile");
}
|
|
|||
|
Only in swfkit 3 + flash 8 you can call the ffish script methods in as directly, e.g. in as editor
Code:
on (click)
{
var name = SWFKit.Dialogs.fileOpen("All files(*.*)|*.*");
if (name)
{
_root.filename = name;
}
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|