Category: Quick Tip

  • Location based social apps

    They’re all bullshit. You read an article, get interested in one, install it, find out none of your friends or anyone nearby is using it, and uninstall it a week later. Why have none of them thought about solving this issue that every single one of them has. MAKE IT AN EVENT! I’m not talking…

  • 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…

  • Problem with Flash Player 9.0.28 or below?

    Try adding this little line in your document class constructor to create the ADDED_TO_STAGE constant as this was not present in players 9.0.28 or below.review smartphone android Bit of a hair puller this one. if (Event.ADDED_TO_STAGE == null) { Event[“ADDED_TO_STAGE”] = “addedToStage”; }

  • 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,…

  • Quick Tip: Embeding european special characters…

    To save you embeding characters you don’t need and wasting file size on a project that might use european characters, heres a list of characters you can just manually include. This covers French, German, Italian,  Portugese, and Spanish. ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛßàáâã äåæçèéêëìíîïñòóôõöùúûüŒœ¿

  • 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,…

  • 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…