Re: [Flashcoders] How-To access Flash Player from C++ on OSX ?

2006-10-30 Thread Frank Baumgartner



Hello Nicolas!

thanks for the hint! - i have had a look at SWHX already, however i really 
need a native c++ solution.


I have been googling my fingers wound, but i haven't found a flash 
integration example for mac/XCode.  It's crazy. - As you can find many 
examples for windows.


kind regards,

Frank




- Original Message - 
From: Nicolas Cannasse [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, October 29, 2006 8:12 PM
Subject: Re: [Flashcoders] How-To access Flash Player from C++ on OSX ?



Hello Everybody !

I've already been Flash Player together with custom C++ solutions under 
Windows and it's working nicely.


However, at the moment i am very interested on cross-plattform 
development using flash for user interfaces on both windows and OSX, but 
i've got very little experiences on OSX development, especially 
concerning the topic how to access flash player on OSX !?.


Can anybody help?

(Currently i'm using XCode. I've seen you can use Cocoa, Webkit, Carbon, 
...  I've managed to do some simple Cocoa-based userinterfaces - But how 
to embedd Flash Player?)


Thanks!


You might have a look at SWHX : http://haxe.org/swhx
It enables you to control the Flash Player from haXe/Neko. And since you
can add C/C++ libraries to Neko, you can also interact with the Flash
Player this way.

Nicolas
___
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


Re: [Flashcoders] How-To access Flash Player from C++ on OSX ?

2006-10-30 Thread Alisdair Mills
Hi Frank,

I've done a few things that connect flash and cocoa, basically you load your 
flash into a webview and use javascript from both cocoa and flash as the bridge 
between the two. there isn't a lot of info out there and I can do a full step 
by step tutorial later but for now I've uploaded an FLV viewer XCode project I 
started. The code is completely uncommented but hopefully will provide some 
ideas on how to achieve what you want... will post a proper tutorial later.

http://files.alisdairmills.com/VuFLV.zip

cheers, Al

 
On Monday, October 30, 2006, at 01:24AM, Frank Baumgartner [EMAIL 
PROTECTED] wrote:


Hello Nicolas!

thanks for the hint! - i have had a look at SWHX already, however i really 
need a native c++ solution.

I have been googling my fingers wound, but i haven't found a flash 
integration example for mac/XCode.  It's crazy. - As you can find many 
examples for windows.

kind regards,

Frank




- Original Message - 
From: Nicolas Cannasse [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Sunday, October 29, 2006 8:12 PM
Subject: Re: [Flashcoders] How-To access Flash Player from C++ on OSX ?


 Hello Everybody !

 I've already been Flash Player together with custom C++ solutions under 
 Windows and it's working nicely.

 However, at the moment i am very interested on cross-plattform 
 development using flash for user interfaces on both windows and OSX, but 
 i've got very little experiences on OSX development, especially 
 concerning the topic how to access flash player on OSX !?.

 Can anybody help?

 (Currently i'm using XCode. I've seen you can use Cocoa, Webkit, Carbon, 
 ...  I've managed to do some simple Cocoa-based userinterfaces - But how 
 to embedd Flash Player?)

 Thanks!

 You might have a look at SWHX : http://haxe.org/swhx
 It enables you to control the Flash Player from haXe/Neko. And since you
 can add C/C++ libraries to Neko, you can also interact with the Flash
 Player this way.

 Nicolas
 ___
 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@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 access Flash Player from C++ on OSX ?

2006-10-30 Thread Jiro Harada

Hello,

I created a Flash viewer using Flash Player 9 for Mac OS (Intel and  
PPC).
In my application a custom control written in C is used to display  
flash movies.
To create the custom control I referred to following web pages and  
the source code:

http://www.mozilla.org/projects/plugins/
http://webkit.org/
http://developer.apple.com/documentation/Carbon/Conceptual/ 
HandlingWindowsControls/hitb-wind_cont_tasks/chapter_3_section_8.html


My application(freeware) is downloadable at the following URL:
http://www.f-ab.net/

Jiro Harada,
from Tokyo

___
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 access Flash Player from C++ on OSX ?

2006-10-30 Thread John Dowdell

Frank Baumgartner wrote:

I've already been Flash Player together with custom C++ solutions under Windows 
and it's working nicely.
However, at the moment i am very interested on cross-plattform development using flash 
for user interfaces on both windows and OSX, but i've got very little experiences on OSX 
development, especially concerning the topic how to access flash player on OSX 
!?.


This might be tricky, cross-platform. Here's the background:

Netscape 2.0 introduced a cross-platform browser extension mechanism, 
named Netscape Plugins. These platform-specific extensions were 
installed at the application level, into the browser, and could then 
support cross-platform SWF files.


But Microsoft used a different extension mechanism for its Windows 
browsers. They used the system-level ActiveX Controls. This is why the 
nested OBJECT/EMBED structure is used, and affected why the W3C outlawed 
EMBED and settled on OBJECT.


Because ActiveX Controls are system-level components, they can then be 
invoked by any application on the system. Netscape Plugins, though, are 
bound to the application space instead of the system space. That's why 
it's easy to do what you're doing on Windows, and more difficult on 
other platforms, or on Windows boxes which prefer Firefox to IE.


If your XCode skills include the hosting of Netscape Plugins, then you 
might be able to tap into the Mozilla Plugins folder yourself, or else 
ask your audience to copy the plugin into your own local directory (or 
do it during installation, etc). I haven't studied how XCode handles 
this, and how easy it makes it to host Netscape Plugins, but that would 
be the path on anything other than a straight Microsoft system.


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 access Flash Player from C++ on OSX ?

2006-10-30 Thread Frank Baumgartner




Hello John!

thanks very much for your feedback!

I have done further investigations today, basically when i am talking about 
cross-plattform i think of it in a sense that i can implement an active-x 
host under windows (which i already have got!) and some other solution for 
OSX.  As long as the code compiles cross-plattform using various #ifdef's 
it's fine to me.


The main cross-plattform aspect for me actually is Flash itself. - Reusing 
the user-interface on multiple platforms.


Concerning the OSX implementation, i consider the following solutions:

1) using webKit (an easy one, i got this working today however i don't think 
the scripted communication between Flash Player and my code is a nice way to 
do it!)

2) hosting a netscape plugin
3) XPCOM
4) writing my own webkit plugin host (at the moment i consider this to be 
the best solution)


