Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2003, 09:40 AM
Junior Member
 
Join Date: May 2003
Posts: 2
Default Capturing out parameters with FFish script

Hello,

I am interested in using SWFkit to develop an interface for a sales dashboard tool. Part of the tool will include search functionality. I have been testing a COM component, developed in Delphi and VB, which passes back some of the search information via "out parameters." An example of code is below:

Code:
var objDoc = new ActiveXObject("AXmlSrchC.Srch32");
var indexName = "C:\\crindex";
objDoc.Open(indexName);
// recNum is the number of search results found:
var recNum = objDoc.Search("search string");
var recName, recdate;

for (var i=0; i<recNum; i++) {
// out parameters are recName and recDate:
objDoc.GetRecNameTimeByNum(i, recName, recDate)
FlashPlayer.bindData("results");
// recName value is undefined:
FlashPlayer.results += recName;
FlashPlayer.updateData(false); * * *
}
My question is, how do I get the values from the recName and recDate out parameters using FFish script?

Thank you for your help.

--Ben
Reply With Quote
  #2 (permalink)  
Old 05-22-2003, 09:08 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Capturing out parameters with FFish script

Sorry, SWFKit doesn't support capturing out parameters(It can only do it in an event handler).

You should modify the method to GetRecNameByNum or GetRecTimeByNum, and change the type to [out, ret].

Or you must write another object to encapsulates its methods.
Reply With Quote
  #3 (permalink)  
Old 05-22-2003, 09:19 AM
Junior Member
 
Join Date: May 2003
Posts: 2
Default Re: Capturing out parameters with FFish script

Thanks for the reply. The search component is a third-party component, not something I wrote myself, so I don't know how successful I'll be in getting the developer to change the return types. I guess an option would be to write an intermediary component which returns the values of the out parameters as "retvals" which the Ffish script will be able to capture.

Still, your product looks great!

--Ben
Reply With Quote
  #4 (permalink)  
Old 05-22-2003, 09:59 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Capturing out parameters with FFish script

We can help you to build the intermediary component if you like.
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 02:45 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.