3.03.2010

AS3 Tip of the Day - Saving XML/text using Flash/PHP

This tutorial will show how to save XML or TEXT file in your server using FLASH and PHP.

This is very helpful to me and I have used this many times. In one of my first project using this kind of functionality, I researched in the net, and found this solution.

AS3:

// declaring var xmlcontents String. You should set this first.
var xmlcontents:String = "this is the xml contents to be saved in your xml."

// declaring var foldername String. This is the folder container of the saved XML file
var foldername:String = "myXML."

// declaring var filename String. This is the filename of the XML file
var filename:String = "test.xml."

// declaring var dataPass URLVariables
var dataPass:URLVariables = new URLVariables();

// declaring var urlLoader URLLoader
var urlLoader:URLLoader = new URLLoader();

// declaring var previewRequest URLRequest
var previewRequest:URLRequest = new URLRequest(Main.SERVER_PATH + "saving-xml.php");

// i used method "post" in this sample. you can edit this
previewRequest.method = URLRequestMethod.POST;

// setting dataPass variables to be passed to PHP
dataPass.filename = filename;
dataPass.xmlcontents = xmlcontents;
dataPass.foldername = foldername;

// passing dataPass data PHP
previewRequest.data = dataPass;

// calling the PHP or loading the PHP
urlLoader.load(previewRequest);


PHP:

// POST variable
$fileName = $_POST["filename"];

// POST variable
$xmlContents = $_POST["xmlcontents"];

// backslashes from xml string (skip this for plain text)
$lastBackslashPos = strpos ($xmlContents, "\\");
while($lastBackslashPos >0){
$xmlContents = substr($xmlContents,0,$lastBackslashPos)
.substr($xmlContents,$lastBackslashPos+1,strlen($xmlContents));
$lastBackslashPos = strpos ($xmlContents, "\\");
}

// POST foldername
$foldername = $_POST["foldername"];

// test if the folder name is existing in the server (skip this if you want to test in server path)
if(!is_dir($foldername . "/")) {
mkdir($foldername . "/", 0755);
}

// write xml data to file on server relatively to server path of the this PHP file
$fh = fopen($foldername . "/" . $fileName, "w");
fwrite($fh, $xmlContents);
fclose($fh);
?>

Many thanks to Google.

AS3 Tip of the Day - Matrix

To those who are not yet familiar with the AS's Matrix Class, you can Google it and get yourself familiarized with it.

- If you wan't to know the matrix properties of a DisplayObject:
Example you have mc1 and mc2 in stage, and you want to copy the exact position, rotation, scale of mc1 to mc2.

var mtrx:Matrix = new Matrix();
mtrx = mc.transform.matrix; /// if you have mc in your stage, and you want to clone it's matrix and set it to other objects.
trace(mtrx);
mc2.tranform.matrix = mtrx;


cheers,
- mykhel :D

Bula Game


Game Profile








Bula Game


BulaBULA, bubble collecting game. Avoid falling black pearls and wondering fishes. Collect gold and white pearls to protect the BULA.

  • Game Dimensions: 500x460

  • Primary Category: Adventure

  • Categories: Action

  • Keywords: fish, collecting game, action game, free game, arcade game, flash game, bula, bubble, pearl

  • Rating: Everyone

  • Developer: Mykhel Trinitaria


Just added in MPTGAME.COM for sponsorship. Visit here for more strategy games,or click on the link here for more games.

AS3 Tip of the Day - flashvar

I'm creating an web flash application which requires SESSIONs if the user is login or not.

How I do it? I simply used a "flashvar" to detect if the user is login or not.

to get the parameters in flashvar see sample:

in HTML:
src="testflashvar.swf"

quality="high"
bgcolor="#000000"
width="500" height="300"
flashvars="userid=mykhel trinitaria"
name="testflashvar"
align="middle"
play="true"
loop="false"
quality="best"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">



in FLASH:

var userid:String = root.loaderInfo.parameters.userid
trace(userid); // "mykhel trinitaria"


AS3 Tips of the Day - LocalConnection AS3

AS3' LocalConnection is just the same as in AS2, only differences is the event listeners. This can be useful when it needs to communicate a AS2 to AS3, because we can't loadmovie a AS2 to AS3, or vice versa. There are other ways to use this. Hope my simple example can help others.

Sender:

package {
import flash.display.*;
import flash.events.*;
import flash.net.*;

public class Sender extends MovieClip {
private var send_lc:LocalConnection;
private var params:String = "my name is mykhel";
public function Sender():void {
/// instantiate send_lc
send_lc = new LocalConnection();

/// should have status event for testing purposes
send_lc.addEventListener(StatusEvent.STATUS, onStatus);

/// send to receiver a connection id and methods with params
/// .toString() just to make sure the receiver will be accepting a String
send_lc.send("connectId", "callBackFunction", params.toString());
}

/// instantiate rcv_lc
private function onStatus(evt:*):void {
switch (evt.level) {
case "status":
trace("LocalConnection.send() succeeded");
break;
case "error":
trace("LocalConnection.send() failed");
break;
}
}
}
}


Receiver:

package {
import flash.display.*;
import flash.events.*;
import flash.net.*;

public class Receiver extends MovieClip {
private var rcv_lc:LocalConnection;
public function Receiver():void {
/// instantiate rcv_lc
rcv_lc = new LocalConnection();

/// setting rcv_lc client to this
rcv_lc.client = this;

/// i put in a enterframe event the connect, i used this in a tandem simultaneous connect
addEventListener(Event.ENTER_FRAME, function ():void {
try {

/// rcv_lc connect with connectId (this should be unique id)
rcv_lc.connect("connecId");

} catch (error:ArgumentError) {
trace("Can't connect...the connection name is already being used by another SWF");
}
});
}

/// function to be execute passed from LC sender.
public function changeImage(str:String):void {
trace("LC CONNECTED. PARAMS: " + str);
}
}
}

AS3 Tips of the Day - removeChild()

Our Tip of the Day is DisplayObjectContainer's removeChild() method:

AS3's method removeChild() is a method of DisplayObjectContainer and Inheritance by:
-> DisplayObjectContainer -> InteractiveObject -> DisplayObject -> EventDispatcher -> Object.
-> import flash.display

removeChild() method is not the same as AS2's removeMovieClip(). This are the difference of removeChild and removeMovieClip:
1. removeChild will output and error if you use removeChild in a null object. While removeMovieClip will just ignore if there is a null.

Well, to avoid this error, here are some tips to use removeChild():
1. If you need to isntantiate a movieclip by removing it to stage before adding, but this depends on the instance. I always use this method (removing child before adding child, in some instances)
package {
import flash.display.*;
import flash.events.TimerEvent;
import flash.utils.Timer;

public class Main extends MovieClip {
var arr:Array = new Array()

public function Main():void {
/// creating Timer instance t
var t:Timer = new Timer(1000, 0);

/// add event listener to Timer t, and has a callback function onTimer()
t.addEventListener(TimerEvent.TIMER, onTimer);

/// start the Timer t
t.start();
}

/// callback function onTimer for Timer t
private function onTimer(evt:TimerEvent):void {
/// if arr.length > 5 all movieclips on stage will be removed
if (arr.length > 5) {
/// this is how to removeChild in a stage, by putting a child in a Array
for (var i:int = 0; i < arr.length; i++) {
removeChild(arr[i]);
}
/// will need to instantiate the Array arr
arr = new Array();
}

/// will need to instantiate the Array arr
var mc:Sprite = new Sprite()
mc.graphics.beginFill(Math.random() * 0xffffff);
mc.graphics.drawCircle(Math.random() * 100, Math.random() * 100, Math.random() * 20);
addChild(mc);

/// push the mc in a Array.
arr.push(mc);
}
}

}

2. removeChild by 'name'
/// addChild mc with name "myMc".
var mc:Sprite = new Sprite();
mc.name = "myMc";
addChild(mc);

