Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2007, 08:04 AM
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default [HELP] I can't flash send parameter to swfkit scriptName

[HELP] I can't flash send parameter to swfkit scriptName


FSCommand("FFish_Run", "Changepassword"); //I can do it

/**flash**/
var name="insomnia"
FSCommand("FFish_Run", "Changepassword(name)");

/**swfKit scriptName Changepassword***/
trace(name)



tell me how to do it! Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-10-2007, 12:45 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: [HELP] I can't flash send parameter to swfkit scriptName

A ffish script does not accept parameters. To solve the problem, you can write a ffish script method and call it in actionscript. The following code shows how to do that

In ffish script
Code:
function changePassword(name) {
  ...
}
in actionscript
Code:
var name="insomnia";
FSCommand("FFish_eval", "changePassword(\"" + name + "\")");
or
Code:
import flash.external.*;
var name="insomnia";
ExternalInterface.call("changePassword", name);
or in swfkit 3.2
Code:
import SWFKit.*;
var g = new Global;
g.changePassword(name);
Reply With Quote
  #3 (permalink)  
Old 09-11-2007, 10:42 AM
Junior Member
 
Join Date: Sep 2007
Posts: 11
Default Re: [HELP] I can't flash send parameter to swfkit scriptName

Thank you!
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 04:33 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.