Create Your Own QR-Charts using Google’s chart API

This application helps to create a QR chart using Google’s chart API.

 
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   >
	
	<fx:Script>
		<![CDATA[
			protected function button1_clickHandler(event:MouseEvent):void
			{
image.source = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="+qrvalue.text+"&choe=UTF-8";
			}

			protected function qrvalue_clickHandler(event:MouseEvent):void
			{
				qrvalue.text = "";
			}

		]]>
	</fx:Script>
<s:Label text="Welcome to QR charts" top="30" fontSize="24" horizontalCenter="0"/>
	
<mx:VBox horizontalCenter="0" verticalCenter="0">
			
 <s:TextInput text="Text to embed in QR Code:" click="qrvalue_clickHandler(event)" id="qrvalue"/>
		
 <s:Button click="button1_clickHandler(event)" label="Submit"/>
		
 <mx:Image id="image"/>
		
</mx:VBox>
	
</s:Application>
 
Advertisements

About Ajeeth Boaz

I am a freelance photographer you can find my clicks @ www.ajeethboaz.com. I am a Developer by profession, I like sharing my experience through blogs you can find it @ http://blog.ajeethboaz.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: