Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2007, 06:09 PM
Member
 
Join Date: Sep 2006
Posts: 38
Default PASSING Data to FFishScripts?

Hello,

I'm trying to solve a problem of communicating between a FLEX application and SWFKIT.

When running a FFishScript Script usiung "ffish_run", is there ANY WAY to PASS variables INTO the script?

I'm looking for something like:

theEncryptedString = ExternalInterface.call("ffish_run","EncryptString" ,"TEST_STRING");



Thanks in Advance for ANY assistance?
Reply With Quote
  #2 (permalink)  
Old 02-26-2007, 07:40 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:PASSING Data to FFishScripts?

for using variables in a ffish_script I always do it this way.
I write a function in Ffish like
Code:
function EncryptString(string){
      blablabla
}
and call it from flash like

Code:
TEST_STRING = "sometest"
theEncryptedString = ExternalInterface.call("ffish_eval","EncryptString('"+TEST_STRING+"')");
Reply With Quote
  #3 (permalink)  
Old 02-26-2007, 09:27 AM
Member
 
Join Date: Sep 2006
Posts: 38
Default Re:PASSING Data to FFishScripts?

Thanks for your reply.

What I don't understand is how to declare the SCRIPT in SWFKit to accept a parameter.

This script is calling a DLL, and the SWFKit folks have previously told me that this HAS to be done within SWFKit instead of within functions in Flash/Flex.

I've yet to find any way to tell SWFKit that a Script should accept an input parameter.

Best Regards,

Steve

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:09 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.