Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2006, 04:48 AM
Junior Member
 
Join Date: May 2006
Posts: 20
Default How to write FFish script in .as file?

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
Reply With Quote
  #2 (permalink)  
Old 05-15-2006, 12:48 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:How to write FFish script in .as file?

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);
}
2. in as editor, call the ffish script in swfkit
Code:
on (click)
{
    fscommand("ffish_run", "openfile");
}
Reply With Quote
  #3 (permalink)  
Old 05-15-2006, 12:52 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:How to write FFish script in .as file?

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;
    }
}
Reply With Quote
  #4 (permalink)  
Old 05-17-2006, 01:19 AM
Junior Member
 
Join Date: May 2006
Posts: 20
Default Re:How to write FFish script in .as file?

Thank you for replying.

---------------
Alvin
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:42 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.