all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

Calling external (DLL) functions



Calling external (DLL) functions Freydaklin
7/22/2007 7:21:03 PM
flash actionscript: Hi everybody!
I know this might be a special question, but i didnt find any solutions
(whycih i could understand) to my problem:
Is there any way to call functions from a (in C++ written) DLL, or any other
way to get access to C++ functions?

This would really help me, because i'd like to use Flash to create desktop
applications, and use C++ for system integration.
All sujestions are welcome! :smile;
Re: Calling external (DLL) functions GWD
7/22/2007 9:15:33 PM
I think you would have to investigate some of the 3rd party wrapper tools eg
MDM Zinc (try googling for that). There are others but as well if you google
for flash projector tools - but I don't know what their capabilities are.

I don't think you can do this with Adobe's AIR as it would mess with the
cross-platform consistency approach - but I haven't really played with AIR yet,
and its been a while since I read up on it - so perhaps I'm wrong.
Re: Calling external (DLL) functions Freydaklin
7/23/2007 12:00:00 AM
Mmh, i see...
I also found an article on livedocs:

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?con
text=LiveDocs_Parts&file=00005059.html
but it looks a bit complex.
However, i'll try anyway.

Thanks for your reply GWD!
Re: Calling external (DLL) functions GWD
7/23/2007 12:00:00 AM
Well that's ok if you want to extend flash (the authoring tool) but not if you want to access a DLL from flash (actionscript).
Re: Calling external (DLL) functions Freydaklin
7/23/2007 12:00:00 AM
You're right, i didnt read well.

But about these projector, <what> are they?
I know Flash can make an executable from an SWF, and i thought those
projectors would do exactly the same,
so what's the difference?
Re: Calling external (DLL) functions GWD
7/23/2007 12:00:00 AM
The third party tools "wrap" or 'host' the activex control and provide an
extended api - think of them as a much enhanced version of the standard flash
projector, which is pretty limited. I just know what's possible I can't speak
from experience - but I know others here on the forums have used them.

There is an open source type of implementation called haxe or screenweaver..
or something like that... but I don't know if it will do what you want.

I know Zinc will because I did a quick search and it said so - so I guess it
should! Other names that spring to mind are Jugglor and Swf Studio. I haven't
checked these out to see if they can use external libraries.
Re: Calling external (DLL) functions Freydaklin
7/23/2007 12:00:00 AM
Thanks!
Re: Calling external (DLL) functions GWD
7/23/2007 12:00:00 AM
I just took a look at it and yes I think at first glance it can do the sort of
thing you want. The swf runs within a neko virtual machine. Neko provides
additional api support for the desktop app stuff and you can extend it with
additional libraries. Haxe is the programming language.
Like I said I haven't used it, but the communication between flash and neko is
similar in concept to the other commercial examples I think.


Re: Calling external (DLL) functions Freydaklin
7/23/2007 1:44:18 PM
Do you know where i can find any code snippet, or tutorial, or description?
Re: Calling external (DLL) functions Gorka Ludlow
7/23/2007 2:09:54 PM
Instead of wrapping flash with 3rd party tools you could create a WebService
(.NET) and use the dll in the webservice. It is then much easier to call the
WebService from flash.

Cheers,
Gorka
www.AquiGorka.com
Re: Calling external (DLL) functions Freydaklin
7/23/2007 2:29:30 PM
Seems like a good idea, but i'm looking focussing on Desktop-applications, not on the web.
Re: Calling external (DLL) functions Freydaklin
7/23/2007 2:37:48 PM
AddThis Social Bookmark Button