Iif you want to remove the child by name used:
removeChild(getChildByName("myMc"));

3. To remove directly the instance, but if you don't know if the instance is in the stage, just use try/catch methods:
try {
removeChild(mc);
} catch (err:Error){}

2.13.2010

MPTGAME.COM

MPTGAME.COM now reaches 2000+ free online games and almost 17000+ played games in just 1 month. This is a proof that MPTGAME.COM is now ready to fly. If you are bored and stressed, just visit the websites and play more than 2000+ free online games. Click here to subscribe for the latest free online games.

MPTGAME.COM has sponsored 3 games.
The Turret Bot Defense - has a very good graphics and another addicting tower defense.
Freelancer Tower Defense - has a unique tower and maps.
Alien Bug Invader - an old arcade game which reloaded by MPTGAME.COM

MPTGAME.COM has now 34 categories.
List of categories and games per categoy (feb. 13, 2010):

To subscribe just click here.

2.06.2010

Arcade Banner Exchange

Tired of promoting your arcade sites by commenting to other pages? Well this is the solutions of how to spread and promote your sites. Register for free, and you got free impressions. If you want more impressions, they offer cheap packages and you should try it.

Here is the list:

Promise! You won't regret, because they have thousands of partners and millions of users. You can also edit your own banner. It should be 100x100 or 125x125 .jpg or .gif format. I prefer GIF format because it animates and can attract users to click the ads.

Please take a look of my sample arcade exchange banner, this was register by Mykhel Trinitaria for my website mptgame.com:




















If you are looking for arcade site which you want to sponsorized, just visit here.

2.02.2010

Turret Bot Defense on MPTGAME.COM


Game Profile









Turret Bot Defense


Defend the base from the waves of mob by building tanks and turrets on the terrain. This is addicting tower defense game

  • Game Dimensions: 640x520

  • Primary Category: Strategy

  • Categories: Action

  • Keywords: tower defense, td

  • Rating: Everyone

  • Developer: Mykhel Trintiaria


Just added in MPTGAME.COM for sponsorship. Visit here for more strategy games,or click on the link here for more games.

1.31.2010

XPOGames.com New Social Gaming Network

XPOGames.com is new social gaming network. I just try to upload 2 games with it, and I'm happy with the services, unlike with the kongregate, they don't like other ads. For those game developers/game sponsors this is the great place to expose your stuff for the amazed eyes of thousands of gamers. Online gamers with verbal abilities :-)

Their API is easy to use, and easy to integrate into your existing flash game.

The other thing which amazed me is they ask for your Google Adsense pub-id. PUB id is your identifier in Google Adsense program. After submitting the ID, every page with your game on it will serve your google on %50 of the Ad units, and XPO's on the other %50. From testing and first impressions by several underground developers I've been in touch with, Google Adsense on Flash content (+description, community buzz, tags etc.), is about $10 for 1000 ad exposure. This is cool, well I haven't reach that 1000 ad exposure but that's what I heard and read.

Xpogames is actually NewGrounds, HallPass and Kongregate all together. They're all great within their own closed borders. However, there are great communities there. with millions of gameplays per day. So if you integrate their API and upload your games, they'll get the kick start you need, the testing (and hostile I might add) environment. From my own experience, they're mostly about "will give you cash, but we will be very happy if you could you spent it here", but you don't have to. The word says it's about $2 for 1000 gameplays.

If you're looking for more flash game sites which you can upload your game, click here.

1.29.2010

Free 3D Carousel Effect AS3

I wrote a 3D Carousel Effect in AS3.

Features:
- The code is neat and easy to understand.
- It is open source so you can use it or abuse it.
- All images and names are in XML.
- It has ToolTip, too.
- Flexible in any environment: Flex or FlashDevelop or Flash IDE.

The XML I used is from my arcade site (MPTGAME.COM)

You can download the file here.

1.28.2010

Subscribe at MPTGAME.COM

Just added rss page for MPTGAME.COM

