views:

43

answers:

1

Ive looked this up in a few different locations, but to be honest, i dont really get it. I get what loose coupling is, but not how interfaces in Flex would help to achieve it?

+2  A: 

As a general best-practice in OOP, programming to interfaces is not tied to a particular programming language. Flex or not, when objects are typed to interfaces (or abstract classes) they can more easily be replaced with alternative implementations.

Christophe Herreman
Ok, just got it from this tutorial on Adobes site: http://www.adobe.com/devnet/flex/articles/dependency_injection.html
Brian Bishop
+1. See http://en.wikipedia.org/wiki/Dependency_inversion_principle for further reading.
back2dos