Tag Archives: tutorial

Dynamic 3d space | Floating Sketches Tutorial

I’ve had quite a few questions about how to make depth in flash. Earlier (like, 2 years ago) I put up an experiment file to give some interactive depth to some sketchbook sketches, see Floating Sketches. I’ve finally gotten around to translating that into as3. It’s still the same basic idea, Create layers of levels, [...]
Posted in tutorial | Also tagged , , , , , , , , , , , | 3 Comments

How to as3 resize a movieClip and constrain proportions | Actionscript Tutorial

I’ve had that exact task numerous time while scripting actionscript. I have a source image loaded externally or a mc within the program and I need to fit it into a certain area (width x height) but keep the aspect ratio the same or as photoshop calls it “constrain proportions”. I’ve done this with fancy [...]
Posted in tutorial | Also tagged , , , , , , | 32 Comments

asfunction (TextEvent.LINK) Tutorial for AS3 | Flash HTML Link to call actionscript function | Tutorial

Overview Earlier I wrote a tutorial article about asfunction in as2. Now that I’ m into as3, surprise surprise asfunction has been depreciated and now to replace it is the LINK TextEvent. Dispatched when a user clicks a hyperlink in an HTML-enabled text field, where the URL begins with “event:”. The remainder of the URL [...]
Posted in tutorial | Also tagged , , , , , , , , , | 2 Comments

Detect Flash Player Version | Actionscript based detection method (as3)

See my previous post about how to do this with as2: Detect Flash Player Version | Actionscript based detection method (as2) Overview Recently I had a requirement that I had to detect which version of the flash player was currently installed. This is a normal thing, we do it all the time when embedding flash into html, [...]
Posted in tutorial | Also tagged , , , , , | 3 Comments

Copy TextField text to System clipboard | Actionscript (AS2 + AS3) Tutorial

Overview Integrating the clipboard of the operating system with your flash projects is sometimes essential. It’s a very simple and boils down to one basic method… System.setClipboard(). I’ve found a couple other things help the user experience though, such as selecting the text that gets copied and giving the user some sort of feedback to let [...]
Posted in tutorial | Also tagged , , , , , , , , , | 14 Comments

ColorTransform | RGB, Hex and random colors | Actionscript Color Tutorial

Overview Color can sometimes make or break your design. I’ve put together this flash to show how to set a movieclip to a certain color, I’ve had to do this at runtime and had to go by different values such as a hex number, rgb values and have even wanted to just set a random color, [...]
Posted in tutorial | Also tagged , , , , , , , | 13 Comments

Report from Google Analytics Event Tracking Tutorial

Here are some screenshots from my example tutorial of integrating Flash with google analytics event tracking showing actionscript to use for event tracking in flash . To get to your Event Tracking Reports (once it is enabled) you just click on the Content section in the nav list and then Event Tracking drilldown will give [...]
Posted in tutorial | Also tagged , , , | Leave a comment

Event Tracking with Google Analytics | Flash Integration | Tutorial

Many have read my Integrate Google Analytics with Flash Tutorial in which I express enthusiasm for the new event tracking at google analytics! Well, it’s been a while, but I was admitted to the Beta testing group! So I’ve now had the chance to play with event tracking a bit and wanted to publish my [...]
Posted in tutorial | Also tagged , , , , , , , , , , , , , | 21 Comments