Best viewed in Firefox

Awesty Productions

Use BitmapData to make a fuzzy TV effect

October 22nd, 2007 by awesty

In this tutorial you will learn some of the basics of bitmap data and how to do some cool stuff with it. I have written a tutorial for both Actionscript 2.0 and Actionscript 3.0. This will lag a lot with AS 2, so don’t make the bitmap image too big or you will crash flash (AS 3 doesn’t lag as much, but if you make the image more than 400×400 it will start to lag a lot).

Final Product:

Actionscript 2.0 version (Take this tutorial if you are using Flash 8 )
Actionscript 3.0 version (For Flash CS3 users)

Read the rest of this entry »

Flash Player 10 (Astro) Preview

October 3rd, 2007 by awesty

Adobe gives a sneak peek of what flash player 10 has to offer and the new text engine, 3D features and new bitmap effect scripting language called Hydra.

Remake of Snake

October 1st, 2007 by awesty

Screenshot

I have been messing around with C# and XNA lately and this is the first thing I have really made. It is a remake of the game snake. You can download it here.

The highest score I managed to get was 15. Once you get to about 10 it starts to get hard.

You will need the .NET framework and the XNA runtime to play this game. Also it only runs on windows.

Reverse a String and Reverse each Word in a String with Actionscript

September 17th, 2007 by awesty

In this tutorial you will learn how to reverse a string (’This is a string’ to ‘gnirts a si sihT’) and how to reverse each word in a string but still keep the words in the same order (’This is a string’ to ’sihT si a gnirts’). You can see an example below. I am using Flash CS3/9, but Flash MX 2004 and Flash 8 will work as well. If you are using Flash CS3 make sure you select as AS 2.0 Flash file.
NOTE: If you copy and paste the code you may need to rewrite the quotation marks (”") because flash doesn’t like this font. Also where you see ‘–’ you should replace it with 2 minus signs. It’s not my fault, blame wordpress. :P


Open up flash and make 3 text boxes like above. Make one and input text box with an instance name of input and the other two dynamic text boxes with instance names ouput1 and output2.

Input and Dynamic text boxes
Read the rest of this entry »

A Fun Interactive Batch Script

September 11th, 2007 by awesty

In this tutorial you will learn how to make a cool little batch script that can interact with the user.

First open up notepad and enter this code:

Read the rest of this entry »

1st Birthday!

September 10th, 2007 by awesty

I just realized it was AwestyProductions’ first birthday on the 4th (I know there are posts in August but that was when I still had the .co.nr domain. The .com was bought on the 4th). Sorry but I haven’t done anything special since I only just realised. In the first week I was getting less than 20 page views a day and now get 1000-2000 (it varies a lot) each day.

Learning how to OOP in Flash

September 10th, 2007 by awesty

WTF is OOP?

OOP stands for Object-Oriented Programming. When you are coding big projects you will have hundreds (even thousands) of lines of code and it can get very unorganized. This is where OOP comes in. You can make classes, which are external .as files (ActionScript files) and import them into your project. You can then use the methods and properties in that class.
Also, instead of having to write the same code over and over again you could make a class containing that code. Then whenever that code is needed instead of having to write it all you can just call it from the class.

You must have Flash 8 or Flash CS3 for this tutorial. In Flash CS3 when you open the .fla select an AS 2.0 document.

Classes in flash consist of Methods (functions) and Properties (variables). For example, an Enemy class might have the Methods hunt down player and guard base.
It might have some properties like HP left and range of sight.

The class is just like a stencil though. For each enemy we would have to create an object so each enemy can have its own HP and own range of sight. I will go more into this later.

Now open flash and make a new Actionscript file. Lets create a our first class. Declare a class with the ‘class’ keyword, followed by the class name. The class name needs to be the same as the filename (A class called Person needs to be saved as Person.as). Lets call our class ‘MyFirstClass’.

Read the rest of this entry »

Email

September 10th, 2007 by awesty

If you have sent me any emails over the last few months I most likely haven’t replied.

From now on please send all emails to aengus.westhead [ @ ] gmail [ . ] com.

Domain Expired

September 10th, 2007 by awesty

If you noticed that the site was down for a few days it was because the domain name had expired. Everything should be back to normal now.

HTS Basic Web 4

August 26th, 2007 by awesty

Other HTS Tutorials.

In this mission Sam has set up a script that will email him the password when he clicks a button. What we will try and do is make the email send to your email address instead of Sam’s.

Open up the page source and have a look for what could be the emailing script. It looks something like this:
Read the rest of this entry »

« Previous Entries Next Entries »