Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. The Robotlegs dream... > Coding for Robotlegs shouldn’t tie you to the frame...

Coding for Robotlegs shouldn’t tie you to the framework

Your classes can play outside Robotlegs too!

One of the potential drawbacks of using a framework is the difficulty of reusing your classes outside of that framework. Robotlegs is, by design, minimally intrusive—for example, if you create a model or service class that is used within a Robotlegs application, you should be able to re-use that class in a non-Robotlegs application by simply providing it with one ActionScript native property: an instance of IEventDispatcher.

Robotlegs commands only require you to provide an execute() method. There are no special messaging objects, just your own custom AS3 Events (or Signals if you prefer them and use the AS3Signals extension packages).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint