PDA

View Full Version : Calling an external fonction from Flash.


eussam
04-17-2001, 03:19 PM
Hello,

I am pretty new to Web and Flash matters. Hope this question is not completly useless :)

Let's suppose I wanna write some CPU consuming ActionScript.
Unfortunatly the playback of this code is really to slow. Can I call an external function written in C or Java for exemple from my ActionScript ?. If so, is it possible to do it from a movie on the Web ?

Thanks a lot in advance.

Jesse
04-18-2001, 02:58 AM
Yes you can call them, no not from the web, and I don't think you can recieve data back from them either so it might not be of any use at all...

My latest project involves calculating something like 48^3 possible solutions to a problem... it only takes a bout 3 seconds on my comp. Nothing' too hard for Flash :p

Cheers

Jesse

eussam
04-18-2001, 08:36 AM
Thanks a lot Jesse,

May I ask you how to call them ? I only saw on the forum the way to invoke JavaScript function from ActionScript, I guess there is a specific protocol to respect to have access to external functions. Or perhaps a javascript function allows to link external code to a flash movie.

Indeed, I wonder why Flash allows to launch external code if it is not possible to retrieve data from it ...

Thanks again for your fast answer.

Philippe.

Jesse
04-19-2001, 02:05 AM
Youc all them using FSCommands, see this tutorial:
http://www.actionscripts.org/tutorials/beginner/exec_files/index.shtml

See these threads for info on passing parameters:
http://www.actionscripts.org/forums/showthread.php3?threadid=728
http://www.actionscripts.org/forums/showthread.php3?threadid=841

Cheers

Jesse

eussam
04-19-2001, 07:44 AM
Thanks a lot, sorry for redundant questions :)

Philippe.

MauiBoy
10-01-2001, 09:47 PM
Hi

I know this post is old but I too have been trying to find out how to do this.

This question was not really answered properly here: the question is - does anybody know how to call external functions that are in an external DLL from Flash?

Mark Kluth
mkluth@mkluth.com

Jesse
10-02-2001, 12:56 AM
I don't think Flash can but I know that the programmer at my old workplace had his ASPs calling DLLs so maybe you could pass your data from Flash > ASP > DLL and back. Just a suggestion, I'm not sure how. (Well, Flash > ASP could be done via loadVariables or getURL easily, but the later is harder).