| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Apr 2001
Posts: 5
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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 ![]() Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2001
Posts: 5
|
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. |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Youc all them using FSCommands, see this tutorial:
http://www.actionscripts.org/tutoria...es/index.shtml See these threads for info on passing parameters: http://www.actionscripts.org/forums/...3?threadid=728 http://www.actionscripts.org/forums/...3?threadid=841 Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Apr 2001
Posts: 5
|
Thanks a lot, sorry for redundant questions
![]() Philippe. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Oct 2001
Posts: 1
|
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 |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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).
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling Flash function with Javascript | binkyboo | ActionScript 1.0 (and below) | 2 | 03-15-2008 10:17 AM |
| Developing a flash site, Part1: Some thoughts | Bloom22 | Other Flash General Questions | 6 | 09-29-2006 03:10 AM |
| Flash calling Javascript | cerupcat | ActionScript 2.0 | 4 | 02-11-2005 09:54 PM |
| Flash MX Developers Exam | VitiminJ | General Chat | 34 | 05-05-2004 02:27 PM |