Is/wasnt there a way to scan a code and to be able to test your app on your iPhone?
Scan a code as in a QR/barcode scanner using something built-in the AIR SDK? No there is no built in way. There's plenty of libraries out there for reading and generating them that you can search for.
Lib: http://ntt.cc/2010/05/01/read-qr-code-with-qrcodereader-open-source-as 3-library.html
Tutorial: http://www.remotesynthesis.com/post.cfm/adding-a-qr-code-reader-in-fle x-on-android