Tag: as3

  • AS3: Code hinting, completion and highlighting in Air apps

    AS3: Code hinting, completion and highlighting in Air apps

    Over the last couple of months I have been working on a text editor, for which I made a history manager class that I posted about a little while back. This time as a bit of an experiment/challenge I tried to include some code hinting and code completion functionality to the editor similar to Dreamweaver,…

  • AS3: History Manager Class

    AS3: History Manager Class

    Recently at work I have been building a text editing application to help speed up the process of adding HTML tags to text for Flash. Today I wrote a simple reusable history management class to enable undo/redo on a text field. This is the first version so there may still be some bugs. I also…

  • AS3 – Getting the order of MovieClips in the stage

    AS3 – Getting the order of MovieClips in the stage

    Here is yet another small code snippet which allows you to get the order of MovieClips that are positioned on the stage. Source for the demo above: Download

  • AS3 – Detecting Control, Shift and Alt keyboard shortcuts

    AS3 – Detecting Control, Shift and Alt keyboard shortcuts

    Here is a snippet of code which allows you to detect keyboard shortcuts such as ctrl+[another key] and ctrl+shift+[another key]. I wasn’t able to find any decent examples of detecting shortcuts but after reading the AS3 documentation I found that the Keyboard event contains the following boolean properties [cc lang=”actionscript3″] ctrlKey shiftKey altKey [/cc] So…

  • AS3 – Repositioning the ComboBox dropdown list

    AS3 – Repositioning the ComboBox dropdown list

    If you’re like me and you don’t mind using some of the built in components in Flash to quickly build a UI but hate the look of them, you’ve probably made your own skins for them which is all well and good. But sometimes there are little things that really annoy me like the ComboBox…

  • Generative Art in Flash

    Generative Art in Flash

    Recently I have been inspired to create generative art using Flash thanks to Erik Natzke who creates stunning images… all created by ActionScript. I did a fair bit of digging around the net and managed to find a few code examples and video demonstrations on how the images were generated. So as you can see…

  • Gradient Slider V1

    Gradient Slider V1

    Today I decided to redo my gradient slider as a reusable class. But first I had to learn better OOP so after watching a quick tutorial over at GotoAndLearn I started moving all the code into separate class files. The main thing I wanted to do was to have the slider dispatch a custom event,…

  • Photo Painter App

    Photo Painter App

    Here is my latest experiment in Flash… this time its an app that takes a source image (jpg) and paints it giving it a very painterly look. You can tweak some of the settings such as brush size and blur. The image above was created using this. You can download the Air installer or source…

  • ParticlePlayground Air App

    ParticlePlayground Air App

    Over the last week or two I have been playing around with particle systems and creating my own to learn all the maths equations behind them. Why? I was playing with Trapcode Particular and started wondering what all the maths behind it was. So I started creating my own particle system in Flash from the…

  • Controlling MovieClips with WiiFlash

    Controlling MovieClips with WiiFlash

    I decided to learn how to use WiiFlash after seeing the WiiSpray and a number of other videos a while ago. Turns out it is surprisingly easy! The only problem I had was trying to get a MovieClip to move around the stage as a mouse… I couldn’t find anything anywhere that clearly expained how…