I consider 4) the most useful way of implementation in my case, especially 
if you're considering i want to implement the Flash 8+ external API as well 
as the fact that i am not running a standalone application but i want to use 
flash for VST audio-plugins and/or AU audio units.


I'd be very interested what you think about the things I've written above, 
wheter you thing writing a Webkit Plugin Host would be a nice way.


Thanks,

Frank

p.s.: i've mainly oriented myself at Flash OSX projector tools. One was 
using webkit, and another one - i assume - did use it in a more native way 
(i assume way #4). Any tips/help/thoughts are highly appreciated.




- Original Message - 
From: John Dowdell [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, October 30, 2006 10:13 PM
Subject: Re: [Flashcoders] How-To access Flash Player from C++ on OSX ?



Frank Baumgartner wrote:
I've already been Flash Player together with custom C++ solutions under 
Windows and it's working nicely.
However, at the moment i am very interested on cross-plattform 
development using flash for user interfaces on both windows and OSX, but 
i've got very little experiences on OSX development, especially 
concerning the topic how to access flash player on OSX !?.


This might be tricky, cross-platform. Here's the background:

Netscape 2.0 introduced a cross-platform browser extension mechanism, 
named Netscape Plugins. These platform-specific extensions were installed 
at the application level, into the browser, and could then support 
cross-platform SWF files.


But Microsoft used a different extension mechanism for its Windows 
browsers. They used the system-level ActiveX Controls. This is why the 
nested OBJECT/EMBED structure is used, and affected why the W3C outlawed 
EMBED and settled on OBJECT.


Because ActiveX Controls are system-level components, they can then be 
invoked by any application on the system. Netscape Plugins, though, are 
bound to the application space instead of the system space. That's why 
it's easy to do what you're doing on Windows, and more difficult on other 
platforms, or on Windows boxes which prefer Firefox to IE.


If your XCode skills include the hosting of Netscape Plugins, then you 
might be able to tap into the Mozilla Plugins folder yourself, or else ask 
your audience to copy the plugin into your own local directory (or do it 
during installation, etc). I haven't studied how XCode handles this, and 
how easy it makes it to host Netscape Plugins, but that would be the path 
on anything other than a straight Microsoft system.


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 


___
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 access Flash Player from C++ on OSX ?

2006-10-29 Thread Nicolas Cannasse
 Hello Everybody !
 
 I've already been Flash Player together with custom C++ solutions under 
 Windows and it's working nicely.
 
 However, at the moment i am very interested on cross-plattform development 
 using flash for user interfaces on both windows and OSX, but i've got very 
 little experiences on OSX development, especially concerning the topic how 
 to access flash player on OSX !?.
 
 Can anybody help?
 
 (Currently i'm using XCode. I've seen you can use Cocoa, Webkit, Carbon, ...  
 I've managed to do some simple Cocoa-based userinterfaces - But how to embedd 
 Flash Player?)
 
 Thanks!

You might have a look at SWHX : http://haxe.org/swhx
It enables you to control the Flash Player from haXe/Neko. And since you
can add C/C++ libraries to Neko, you can also interact with the Flash
Player this way.

Nicolas
___
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