A QR code encoder in as3
ActionScript
Latest commit 9610219 Aug 18, 2016 @jbpin committed on GitHub Merge pull request #2 from gene-pavlovsky/fix-asc2-compile-problems
Fix multiple compile warnings and a few errors. Compiles cleanly usin…

README

AS3 QR Code encoder is an adaptation of qrencode open source C library to as3 language. This library allow you to generate a qr code from your application (Flex, Flash, AIR) on offline mode.

How to use it ?

var qr:QRCode = new QRCode();
qr.encode("String to encode");
var bitMap:Bitmap = new Bitmap(qr.bitmapData);

That is just the first version of the library, I will try to optimize it and fixing some problem soon as possible..
The choice to just provide a bitmap data object has been made to allow you to display the qrcode or to encoding it and save it to a png or jpeg file.

A flash demo:

import flash.display.Sprite;
import org.qrcode.QRCode;
import flash.display.Bitmap;

var sp:Sprite = new Sprite();
var qr:QRCode = new QRCode();
qr.encode("TEST");
var img:Bitmap = new Bitmap(qr.bitmapData);

sp.addChild(img);

addChild(sp);

The project is under MIT License.