https://github.com/jbpin/as3-qrcode-encoder
  
  
    A QR code encoder in as3 
    https://github.com/jbpin/as3-qrcode-encoder
  
        Last synced: about 1 month ago 
        JSON representation
    
A QR code encoder in as3
- Host: GitHub
 - URL: https://github.com/jbpin/as3-qrcode-encoder
 - Owner: jbpin
 - Created: 2010-08-05T11:28:11.000Z (about 15 years ago)
 - Default Branch: master
 - Last Pushed: 2016-08-18T16:04:16.000Z (about 9 years ago)
 - Last Synced: 2025-05-13T14:43:43.506Z (6 months ago)
 - Language: ActionScript
 - Homepage: http://jbpin.wordpress.com
 - Size: 397 KB
 - Stars: 92
 - Watchers: 10
 - Forks: 28
 - Open Issues: 3
 - 
            Metadata Files:
            
- Readme: README
 
 
Awesome Lists containing this project
- awesome-actionscript-sorted - as3-qrcode-encoder - A QR code encoder in as3 (Multimedia / QR Code)
 
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.