Tag Archives: tutorial

Rounded Bar Percentage Preloader for Flash Tutorial

I’ve had a couple inquiries about how to do a simple preloader in Flash. The technique and also the actionscript which implements the technique. So here is a percentage preloader example with source code and a source file to play with. Overview So the idea of a preloader is to hold the swf until the file has [...]
Posted in tutorial | Also tagged , , , , , , | Leave a comment

Actionscript Key Listener Tutorial AS3

Overview Allowing users to use the keyboard as well as the mouse is a great way to incite interaction with your flash. This tutorial will show how to code it and what you can do with some keyboard events. This changed with actionscript 3, note this tutorial is AS3. altKeY (Boolean) Indicates whether the Alt key is [...]
Posted in tutorial | Also tagged , , , , | 8 Comments

Actionscript to Reference Dynamically created instances Flash Movie Clip | Array notation | Tutorial

Overview: Often I’ve had some dynamically created movieclip and then wanted to reference it in my code. This is hard to do if it is named dynamically as well, such as with an incrementing variable. If you use one (or more) variable to name an instance in run time, you can’t always know what it will [...]
Posted in tutorial | Also tagged , , , , , | 1 Comment

Brownian Movement in Actionscript | Random Motion Tutorial

Overview Having things drift around or move randomly has always interested me. Having an animation that is never going to be the exact same thing is very exciting. The focus turns from key-ing exact animations to programming a feel and letting the animations take car of themselves! One type of seemingly random motion is Brownian motion. [...]
Posted in tutorial | Also tagged , , , , , , , | 2 Comments

Style htmlText with CSS in your Actionscript | Flash/CSS Tutorial

Overview In flash you can have text areas that are rendered as html. You can also apply formatting styles to this html. This will show a simple example on how to apply css to html text in flash. I’ll do a simple anchor tag style to show you the ropes. We’ll style a link to be [...]
Posted in tutorial | Also tagged , , , , , | 15 Comments

Calling actionscript functions through HTML text | asfunction Tutorial

Add this to the list of things I should have already known! Story I’ve got an html enabled text box and was trying to devise a way that I could have a hyperlink anchor tag not link to a webpage but actually do something flash. It didn’t seem possible, and I looked through all the different html [...]
Posted in tutorial | Also tagged , , , , , , | 10 Comments

Intro to Flashvars | Passing variables to actionscript from the html embed | Tutorial

I’ve had a couple special requests to explain flashvars and how to use it and show it in action. Overview The property “FlashVars” can be used to import root level variables to the flash movie or swf. The flashvars propery is used in codes for embedding flash in the html page. The string of variables passed in [...]
Posted in tutorial | Also tagged , , , , , | 15 Comments

Using CSS Attribute Selectors to Stylize HTML | Style outbound links | Tutorial

Intro to CSS We use css to apply styles to certain elements on the page, we can target any div like this: HTML 1<div>Text</div> CSS 123div { css-property: value; } Any class selector <div class=”divClass”> like this: HTML 1<div class="divClass">Text</div> with this: CSS 1234567div.divClass { css-property: value; } <!-- or simply --> .divClass { css-property: value; } or any id selector, <div id=”divID”> like this: HTML 1<div id="divID">Text</div> with this: CSS 1234567div#divID { css-property: value; } <!-- or simply --> #divID { css-property: value; } These are [...]
Posted in tutorial | Also tagged , , , , | Leave a comment