Play everyday with new games because we added newest game everyday and everynight. Subscribe now so you got everyday new game and be the first highscore with our leaderboard.

You can subscribe here:
http://mptgame.com/rss.php

1.23.2010

Freelancer.com Tower Defense

New game sponsored by MPTGAME.COM.

If you want to play a unique tower defense this is it:

Freelancer.com Tower Defense

[caption id="attachment_115" align="alignleft" width="100" caption="Freelancer.com Tower Defense"]Freelancer.com Tower Defense[/caption]

This game is not associated with the website of freelancer.com, any concerns with this websites, please visit here. I used their logo and name, because I want to spread and promote their site and new logo. I wan't paid with this one, I want to express my uniqueness for promoting this site. Because in some time, I became an avid visitor of this site. For any concerns about the other logo, please send me an email.

1.15.2010

MPTGAME.com Reaches 200+ Games

Yes!

It reaches 200+ games in just 4 days... And another good news is it reaches 1000+ playd games...

Play now for free. You can play online or you can download the file if you want to.

We have latest actions, shooting, adventure, puzzles, board game, other, and etc...

Right now our featured game is Alien Bug Invader by Mykhel Trinitaria.

Register and Subscribe now to get the latest game and updates with our sites... We offer new and latest games everyday... and targeting 1000+ games by end of January.

1.12.2010

Alien Bug Invader at MPTGAME

Just sponsor the game Alien Bug Invader in MPTGAME.COM.

Alien Bug Invader
Description: Your goal is to eliminate the alien bugs invader. There are 4 stages, and each stages has 4 different types of bug. Get the powerups to help you to eliminate the bugs.
Instructions: Eliminate all the alien bugs that attacks in four areas.

I created it this last December 2009. My plan is to sponsorized it in other games website, but changed my mind. So I just sponsor my own game, and that's is only my game. LOL

To play the game, click here.

1.11.2010

MPTGAME.COM

MPTGAME.COM is now up. We can now play mini games and flash games absolutely FREE.

MPTGAME.COM goal is to setup and install 100 great games per month... for the meantime, i just install a game i always used to.

MPTGAME.COM is open for submission of the game and i will appreciate if you'll contribute. But can't sponsored for the moment... still budgeting lol

Thanks to:

  1. AV Script for the arcade script

  2. GoDaddy.com cheap for the domain

  3. HostGator for unlimited hosting.

  4. to me ahehe

1.01.2010

AS2 and AS3 Tutorials to Create Flash Games

How to create Flash Games? Well, there are lots of tutorials can be found in Google. Just search and learn, it just needs dedication and patience. Flash is a very flexible application for building games that are both entertaining and educational and and also it can be developed both online and offline applications, too. However, the software itself is a quite tough to learn and extremely hard to master, as I said it just need dedication and patience and discipline. There are lots of websites providing free and paid tutorials of flash. Here we present you a bunch of free tutorials for game development in flash. We believe these are the best free tutorials available in Flash Game Development. And all these tutorials come with the source files.!

If you need tutorials or components for Flash Physics, just visit my previous article here. It is collection of AS2/AS3 Physics Engine.

1. Flash Racing Game Tutorial

Flash Racing Game

This is a “time trial” racing game tutorial. After completing it, you will be able to make your own racing game with custom tracks and cars, smooth collisions, lap records and more.

2. Balloon Shooter

Balloon Shooter

It is a shooting game where player / user have to shoot the flying balloons and gain the points. There are orange colored balloons, which gives player / user extra bonus points. Player / user get 1-minute time to play this game, within this period he / she need to shoot as many as balloons he / she can. For every missed balloon, separate score is maintained.

3. Guess Next

Guess Next

GuessNext, a simple card game with highscores.

4. Space Shooter

Space Shooter

Its a series of tutorials on how to develop Space Shooter game.

5. Platform Game Tutorial Redux: All The Basics

Platform Game Tutorial

This tutorial will show you all the basics of creating a platform game, Collisions that automatically move up slopes, Jumping, Moving, Simple Scrolling, Basic AI, and health

