Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2005, 11:52 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Can FFish call Flash Function?

Is it possible call function defined in flash?
Reply With Quote
  #2 (permalink)  
Old 11-04-2005, 01:54 PM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Can FFish call Flash Function?

It seems FFish can only access to Flash's variable,
while i want to access movieClip, and call code attached to the Clip

is that possible?
Reply With Quote
  #3 (permalink)  
Old 11-05-2005, 12:44 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Can FFish call Flash Function?

I've found a bypass way to solve the problem,
using swfkit's Trigger component,in it's envet handler to call Flash function.

however,I still want to know that if there is any brief method to do this?


thanks!
Reply With Quote
  #4 (permalink)  
Old 11-08-2005, 08:08 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Can FFish call Flash Function?

Not the current version, it requires Flash 8 + SWFKit 3
Reply With Quote
  #5 (permalink)  
Old 11-09-2005, 01:21 AM
Member
 
Join Date: Oct 2005
Posts: 87
Default Re:Can FFish call Flash Function?

Yes! I'm using Flash 8
when SWFKIT 3 comes up?
what the develop phase of SWFKIT 3,Beta1,2..?

I want SWFKIT 3 strongly!
Reply With Quote
  #6 (permalink)  
Old 11-13-2005, 06:21 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Re:Can FFish call Flash Function?

Hi,

One method I've used it to add blank frame at the start of the Flash movieclip with a "stop" on it.

Then have SWFKit play that movieclip when appropriate.

Not ideal, but you might want to give it a go.

Cheers,

G.
Reply With Quote
  #7 (permalink)  
Old 05-23-2006, 08:47 PM
Junior Member
 
Join Date: May 2006
Posts: 9
Default Re:Can FFish call Flash Function?

look that's ;D

Code:
var SKCall = new Object();
SKCall.run=undefined;
SKCall.callFonction = function(run, old, fdata)
{
var param = new Array();
param = fdata.slice();
param.shift() 
trace(fdata);
trace(param);
_root[fdata[0]].apply(null, param);

};
SKCall.watch("run", SKCall.callFonction);
you just have to set a new variable on SKCall.run
it's an Array
var MyArray=new Array("callFonction","param1","param2",...,"paramN ");


Voila!!
Kado ;D
French Touch
Reply With Quote
  #8 (permalink)  
Old 05-23-2006, 11:41 PM
Junior Member
 
Join Date: May 2006
Posts: 9
Default Re:Can FFish call Flash Function?

I MAKE A BIG MISTAKE!!!!!! :-[
so I repair..... ;)


Actionscript:
Code:
var SKCall = new Object();
SKCall.val = "";
SKCall.Run = undefined;
SKCall.callFonction = function(prop, old, fdata)
{
***var param = _root.SKCall.val;
***var paramArray = new Array();
***paramArray = param.split(",");
***var fonc = paramArray[0];
***paramArray.shift();
***_root[fonc].apply(null, paramArray);
};
SKCall.watch("Run", SKCall.callFonction);
SwfKit:
Code:
var SKCall=new Object;
SKCall.val=new Array("mafonction","ee",0xFF,"rr","tt");
SKCall.Run="go";
FlashPlayer.putObject("_root.SKCall",SKCall);
be carefull!!
no "_root" for the name of the fonction
and no......NO ", " on the arguments..... split function won't work....

it's work this time
See ya
Kado ;D
french retouch
Reply With Quote
  #9 (permalink)  
Old 05-24-2006, 12:39 AM
Junior Member
 
Join Date: May 2006
Posts: 9
Default Re:Can FFish call Flash Function?

Last version before the bed..... you can use the "," character...
you just have to call the FlashCall function....
FlashCall (function,param1,param2,....?paramN);

Actionscript
Code:
var SKCall = new Object();
SKCall.val = "";
SKCall.Run = undefined;
SKCall.callFonction = function(prop, old, fdata)
{
var param = _root.SKCall.val;
var paramArray = new Array();
paramArray = param.split(String.fromCharCode(219));
var fonc = paramArray[0];
paramArray.shift();
_root[fonc].apply(null, paramArray);
};
SKCall.watch("Run", SKCall.callFonction);
SwfKit:

Code:
function FlashCall ()
{
var param= new Array();
for (var n=0;n<arguments.length;n++)
{
param.push(arguments[n]);


}
var stringParam =param.join(String.fromCharCode(219))
var SKCall=new Object;
SKCall.val=stringParam;
SKCall.Run="go";
FlashPlayer.putObject("_root.SKCall",SKCall);

}

;D ;D ;D ;D ;D
Kado
French touch
http://adonnoh.free.fr
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:03 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.