Re: [Flashcoders] How to embed the Flash Player in a desktop application
Chris Velevitch wrote: 'What is the Flash Player's APIs so my C++ program can interface to it'? Like I wrote, the Player itself doesn't expose APIs to hosts so much as use whatever APIs the various hosts expose for communication. (You could say there's a type of API in the predefined play/stop/get/set commands, but this is a given set of commands passed through whichever communication interface the hosting browser offers.) That's ActiveX Scripting for ActiveX Controls (Windows only, usually IE/Win) and NPRuntime for currently-released plugin-using browsers, on Mac or Win. (Previously there was LiveConnect and then the first Mozilla/Firefox API. I think there may be a Linux browser intercommunication protocol too, but Linux browsers vary so greatly that I don't keep this in memory.) Rephrased, to host and communicate with the Adobe Flash Player, you need to either support ActiveX or Plugin hosting, and then implement the communication model which hosts of that type support. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How to embed the Flash Player in a desktop application
On 5/9/06, John Dowdell <[EMAIL PROTECTED]> wrote: I'm not sure I'm guessing the right question here, but if it's "Which of the browser APIs does Flash Player's 'externalInterface' call into?", then it's Microsoft's ActiveX Scripting host routines, and the NPRuntime API for plugin-using browsers: It's 'What is the Flash Player's APIs so my C++ program can interface to it'? And 'What the name and location of the Flash Player DLL (or whatever it is) that I need to link to when I compile by C++ program'? And I'm interested in the non-OCX version for platform independence as I believe OCX files are windows specific. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How to embed the Flash Player in a desktop application
Chris Velevitch wrote: While ago, someone mentioned how easy it is to write a C++ wrapper to create a desktop application with Flash as the UI. According to the documentation, "The ExternalInterface class ... lets you easily communicate from ActionScript and the Flash Player container ... to a desktop application that embeds Flash Player". I've been trying to find information on how to do this. In particular, what is it (ie the name and location of the file) you're embedding (especially when writting a cross platform app) and what is it's API. I'm not sure I'm guessing the right question here, but if it's "Which of the browser APIs does Flash Player's 'externalInterface' call into?", then it's Microsoft's ActiveX Scripting host routines, and the NPRuntime API for plugin-using browsers: http://www.mozilla.org/projects/plugins/npruntime.html If you can emulate either the first (for system-level ActiveX invocations) or the second (for application-level NSPlugin invocations) then your own C++ app should be able to communicate with the Player. But I'm not sure whether you're writing your own C++ app, there were a bunch of sentences, but I'm not sure what is being sought. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] How to embed the Flash Player in a desktop application
That's great Andre, but this is specific windows and OCX. How would you do it for Mac OSX and Linux, Solaris, etc? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] How to embed the Flash Player in a desktop application
Normally you would use the Flash OCX and sit it into your Application. The you hook up to the ActiveX´FlashCall event to recieve commands from Flash. Here is a little tutorial that should get you started (it´s C# but you get the idea) http://www.codeproject.com/csharp/flashexternalapi.asp hth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Monday, May 08, 2006 1:57 AM To: Flashcoders mailing list Subject: [Flashcoders] How to embed the Flash Player in a desktop application While ago, someone mentioned how easy it is to write a C++ wrapper to create a desktop application with Flash as the UI. According to the documentation, "The ExternalInterface class ... lets you easily communicate from ActionScript and the Flash Player container ... to a desktop application that embeds Flash Player". I've been trying to find information on how to do this. In particular, what is it (ie the name and location of the file) you're embedding (especially when writting a cross platform app) and what is it's API. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] How to embed the Flash Player in a desktop application
While ago, someone mentioned how easy it is to write a C++ wrapper to create a desktop application with Flash as the UI. According to the documentation, "The ExternalInterface class ... lets you easily communicate from ActionScript and the Flash Player container ... to a desktop application that embeds Flash Player". I've been trying to find information on how to do this. In particular, what is it (ie the name and location of the file) you're embedding (especially when writting a cross platform app) and what is it's API. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com