Re: [Flashcoders] Swf File Use as Interface for Executable

2008-12-21 Thread Taka Kojima
Kelly,

As far as I know Flash can't receive data by any other means than TCP. So
your best route would probably be using socket connections.

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0318.html

Using a socket connection you can transmit real-time binary data back and
forth between Flash and your server. Of course, you'll have to get a server
set up, which depending on what you need, shouldn't be too hard.

Once you get the hang of them, socket connections are fairly straight
forward and simple to use.

If you're deploying this as an AIR app, you might have some more options, I
haven't worked with AIR much so I'm not sure if there is another method you
can use.

Hope this helped.

Taka

On Sun, Dec 21, 2008 at 3:09 AM, Kelly Snyder ksnyder1...@hotmail.comwrote:


 Does anyone know what the underlying technology is behind programs like
 Zinc?  I need to run an AS 3 Flash file as an interface for a program
 written in C++.  This means that I need to pass a lot of data
 back-and-forth.  I can find just a couple of very basic tutorials on this
 subject, but I am looking for something more substantial.  All of the
 references in Flash books on this topic are little more than footnotes.  I
 understand that AS 3 has a few more options for this task than AS 2 had.

 Thanks,
 Kelly
 _
 Send e-mail faster without improving your typing skills.

 http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Swf File Use as Interface for Executable

2008-12-21 Thread Ian Thomas
Kelly,
   I suggest you look into the sources of SWHX (Screenweaver HX). This
embeds and wraps Flash movies by using the Flash Netscape Plugin (i.e.
the plugin used by Firefox). It's open source - it is used by the haXe
language, but the embedding code is written in C.

http://haxe.org/com/libs/swhx

From what I remember, the bulk of the communication is done between
the wrapper and the SWF using Flash's ExternalInterface rather than
using sockets as Taka suggests.

Hope that helps,
   Ian

On Sun, Dec 21, 2008 at 11:09 AM, Kelly Snyder ksnyder1...@hotmail.com wrote:

 Does anyone know what the underlying technology is behind programs like Zinc? 
  I need to run an AS 3 Flash file as an interface for a program written in 
 C++.  This means that I need to pass a lot of data back-and-forth.  I can 
 find just a couple of very basic tutorials on this subject, but I am looking 
 for something more substantial.  All of the references in Flash books on this 
 topic are little more than footnotes.  I understand that AS 3 has a few more 
 options for this task than AS 2 had.

 Thanks,
 Kelly
 _
 Send e-mail faster without improving your typing skills.
 http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Swf File Use as Interface for Executable

2008-12-21 Thread Matthew Muller

Try looking at dispatching events through a com object to javascript.

Sent from my iPhone

On 21 Dec 2008, at 11:45, Taka Kojima t...@gigafied.com wrote:


Kelly,

As far as I know Flash can't receive data by any other means than  
TCP. So

your best route would probably be using socket connections.

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0318.html

Using a socket connection you can transmit real-time binary data  
back and
forth between Flash and your server. Of course, you'll have to get a  
server

set up, which depending on what you need, shouldn't be too hard.

Once you get the hang of them, socket connections are fairly straight
forward and simple to use.

If you're deploying this as an AIR app, you might have some more  
options, I
haven't worked with AIR much so I'm not sure if there is another  
method you

can use.

Hope this helped.

Taka

On Sun, Dec 21, 2008 at 3:09 AM, Kelly Snyder  
ksnyder1...@hotmail.comwrote:




Does anyone know what the underlying technology is behind programs  
like

Zinc?  I need to run an AS 3 Flash file as an interface for a program
written in C++.  This means that I need to pass a lot of data
back-and-forth.  I can find just a couple of very basic tutorials  
on this

subject, but I am looking for something more substantial.  All of the
references in Flash books on this topic are little more than  
footnotes.  I
understand that AS 3 has a few more options for this task than AS 2  
had.


Thanks,
Kelly
_
Send e-mail faster without improving your typing skills.

http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders