Using QR codes in AS3

Very simple really, google does most of the heavy lifting. Simply load this url as you would to load an external image:

http://chart.apis.google.com/chart?cht=qr&chl=[YOUR-URL]&chs=120×120

Replacing the [YOUR-URL] with a url, i.e. http://bbc.co.uk – and the 120×120 with your own width and height

Example:

var myLoader:Loader = new Loader();
myLoader.load(new URLRequest(“http://chart.apis.google.com/chart?cht=qr&chl=http://bbc.co.uk&chs=150×150”));

Would dynamically load a QR code for bbc.co.uk, with dimensions 150 by 150, and load it into the Loader instance myLoader, and would look like this

Read More

AS3 TextField buttonMode or useHandCursor?

Unfortunatly, no method exits on the TextField class in AS3 as it does not extend the Sprite class, which contains the buttonMode property.

This is most apparent with the annoying problem of having a TextField inside your Sprite/MovieClip you;re trying to use as a button, where even after setting buttonMode = true on the button, rolling over the textfield inside the button will revert the Cursor back to default.

To get round this simply use the mouseChildren = false property on your Sprite/Movieclip button.

i.e.

myTextFieldContainingSprite.buttonMode = true;Watch Full Movie Online Streaming Online and Download

myTextFieldContainingSprite.mouseChildren = false;

myTextFieldContainingSprite.addEventListener(MouseEvent.MOUSE_DOWN …… etc

Read More

Watch Movie Online John Wick: Chapter 2 (2017) subtitle english

Poster Movie John Wick: Chapter 2 2017

John Wick: Chapter 2 (2017) HD

Director : Chad Stahelski.
Producer : Basil Iwanyk.
Release : February 8, 2017
Country : United States of America.
Production Company : Thunder Road Pictures, LionsGate, 87Eleven.
Language : English, Italiano.
Runtime : 122 min.
Genre : Thriller, Action, Crime.

Movie ‘John Wick: Chapter 2’ was released in February 8, 2017 in genre Thriller. Chad Stahelski was directed this movie and starring by Keanu Reeves. This movie tell story about John Wick is forced out of retirement by a former associate looking to seize control of a shadowy international assassins’ guild. Bound by a blood oath to aid him, Wick travels to Rome and does battle against some of the world’s most dangerous killers.

Do not miss to Watch movie John Wick: Chapter 2 (2017) Online for free with your family. only 2 step you can Watch or download this movie with high quality video. Come and join us! because very much movie can you watch free streaming.

Watch movie online John Wick: Chapter 2 (2017)

Incoming search term :

live streaming movie John Wick: Chapter 2
watch John Wick: Chapter 2 movie now
movie John Wick: Chapter 2 2017 download
live streaming film John Wick: Chapter 2 online
streaming John Wick: Chapter 2 2017
John Wick: Chapter 2 2017 English Full Episodes Watch Online
Watch John Wick: Chapter 2 2017 Online Free Viooz
Watch John Wick: Chapter 2 2017 Online Free putlocker
Watch John Wick: Chapter 2 2017 Online Putlocker
John Wick: Chapter 2 live streaming film
John Wick: Chapter 2 2017 HD Full Episodes Online
John Wick: Chapter 2 2017 For Free online
download full movie John Wick: Chapter 2
John Wick: Chapter 2 2017 English Full Episodes Online Free Download
watch full film John Wick: Chapter 2 2017 online
download John Wick: Chapter 2 movie
John Wick: Chapter 2 2017 English Full Episodes Download
John Wick: Chapter 2 2017 Episodes Watch Online
John Wick: Chapter 2 2017 For Free Online
John Wick: Chapter 2 2017 English Full Episodes Free Download
John Wick: Chapter 2 movie streaming
John Wick: Chapter 2 2017 live streaming film online
John Wick: Chapter 2 film
Watch John Wick: Chapter 2 2017 Online Free megashare
John Wick: Chapter 2 streaming
download movie John Wick: Chapter 2 now
watch full movie John Wick: Chapter 2 online
John Wick: Chapter 2 2017 movie trailer
John Wick: Chapter 2 2017 Full Episodes Online
film John Wick: Chapter 2 2017 download
John Wick: Chapter 2 2017 English Episodes
John Wick: Chapter 2 2017 Episodes Online
watch full John Wick: Chapter 2 movie online
watch John Wick: Chapter 2 film online now
John Wick: Chapter 2 2017 English Episodes Free Watch Online
Watch John Wick: Chapter 2 2017 Online Megashare
John Wick: Chapter 2 2017 Online Free Megashare
John Wick: Chapter 2 2017 HD English Full Episodes Download
Watch John Wick: Chapter 2 2017 Online Free Putlocker
Watch John Wick: Chapter 2 2017 Online Viooz
John Wick: Chapter 2 2017 English Episode
watch full film John Wick: Chapter 2
Watch John Wick: Chapter 2 2017 Online Free
John Wick: Chapter 2 2017 Watch Online
film John Wick: Chapter 2 2017
John Wick: Chapter 2 2017 Full Episode
John Wick: Chapter 2 2017 Full Episodes Watch Online

Read More

AS3 onKeyDown, Key Down listener

Overview
Another big question i get asked is how do you detect the user actioning the keyboard? It’s slightly more complicated than AS2, where you could just attach a listener directly to the Key class singleton.

Because of this I’ve seen loads of odd ways that people have tried to implement keyboard detection in AS3, from making a textfield that sits onto of everything receiving focus, to a textfield stashed in every class.

By far the simplest way is to add a listener straight to the stage e.g.

//call onKeyboardDown on key downRoblox HackBigo Live Beans HackYUGIOH DUEL LINKS HACKPokemon Duel HackRoblox HackPixel Gun 3d HackGrowtopia HackClash Royale Hackmy cafe recipes stories hackMobile Legends HackMobile Strike Hack

stage.addEventListener(KeyboardEvent.KEY_DOWN,onKeyboardDown);

If you’re trying to put this in a class that extends DisplayObject like MovieClip, then you’ll have to wait until the instance has been added to another DisplayObject that’s already attached to the stage directly or in a tree. i.e. after a addChild(myDisplayClass) has been called.

You don’t have to worry about checking keyCode’s against numbers now either. The Keyboard class is full of static variables relating to practically every key on the keyboard. i.e.

protected function onKeyboardDown(event:KeyboardEvent):void
{

    1. this.dispatchDialogComplete();
  1. //test key code against statics in the Keyboard class
    if(event.keyCode == Keyboard.ENTER)
    {

    }

}

Here’s a clump of code to help explain:

It’s a basic LoginDialog that you’d code generate like this

var dialog = new LoginDialog();
dialog.x = 100// arbitrary
dialog.y = 100// arbitrary
this.addChild(dialog);
//as the stage variable inside the dialog now exists, call draw() to add key listener to stage
dialog.draw();

Example: try pressing enter after adding some values

<!–

<!–

Read More

Quick Tip: AS3 Function parameters…..

In old AS1 / AS2 you could get away with not passing all the parameters to a function, AS3 on the other hand has none of it.

But what you can do is asssign default values for each parameter so you don’t need to pass a value it.

i.e.

function hideObject(child:DisplayObject,fadeOut:Boolean=false):void
{
   if(fadeOut)
   {
      //fadeout Tweener code
   } else {
      child.visible = false;
   };
}

hideObject(target);//would instantly hide target
hideObject(target , true);//would override default value and so fade

Read More