6. Make a dynamic hangman game with XML and ActionScript

Hang man

This tutorial is intended for intermediate or advanced users of ActionScript. Before continuing with this lesson, you should already know some fundamental ActionScript concepts, such as variables, if/else conditional logic, for loops, function basics, paths, dynamic text fields and movie clip events.

7. Snake Game Tutorial

Sanke Game

The “snake game” (it has several names) is one of the simplest game concepts ever, and just like Tetris it’s very addictive. There are a lot of variations of this game written in Flash, and this tutorial will explain one way to create it. It’s a relatively easy game to code, but many fail to make sure that when keys are pressed in rapid succession they are all registered. This is necessary if you want to have full control of the snake at all times.

8. Create a survival horror game in Flash tutorial

Horror Game

From Wikipedia: Survival horror is a video game genre in which the player has to survive against often undead or otherwise supernatural enemies, typically in claustrophobic environments and from a third-person perspective. This is the tutorial of a new and very funny game that introduce some concepts I’ve never seen before in a Flash game.We’ll learn how to create the engine for a survival horror game.

9. Creating a Flash Lite Game Tutorial (Flash game for Mobile Devices)

Develop your own Flash Mobile Game

The game we will create is a very basic arcade game, the player merely collects the objects before they reach the ground. If he fails to collect three objects then the game ends. This tutorial will teach you how to create a Flash Lite game playable on the Flash Lite Player version 1.1 – one of the earliest versions and most restricted, but the most widely spread version as well. Our basic game could be created without using the advanced features provided in later versions. Adopting Flash Lite 1.1 will guarantee that the game will be compatible with the largest possible number of Flash Lite powered devices.

10. Flash dodge ball game

Dodge Game

This tutorial teaches to create a dodge ball game in Flash. This is going to be a very long tutorial so even newbies should be able to follow it, and hopefully learn a lot, and to see how easy it is to make games in Flash. It is divided into 7 parts, from making of the character to getting points.

11. Create a flash artillery game

Artillary Game

This tutorial teaches you to create a flash artillery game. Something like Worms. Or similar.

12. Creating a Sniper Game in Flash

Snipper Game

It teaches you to create a Snipper Game in Flash. The step by step tutorial will be very helpful for you to create similar games in future..

Part 1- http://www.worldfaction.com/forums/showthread.php?t=44

Part 2- http://www.worldfaction.com/forums/showthread.php?t=48

Part 3- http://www.worldfaction.com/forums/showthread.php?t=63

13. Chicken and Eggs Game

Checken and Eggs

This tutorial going to teach you create one of the most popular game in Flash – Chicken and Eggs This tutorial only explain the logic used by the game and will not go into creating the graphics. You will need to change the used Movie Clip graphics to personalize the game to your liking. Also remind you that using the same graphics of the original game could be illegal.

14. Mini Car Race Game

Mini Car Race Game

People show you how to make your car move, or a car with boundarys – but you may wonder how to make your own mini-game.. good animaters will find the CPU part alot easier by the way.

15. Flash ball game with visual effects

Flash Ball Game

This tutorial I’ll cover two types of gameplay: one with the ball that runs on a static stage, and one with a fixed ball with a scrolling stage. We’ll see the pros and cons of both type of games.First of all, you have to take your ball to the exit of each level avoiding any kind of traps.

16. Flash Fighting Game tutorial

Fighting Game

Learn how to make a Fighting Game with this simple and good tutorial. Learn how to make HP bars, hitTest function and more

17. Simple Jigsaw Puzzle Tutorial

Jigsaw Puzzle

The aim of the project is to demonstrate the object oriented capabilities of Flash. This is a simple four piece jigsaw puzzle, programmed with ActionScript. The coding is done in such a way that new puzzles can be created using the same file, with very little effort.

18. Basic Flash Hit Game Tutorial (Video Tutorial for Beginners)

Hit Game Tutorial

