Apr 29

Extending Apollo with Ruby using RubyAMF

Tag: Apollo, Flex, Ruby, RubyAMFDerek Wischusen @ 3:08 am

At the end of my last post about RubyAMF I mentioned that I was particularly interested in how it could be used to extend Apollo applications using Ruby in the same way that Artemis makes it possible to extend Apollo with Java.

Here’s why:

  • It enables AMF3 communication between Flex and Ruby.
  • It comes with its own webrick servlet, so deploying RubyAMF is dead simple (if you have Ruby installed).
  • It’s small: less than 300k. So it’s a quick download.

Here’s an example:

I put together a very simple demo app that uses RubyAMF to extend Apollo. I am calling the app Clairify (because everything needs a name). Clairify allows you to take a screenshot of whatever is underneath it, mark it up with some simple drawing tools and text boxes, and then save it to disk. The concept behind Clairify is that you could use it to quickly provide feedback on an application’s UI.

It would take several steps and downloads for many people to run the app, so I’ve put together a short video.

Here is a quick overview of what is going on in the video:

  1. I launch Clairify.
  2. When Clairify launches all you see are the controls. The rest of the app is transparent.
  3. I then bring up the interface that I want to capture (the login screen of my simple issue tracker).
  4. I click the capture button. This calls code in Ruby (see below) that captures the screen and saves the image to a PNG that Apollo loads.
  5. I add some comments to screen.
  6. I click save, which uses Apollo’s File API to save the marked up image to my desktop as PNG.
  7. I open up the PNG in Fireworks.

Click here to view the video.

If you want to take a look at the Apollo source code, click here. (If you really want to know how to run this on your own machine let me know and I will put together some instructions).

And, here is the Ruby code:

require 'win32screenshot'
require 'RMagick'
include Magick

class CaptureService
  def screenCapture
    width, height, bitmap = Win32::Screenshot.desktop
    img_lst = ImageList.new
    img_lst.from_blob(bitmap)
    img_lst.write('public/screen.png')
    true
  end
end

Credits:
Clairify is based on the ScreenPlay app that is avalable on Adobe Labs.

5 Responses to “Extending Apollo with Ruby using RubyAMF”

  1. Tim Lucas says:

    That’s pretty neat!

  2. Aaron Smith says:

    Nice Work! I’m really excited to see some experimentation with RubyAMF. Sweet!

  3. Alex MacCaw says:

    This is similar to the way that artemis works, although they use rtmp.

  4. links for 2007-04-29 at überthings, inc. says:

    [...] flexonrails.net » Blog Archive » Extending Apollo with Ruby using RubyAMF Apollo + Ruby.. hmm… (tags: ruby flex apollo programming) These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  5. Max says:

    Hi,
    I am interested to knowing about executing the example on my computer.

    Thanks

Leave a Reply

Generic cialis tadalafil
Valium without prescription uk
Phentermine 37.5 mg
Cheap propecia without prescription
Cheap xanax for sale
Buying tramadol in uk
Cialis for sale

