Event Object Type: flash.events.TextEvent TextEvent.type property = flash.events.TextEvent.LINK Language Version : ActionScript 3.0 Runtime Versions : AIR 1.0, Flash Player 9 Dispatched when a user clicks a hyperlink in an HTML-enabled text field, where the URL begins with “event:”. The remainder of the URL after “event:” will be placed in the text property of the [...]
Archive | January, 2010
How To Append text with Actionscript 3
January 30, 2010
appendText () method public function appendText(newText:String):void Language Version : ActionScript 3.0 Runtime Versions : AIR 1.0, Flash Player 9 Appends the string specified by the newText parameter to the end of the text of the text field. This method is more efficient than an addition assignment (+=) on a text property (such as someTextField.text += [...]
Custom Events in Objective-C
January 29, 2010
Learn objective c with Actionscript Events or in this case Notifications are used for having loosely coupled relationships between instances in your application. So it is possible to let other instances listen to specific events without knowing each other . If you want to listen to a custom event in ActionScript it would look something [...]
Create a simple flash preloader
January 29, 2010
If you use flash to create web animations or websites then you really need to know how to make and add a preloader to it. Everyone doesn’t have a superfast internet connection and adding some information that there is something loading keeps the viewers stay for it. In this tutorial I’m going to show you [...]
Simple PreLoader in as3
January 28, 2010
Preloading is quite simple in as3. The best way to explain it is just to comment the code (see below). Warning INIFINTE, error message This one took me all day to figure out. If you get the INFINITE message, it would mean you are dividing by zero ( totalBytes is set to zero). Normally this [...]
Flash Actionscript getURL
January 25, 2010
In Actionscript and Actionscript 2 it is really easy. Example: getURL(“http://domain.com/webpage.html”,”_blank”); But the easiest way is to do it in Actionscript 3.0 is textfield.htmlText htmlText code var link:TextField = new TextField(); link.htmlText = “<a href=’http://domain.com’>SomeDomain</a>”; addChild(link); setStyle What about making the text blue AND underlined like a normal HTML link, how would one go about [...]
Animating Movie Clips with Actionscript
January 23, 2010
This tutorial will teach you how to animate movie clips with actionscript. heres the code I used: var tw:Tween = new Tween(box_mc,”_x”,Strong.ease, box_mc._x,475,1,true);
How to create movie controls with actionscript controls
January 23, 2010
Actionscript Basics part 1 Creating Movie Controls Actionscript Basics part 2 Creating Custom Cursors How to create a custom cursor in flash using actionscript.
How to create Motion and Shape Tweening
January 23, 2010
Flash basics tutorials. You’ll learn how to make simple motion and shape tweens Flash Basics 1:Motion and Shape Tweening Motion Tweens and Sound The next step in the Macromedia Flash tutorial is creating basic motion tweens and adding some sound effects.
Character Movement and Jumpig
January 23, 2010
In this tutorial I will teach you how to move a character with the arrow keys and make him jump with the space bar.
Flash 3D Tunnel with ActionScript 3
January 23, 2010
Note: If you are unfamiliar with Flash 3D stuff, you should read my previous tutorials Flash 3D Boxes via ActionScript 3 and Flash 3D Boxes via ActionScript 3 – Part 2. Setting up the environment 1. Create a new Flash document of size 400×300. 2. Draw a circle of size 30×30. I used #ff8800 for [...]
Flash 3D Tunnel Around Text
January 23, 2010
Get TweenMax We will use TweenMax for the movement and animation. Therefore, download TweenMax for AS3. TweenMax will save us a lot of time from coding the animation ourselves! Save the “gs” folder to the same location where your .fla file will be located. Setting up the environment 1. Create a new document of size [...]
How to Create 3D Boxes via ActionScript 3 Part 2
January 23, 2010
This is the second part of the “Flash 3D Boxes via ActionScript 3″ tutorial. In this part, I will take the 3D animation one step further. In this tutorial, we’ll create a sine wave of boxes and learn how to animate them. I am assuming that you have already completed the “Flash 3D Boxes via [...]
How to Create 3D Boxes via ActionScript 3 – Part 1
January 23, 2010
This tutorial will basically teach you how to place objects in 3D coordinates and how to convert them in to 2D coordinates. That’s how we create an illusion of a 3D environment. Setting up the environment 1. Create a new Flash ActionScript 3 movie (500×300). 2. Draw a box on the stage. Make it size [...]
Basics of ActionScript
January 23, 2010
Introduction to ActionScript 3 What is ActionScript? ActionScript is automatically included in the Flash CS3, so you don’t need to do any additional installs. Basically, ActionScript enables you to develop interactive Flash applications. Allthough ou can build some kind of interactivity without writing any code, I strongly suggest that you make an effort and learn [...]
Create Basic Flash Preloader
January 23, 2010
In this tutorial, I’m going to show you how to build a preloader. You should have your own preloader in minutes! Create a new document. Name the first layer to “loader bar” Draw a line. This line will be our preloader bar. Convert the line into a movie clip. Set the registration point to the [...]
How to Create ActionScript 3.0 Events
January 23, 2010
In order to create an interactive Flash application, we need to learn something about events. An event is something that just happens in the application. There are many different types of events, such as mouse clicks, mouse move and mouse out. In this tutorial, you’ll learn how to respond to such events. Note: You should [...]
ActionScript 3 Keyboard Events
January 22, 2010
In order to create a fully interactive flash movie, you need to know something about keyboard events. This tutorial is all about catching ActionScript 3.0 keyboard events and responding to them. So let’s get started! Click on the stage and start pressing some buttons. See how the values change. Now let’s look the code behind [...]
ActionScript 3 External Classes
January 17, 2010
This tutorial is all about external ActionScript 3 classes. I will teach you how to linkage movie clips to an ActionScript class and then we’ll create an external class. The end product in seen above. The movie uses one external class and only a few lines of code is written in the main timeline. So [...]


January 30, 2010
6 Comments