Skip to content

jbpin/as3-qrcode-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 

Releases

No releases published

Packages

No packages published