Blood pressure and prednisone
Tramadol cod delivery
Viagra sale uk
Where to buy levitra online
Xanax overnight cod
Xanax for sale without prescription
Buy propecia cheap
Phentermine 37.5 wholesale
Buy generic propecia uk
Valium generic
Buy viagra australia
Cheap cialis soft tabs
Propecia usa
Propecia cheap
Low cost levitra
Buy generic cialis
Order phentermine online no prescription
Tramadol for sale
Purchase tramadol without prescription
Buy xanax overnight
Viagra indian pharmacy
Phentermine purchase online
Valium 10 mg
Best price tramadol
Cialis ordering
Prescription viagra uk
Buy valium without prescription uk
Viagra discount coupons
Order tramadol cod
Viagra purchase uk
Overnight xanax delivery
Propecia price
Viagra express delivery
Buy phentermine online no prescription
Brand name cialis
Cheap tramadol overnight delivery
Phentermine canada no prescription
Phentermine diet pills without prescription
Tramadol online overnight
Tramadol free shipping
Xanax bars effects
Where to buy cialis safely
Prescription propecia
Buy phentermine online without prescription
Xanax bars dosage
Cialis 10mg side effects
Buy tramadol cod
Best way to take tramadol
Xanax 1mg
Side effects of viagra
Buying xanax online without prescription
Buy generic phentermine online
Free cialis samples
Buy tramadol hcl
Tramadol prescription online
Levitra online cheap
Dosage of xanax
Best price on phentermine
Cheap tramadol cod
Buy generic cialis uk
Pfizer viagra price
Buying cialis online without a prescription
Buy viagra in canada online
Cheap 100mg viagra
Buy xanax canada
Buy cialis in the uk
Buy xanax online without prescription
Cheap phentermine without prescription
Buy female viagra without prescription
Cheap xanax bars
Xanax bars side effects
Cost of viagra 50mg
Xanax no rx
Xanax generic dosage
Buying viagra in london
Viagra tablets for sale
Cheapest place to buy viagra online
Prescription phentermine online
Propecia cost
Purchase viagra online without prescription
Order xanax online
Buy phentermine no script
Propecia uk prices
Prednisone 40 mg
Get viagra prescription
Tramadol medication
Discount viagra india
Best viagra alternative
Buying valium in spain
Buy levitra
Generic cialis overnight
Cialis uk sales
Propecia online uk
Cialis cialis
How to buy phentermine online
Phentermine hcl no prescription
Online valium without prescription
Propecia best prices
How to buy valium without a prescription
Propecia uk pharmacy
Viagra 50mg side effects
Xanax 0.5 mg
Buy xanax 2mg no prescription
Viagra online without prescription reviews
Phentermine 37.5mg
Cialis dosage 20mg
Buy viagra from canada
Buy cialis uk
Viagra prescription
Cialis order online
Viagra dosage information
Buy xanax cheap online
Buy phentermine 37.5mg pills
Valium cheapest
Viagra canada prices
Generic viagra sales
Viagra without prescription uk
Prescriptions for phentermine
No prescription cialis online
Valium drug side effects
Viagra in the uk
Viagra 50 mg online without prescription
Generic propecia
Best way to buy viagra online
Viagra for sale online
Canada pharmacy valium
Generic viagra super active
Buy viagra online uk no prescription
Phentermine with no prescription
Cheapest levitra
Viagra shop online
Where can i buy viagra without a prescription
Phentermine online uk
Cialis 20 mg dosage
Where to buy cialis without prescription
10mg prednisone
Buy viagra in england
Cialis purchase online
Cialis price
100mg tramadol online
Levitra online buy
Xanax 1mg side effects
Buying viagra in new zealand
Buy generic xanax no prescription
Levitra online
Pharmacy tramadol
Generic levitra uk
Cheapest online cialis
Xanax online cheap
Low cost cialis
Viagra india price
Best prices for cialis
Buy generic cialis online
Viagra super active
Prednisone tablets
Generic cialis uk
Real phentermine without prescription
Tramadol pharmacy
Buy levitra online canada
Tramadol dosage
Canada viagra
Cheapest generic viagra online
Valium from india
Order viagra without prescription
Valium without prescription
Xanax 1 mg dose
Buy tramadol overnight
Viagra professional online
Buy viagra uk online
Propecia price australia
Viagra to buy
Cialis 20mg
Phentermine hcl without prescription
Best viagra dose
Where can i buy viagra without prescription
Xanax price per pill
Viagra online shop
Free samples of cialis
Purchase tramadol online
Xanax buy uk
Levitra purchase
Buying viagra online
Order prednisone no prescription
Viagra price canada
Buy generic valium online
Levitra samples
Phentermine without a prescription
Purchase phentermine without prescription
Buy viagra 100mg
Tramadol online no prescription overnight
Prescription free viagra
Generic tramadol
Valium online fast delivery
Levitra us
Cialis side effects
Tramadol cheapest
Cialis over the counter
Cialis discount price
Viagra pharmacy prices
Prednisone tablets 10 mg
Authentic phentermine 37.5
Xanax no prescription overnight
Buy cheap valium online
Australia viagra online
Tramadol india
Viagra pills for sale
Propecia generic canada
Ordering cialis online
Tramadol no prescription overnight delivery
Cialis prices uk
Viagra generic
Generic xanax no prescription
Order tramadol online overnight
Cialis canada no prescription
Valium pill 10mg
2.5mg cialis
Prednisone dosages
Buy viagra online in ireland
Viagra pharmacy uk
Prescription valium
Purchase phentermine online
Generic xanax
Buy propecia online without a prescription
Order cheap viagra online
Buy valium cheap online
Viagra in france
Phentermine canadian pharmacy
Cheap generic viagra
Cheap levitra uk
Phentermine 37.5 pills
Where to buy propecia in canada
Genuine viagra online
Cheap generic valium
Buy phentermine no rx
Discount viagra usa
Phentermine buy uk
Generic viagra for sale
Cialis samples canada
Valium online pharmacy
Valium online overnight
Buy generic valium
Viagra canada online