This tutorial teaches how to Create a character, move it, create buttons, basic hitting, and use health bar.

19. Create a flash game like Security 2

Security Game

This is one of the interesting games in Flash which is created in logic of the game Security 2 . It’s a simple game: navigate through a level by using the arrow keys avoiding security traps and guards. This one is easy do develop but so interesting about artificial intelligence.

20. Complete Flash pool game with high scores

Pool Game

This is one of the very latest flash game developed by Alejadro Quarto, from Argentina. You can download the source file from the blog of Emanuele Feronato. Alejandro made this game in a day! The step by step tutorial is yet to be published. Still you can download the source file now.

12.29.2009

How to make money in Flash Games

If you like developing flash games as fun or hobby, why not making money out of it? I have made a few flash games and I thought why not make money out of them.

Requirements to build flash games:

1. Adobe Flash. Of course flash games is made from Adobe Flash. It does cost quite a bit but is worth every penny if you know how to maximise it to its full extent. You can look for tutorials on other websites to learn how to make games such as Flashkit.

2. Knowledge in ActionScript. There are lots of tutorials just Google it if you have something you don’t know.

3. Very Good Graphics. You also need very good graphics, so the users will be addicted to the game and they.

6 Ways to make money in Flash Games:

1. Get it Sponsored

This is the most common way that game developers use to get money, If you don’t know what it is, it’s basically when a website owner of an online arcade site pays you to put their logo and a link to their site into your game. This way, they get more hits to their site, turning into revenue for them. Everybody wins, unless the game turns out to be awful, in which case only you would win. Visit Flash Game Sponsorship for more information on the subject. Also, Flash Game License is a free service which helps with the sponsorship process.

2. Self Host Your Games

Many arcade site owners are developers themselves, and make a lot of money by making their game only accessible on their site. They do this by site locking it. Money is earned through this method through the advertisements that are placed throughout the site. Probably the most successful application of this method was made by Ezone.com.

3. In-Game Advertisements

This form of money making is relatively new on the net, and has become very popular since its creation. The greatest part about this form of monetization is that you can usually use it along with one of the above methods. I myself haven’t had too much success with them (probably because my games aren’t the most popular), but if you really create an amazing game, you will definitely reap the benefits as time goes on, without doing any work. Here is a list of in-game ad services:

There have also been rumors that Google would soon join this list.

4. Sell it Commercially

This is probably the toughest way to make money from your flash game. But, it also pays the most. I’m not too sure about the details, but you probably have to sign a contract even before you make your game. But then again, I don’t know for sure. Some companies that buy games include Cartoon Network and Candystand

5. Make a Premium Version of your Game

This method has become pretty successful for some games, but I don’t really recommend it. Gamers hate it when they have to pay money for anything. All of the other methods only require either webmasters or advertisers to pay.

6. Implement API’s

This is a very easy way to make money from your games. Some websites will pay you to implement their high score API’s into your game. Hallpass and Gamebrew are both offering money for implementation of their API’s.

List of AS2/AS3 Physics Engine

I collected some AS3 Physics Engine projects listed below. If you know others not in following list reply it please.

1. Box2DFlashAS3

box2d

Box2DFlashAS3 is an open source port of Erin Catto’s powerful c++ physics library Box2D.

2. WOW-Engine

a free AS3 open source physics engine written by Seraf ( Jérôme Birembaut ) capable to handle positions in a 3D environment.use Sandy library for all the 3D mathematical computations (matrix, 3D vector, plane). The inner architecture of the engine is also inspired by Sandy’s one.

It is built with many open source kits that are emerging. It can use any of the 3 major flash 3d engines (pv3d, sandy, away3d)

3. foam-as3

a two-dimensional rigid body physics engine written in ActionScript 3.0.

It is meant as an architectural and mathematical reference for developers interested in physics simulation in the area of game development or otherwise. It trades efficiency for modularity and extensibility.

Here is the author’s blog.

4. APE

APE

APE (Actionscript Physics Engine) is a free AS3 open source 2D physics engine for use in Flash and Flex, released under the MIT License.

