Flash can communicate over http and connect to tcp sockets, it's rather 
limited in what it can do beyond that but often that's all that's 
necessary. I'd suggest looking at projects where Flash communicates 
with a socket server and decide on a protocol (since Flash has really 
fast native parsing of XML that's probably a good place to start). Once 
you've got your protocol worked out you can write something to deliver 
it in Ruby (or any other language for that matter).

I am lucky enough to have a forum with a really active community of 
flash developers at twelvestone.com, that's a good place to look for 
flash stuff in the more application oriented arena and might be a good 
resource. I personally don't do much Flash and primarily live in the 
land of backend code, nuzzled up to strange hardware drivers and 
horrifying back-of-house systems so there's a limited amount of advice 
that I can offer for the front end side of things.

Cheers



On 22/01/2006, at 9:31 AM, Tom Dellaringa wrote:

> Wow, I've been looking for folks who have done Flash/Ruby integration
> for a month with very little success and here you are! However, I don't
> know C nor do I want to get involved with yet another language - but
> this would delivered strictly over the web.
>
> I've been pointed to various new things, osFlash and some other stuff 
> (a
> library that allows you to do everything in JavaScript) - but it sounds
> like you are saying as long as I have a TCP connection between the two 
> I
> am good to go? I am working on a game where the UI is going to be in
> Flash but the backend in Ruby. It's been real difficult getting info (I
> guess I'm not googling the right stuff! LOL)
>
> I will look into the TCP stuff in the pickaxe book. Totally understand
> about your code, but if you could offer any other suggestions on 
> getting
> me started on the Flash/Ruby integration, I would be really
> appreciative.
>
> Thanks!
>
> Tom
>
> Scott Weeks wrote:
>> I do a lot of work in the standalone kiosk market and because of that 
>> I
>> end up writing backends for Flash quite often. Ruby is excellent for
>> the task because of its easy integration with C (thus hooking into
>> hardware is a snap) and... well..., it's Ruby :-)
>>
>> Depending on how you are managing your backend the whole rails stack
>> might not be necessary. I'd certainly use ActiveRecord for persistence
>> but all you really need is a TCP socket server that Flash can talk to.
>> The Flash itself can be served via static HTML pages (or within a 
>> Rails
>> based website).
>>
>> Check out the Pickaxe documentation for the TCP libraries and do a
>> little googling, that should get you started.
>>
>> Unfortunately I can't post the stuff that I work on in that area
>> because it's commercial and I'd be killed by ravening management 
>> types.
>
>
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
>
>