From: paul h Date: 2010-12-02T22:45:23+09:00 Subject: Extending & Distributing Ruby Hi all, Has anyone any ideas if it is possible to embed a Flash Player ActiveX Control on Windows or Plugin on *nix, into a Ruby program? Can Ruby interact with, control or display a swf? I have searched the group and found a few links but nothing is newer than 2005, and the links appear to be dead, so was just wondering if there have been any developments in this area that anybody knows about. I do a lot of UI work in Flex, and would like to continue using Flex for this, while using Ruby for the main program code. I currently write the UI in MXML, and the main program code is in ActionScript 3 Classes. I then port the whole thing to a Win32 EXE using a SWF2EXE wrapper tool. I would much prefer to be able to move away from ActionScript and write the program code in Ruby while continuing to use Flex for the UI. I could do the following: 1. convert a Flex built swf into a Windows exe with a SWF2EXE wrapper 2. package my Ruby code, MRI and any dependancies with RubyScript2EXE 3. call my ruby code from the Flex built exe sending params to the commandline, and receiving output from STDOUT - enabling the two to interact. However, I think a better way would be to embed the swf into the ruby code itself, so that ruby controls the whole show. It would also make the program more portable between OS's since my SWF2EXE wrapper is only Windows - no Mac or *nix support. If anyone has any ides on this, I'd be very grateful. I am about to start looking into what Ruby can do on the GUI front tonight as well, but if anyone can point me in the right direction there, I would be grateful. I have found: https://spreadsheets.google.com/ccc?key=0AhXm-H2N4yCkdHFlVU1KcEJXeXlUVlRGdGQzbkJlbXc&hl=en&authkey=CKHc3rwM#gid=0 Which gives me some avenues to investigate, but advice based on experience would be appreciated. Thanks Paul