开发者

Connecting Actionscript 3.0 with a C++ backend?

开发者 https://www.devze.com 2022-12-18 03:44 出处:网络
I am curious to know if there is a way of connecting a flash front-end to a C++ driven backend? I\'m not currently working on a project that involves this, but I found out about an application used in

I am curious to know if there is a way of connecting a flash front-end to a C++ driven backend? I'm not currently working on a project that involves this, but I found out about an application used in the gaming industry, called Scaleform, that requires knowledge on doing such things in order to create menus in games. 开发者_C百科


Another way to resolve the problem would be to create webservices using C++ and consume them on the flash side. It is a more naive approach and certainly not as good as Scaleform but it is certainly simpler to implement.

You could also have a look at FluorineFx which is an implementation of Flex/Flash Remoting services for the .NET framework. The project is open-source so it could help you get started. Basically, FluorinexFx catches the remote calls in AMF from the flash player and pipes it through the corresponding .NET method and corresponding arguments. It also helps you convert back to flash native .Net objects such as ArrayList, DataTable and even lists of typed objects.


Scaleform implement their own custom Flash Player, thats probably not what you had in mind.

What you can do in a reasonable amount of time is pretending to Adobes flash player that you are a NPAPI-compatible browser - see e.g. here how screenweaver-hx does it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号