Skin Rendering with Away3D 4.1 and Stage3D

Now this is pretty impressive for web. It shows how far Flash has come. No, it is not dead as many cried out (and that’s because they don’t know what they are talking about) and looks more mature.

 

Take a look here for demo and read more details here.

Dungeoneer – a cute little puzzle game

Dungeoneer

Dungeoneer

Welcome to Dungeoneer!

This is a puzzle game I made in which you must find your path to the exit to go to the next level.

You need to visit each dungeon tile, but only once! Each time you make a mistate you will loose a heart. You also need to watch that the time dosen’t run out. And yeah, dont fall over the edge!

The control is done by mouse.

The sample is just a demo. You get 12 levels in the full game.

 

Adobe Launches AIR 3.2 and Flash Player 11.2

Flash Player 11.2 adds features for gaming, including mouse lock, relative coordinates, and right and middle -click support.

AIR 3.2 introduces Stage3D graphics technology for iOS and Android, enabling efficient, faster native GPU rendering performance

For more information about the release check this link

Learn Adobe Flash – Actionscript Lessons Website

Here’s a neat website with some nice tutorials on Flash Actionscript. It ranges from beginer to more advance techniques.

http://everythingfla.com

 

[ AS3] Masking Dynamic Content TextField and cacheAsBitmap

Ok, this is a quick post.

In a little project I am working right now I had to do some effects involving some textfield masking.  The problem I had is that the text was never masked and it always was visible on the display list. To solve this problem I had to use the cacheAsBitmap propriety of display objects. Once I set that to true everything went smooth.

New Flash Related Books For FREE from O’Reilly

Lately O’Reilly has released three books about Flash Technology and the good part is that they are all FREE.

Here I already talked about Introducing Starling.

The next two books are:

What’s new in Flash Player 11

What's New in Flash Player 11

What's New in Flash Player 11

This book will detail the various enhancements, new functionalities, and general improvements available in this new version of Adobe Flash Player.

[ link ]

What’s New in Adobe AIR 3

What's New in Adobe AIR 3

What's New in Adobe AIR 3

This book will detail the various enhancements, new functionalities, and general improvements available in this new version of Adobe AIR.

[ link ]

Waving Text Effect in Actionscript 3.0

var text:String       = "This text is a waving text";
var format:TextFormat = new TextFormat("Arial", 12);
var radius:int = 5;
var speed:Number = Math.PI/15;
var angle:Number =0
var letters:Array = null;


function Init():void
{
	letters = [];
	
	for (var a = 0, x = 0; a<text.length; a++)
	{
		letters[a] = new Sprite();
		
		var txt:TextField =  new TextField();
		txt.selectable = false;
		txt.autoSize = "left";
		txt.text = text.charAt(a);
		txt.setTextFormat(format);
		
		letters[a].addChild(txt);
		letters[a].x = a * 15;
		addChild(letters[a])
	}
	
	addEventListener(Event.ENTERFRAME, Animate, false, 0, true); 

}

function Animate(e:Event):void
{
	for (var a = 0; a<letters.length; a++) 
	{
		letters[a].y = Math.sin(angle+a)*radius;
	}
	
	angle += speed;
}

Init();

O’Reilly’s free book: Introducing Starling

Introducing Starling

Introducing Starling

One of the reason that made me go on and learn Flash is to create games that I like. Well, in time, things got different and most of the time was spent on creating flash components for websites. Yeah, I’ve done occasionally some small flash games but never at a professional level.

A nice piece of news was when I found out that O’Reilly release a free book based on Starling Framework.

What a joy ! I’ve known about the existence of this framework but my time was too short to really got into it. So I think this is the right time to do it. I am going to wipe the dust from some of my games and try to port them to use this framework. I think this will be a great opportunity to learn some stuff. 🙂

Starling is an ActionScript 3 2D framework developed on top of the Stage3D APIs. Starling is mainly designed for game development, but could be used for many other use cases.

So, here is the link you wanted.

Adobe Flash 11 Stage3D (Molehill) Game Programming Beginner’s Guide book

If you are a flash developer keen to get into game development this book is for you. It is a perfect introduction to 3D game programming in Adobe Molehill for complete beginners.

Starting with simple tasks like setting up Flash to render a simple 3d shape, each chapter presents a deeper and more complete videogame as an example project.

You can get this as a physical book or an eBook.

Source

Flash – Introducing Mouse lock, right and middle click events

Finally, after all these years Flash has done something about the mouse, that we all needed so much.

To enable the new mouse locking propriety set Stage.mouseLock to true. There are several rules which are applied here:

– this property can only be set in full screen mode ( I guess because some security reasons ).
– it dispatches a runtime exception if it is called in non-full screen mode.
– the property can be read in non-full screen mode.
– when exiting full screen mode Stage.mouseLock is automatically set to false.

Situations where mouse locking is disabled automatically and the mouse cursor is made visible again:

– when the user hits ESC.
– when the window loses focus, for instance when the user hit CTRL-TAB.
– when any settings UI is visible (that includes all privacy dialogs). When a native dialog is shown, for instance a file upload dialog.

Right and middle click events:

Just like with Adobe AIR, right and middle click events can now be used to inside Flash Player.

Another great thing is that you can disable the context menu entirely.

Download Flash Player 11.2 beta 2