Category: ActionScript

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

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