-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathREADME
27 lines (18 loc) · 877 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.