You can see two interest demo at here and here.

5. Motor Physics

motor

Motor Physics is an open source 2D physics engine under the zlib/libpng license.

6. Revive

Revive is an open source 2D physics engine.You can download the source code from here.

7. Flade (Flash Dynamics Engine)

FLADE

Flade (Flash Dynamics Engine) is an open source actionscript 2.0 library for simulating 2D physics using Verlet integration. It currently features rectangular, circular, & wheel primitives, spring & angular constraints, and surfaces composed of line segments, circles, & rectangles. It’s designed primarily for games with a goal of speed and ease of use, and is MTASC -strict compatible.

8. Fisix Engine

fisixengine

an Actionscript 3.0 physics engine built for game developers.

The fisix engine is a verlet based physics engine for flash written in Actionscript 3.0. This engine is aimed towards use in games and other relatively cpu intensive real-time applications.

9. glaze (browse source here)

a game and physics engine for Flash,core parts of the physics solver and collision system are based on the C physics engine Chipmunk.

12.22.2009

My Top 5 Resources for Learning ActionScript 3

After having made the switch to AS3 about a couple of months ago I have to admit it was a huge pain for me to upgrade from AS2. It just helped by someone, who made the switch, so I can easily absorb the AS3. So keep reading and learn from someone who has made the switch, it’ll make in the end learning AS3 really will make your life easier.

5. Senocular’s Getting Started with ActionScript 3.0 in Adobe Flash CS3 Tutorial

senocularAlthough Senocular states it’s still “a work in progress” this tutorial contains a ton of awesome info on learning AS3. The fifth page of the tutorial is particularly good as it gives a nice overview of classes for someone new to Object Oriented Programming. Probably the best first site you’ll want to read through for a good overview of AS3.

4. Kirupa’s ActionScript 3 Tip of the Day

kirupaLogoGIFSenocular makes the list again with his never-ending forum post of ActionScript 3 tips. Even though some of the tips are from 2006 they are still completely relevant today. I always learn something new whenever I skim through the pages.

3. gotoAndLearn()

gotoandlearnLee Brimelow is a great man. He spends his days creating videos showing you how to do things in Flash. And it’s not boring, irrelevant stuff either. It’s cool, useful stuff like using Papervision3D and Tweener. And best of all it’s completely free. Highly recommended.

2. Flash Help Documentation

helpThe help documentation inside Flash is probably the most overlooked resource. Everything you need to know is right there and it’s written surprisingly well for a help file. Lots of examples are given showing actual code usage. I constantly see people posting on forums asking how to do things when a simple search in the help file would tell them everything they wanted to know. Need to know how the drawing API works? Just look it up! It’s all there. You can even view it online.

1. Google

googleThis might sound stupidly obvious but honestly just searching on Google for what you immediately need to know is the best way to learn AS3. There are so many random blogs out there and forum postings just filled with great info about whatever you need to know. Instead of going to a specific website or picking up a certain book I always find myself just going to Google time and time again.

I know even a good programmer or the best programmer is in need of help or they need reference for anything. Just like I always thought once I became a good programmer I would just automatically know everything off the top of my head and I’d be able to just write programs straight through without referencing anything. I know it probably never will happen. Learning really is a never ending process. No matter how much you know you will constantly be thinking “What’s the best way to do this?”, “Is this even possible to do?” and “How have others solved this problem?”.

My best advice is keep practicing AS3, and start something converting some of your projects from AS2 to AS3. Even you don’t profit in practicing, but you gain experience and knowledge, which you’ll might use it someday, like me. My experience is if I need to know it to complete a project I’ll learn it – and I won’t stop until I get the solution in the problem, I keep searching and researching and reading. I bookmark the pages which is important to me, so I can open again and again, so I can always remember it. So if you wait until you “know” AS3 before taking on a AS3 project you’ll never do it. The right time to make the switch will never come. So just jump in and do it using the resources above as your guide.

- mykhel