Protect your work from ActionScript code theft with SWF Protector
« I’ve just found a site that won a top international online advertising award – and it’s been blatantly lifted from me!
Its a flash application that has the same vectors and almost certainly the same AS code. Is there anything I can do? I’m in the UK – they’re in Brazil. »
The guy who opened this thread looks quite desperate… now imagine this happening to your latest Flash game.
That’s why you must protect your code. You don’t want someone else stealing your work.
I am going to review DCOM Soft’s SWF Protector.
SWF Protector
SWF Protector is an swf protector software working through actionscript encryption to secure your actionscript content. This means decompilers won’t be able to read your actionscript. Read more
Understanding Box2D’s one-way platforms, aka CLOUDS
One of the new features introduced with Box2D 2.1a is the improved contact listener class which comes in hand when we want to create one-way platforms, or “clouds”.
This can be made thanks to a function called before the contact is processed… something like “hey, two bodies are about to collide, what should I do?”… so you can decide to disable the contact for every collision you want.
The function used to do this task is PreSolve, working for all awake bodies that aren’t sensors.
If you don’t know what is a Box2D sensor, check Box2D Flash game creation tutorial – part 2.
So the concept is: listen for collisions, if a collision involves the cloud wall and the player, then check if the player is higher or lower than the cloud. If it’s lower, don’t process the collision and let the player fly through the cloud.
Let’s see the script, directly taken from Box2D Flash game creation tutorial – part 2: Read more
Box2D Flash game creation tutorial – part 2
After seeing the character creation in Box2D Flash game creation tutorial – part 1, it’s time to add some coins to collect.
This process will involve some interesting Box2D features, like sensors and custom collision management.
I would suggest to read the basics of sensors at Erase Box: the tutorial and custom collision management at Creation of a Flash Stabilize! clone using Box2D – part 4.
Although they are both referred to an older Box2D version, they’ll introduce you to sensor and collisions.
Now the concept is simple: we are placing some circular sensors around the stage (the coins), then we’ll create a custom contact listener class to check whether the player is over a coin or not. If it’s over, we’ll remove the coin.
So this is the main script: Read more
11 Flash isometric engines you can use in your games
I am playing isometric games for more than 20 years… probably started with Q*bert, one of the oldest games I played is Head Over Heels on my Commodore 64, and I was an hardcore player of UFO: Enemy Unknown.
As you should know, isometric projection is a method of visually representing three-dimensional objects in two dimensions, in which the three coordinate axes appear equally foreshortened and the angles between any two of them are 120 degrees. A great way to represent 3D worlds on old 8-bit computers since their CPUs did not handle a real 3D world, and a great way to create casual adventure games nowadays.
I am showing you a list of 11 Flash isometric engines, some of them are free, others are commercial, and some still unreleased. I am writing to all authors to have more info about their engines, meanwhile this the most complete list I was able to make.
Engines are listed in alphabetical order.
2D isometric engine – Free
http://code.google.com/p/2d-isometric-engine/
Open source, multilevel and multiplayer tilebased isometric engine, reviewed in this post
as3isolib – Free

http://as3isolib.wordpress.com/
As3isolib is an open-source ActionScript 3.0 Isometric Library developed to assist in creating isometrically projected content (such as games and graphics) targeted for the Flash player platform. As3isolib includes utilities, primitives and views. As3isolib was developed with simplicity, speed and performance in mind so that developers can focus on actual implementations rather than having to learn a complex API.
You can see latest project using this engine at http://apps.facebook.com/downtowngame/ Read more
Monetize your Flash games with GamesChart
Do you remember Emanuele Ornella from Mind the Move? It’s the guy behind the Come2Play multiplayer API tutorial posted about a month ago.
Now he is explaining us a new way to monetize Flash games: GamesChart
« When I first saw the announcement on Flash Game Developers group on www.linkedIn.com about the GamesChart beta program I immediately thought to participate. It was a surprise to me to find that my game Haunted House was at first position for the entire 4 weeks of the beta program!
Actually also my Alice Memory game is also on the chart, even if never more than in the 6th position.

What GamesChart is about?
It’s another way to generate money from you Flash games. The nice thing is that it is not an alternative to the traditional banner you place during the loading of the game. But it goes together.
The main idea is to have publisher to “bid” for which game will be in the chart and this will generate extra revenue to the developer, to the publisher who correctly bid and of course to the GamesChart organization.
This is from Barry White directly from linkedIn group. Read more
Box2D Flash game creation tutorial – part 1
My first Flash game tutorial ever was Flash game creation tutorial – part 1.
It was the first of a series to create a game like jmtb’s ball games. It was an old AS2 series, and some steps have been ported in AS3 with Create a Flash ball game using AS3.
The “ball” game is so simple yet addictive and customizable that I think it’s the perfect game to start a tutorial series based on a new language.
This time I am not covering a new language but the famous Box2D library, but I am going to add all necessary features to make it an interesting game to play.
In this first chapter, I am going to create the ball and the way you control it, by tapping arrow keys.
I am using the basics of Understanding Box2D applicable forces and Box2D tutorial for the absolute beginners – revamped, which I recommend you to read.
Now this is the code: Read more
Understanding Box2D applicable forces
In Box2d, bodies aren’t only affected by gravity and collisions, but you can also apply forces to them.
Knowing the right force to apply is very important when you want to control a body, as you may want to do in a Flash game
Let’s see the forces you can apply:
Applying a force
public function ApplyForce(force:b2Vec2, point:b2Vec2):void
Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body, so you don’t have to wake it up by yourself.
The force is applied inNewtons (N).
Applying an impulse
public function ApplyImpulse(impulse:b2Vec2, point:b2Vec2):void
Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of application is not at the center of mass. This wakes up the body, so you don’t have to wake it up by yourself.
The impulse is applied in Newton-seconds or kg-m/s.
Setting a linear velocity
public function SetLinearVelocity(v:b2Vec2):void
Set the linear velocity of the center of mass. This function will not work if the body is sleeping, so you must wake it up with SetAwake before applying the velocity.
What force should I apply?
You should choose the force according to the result you want to achieve. Let’s suppose you want to apply a vertical force, to make something jump in the air, and let’s suppose you can apply the force at any time, even when you just applied it.
You will have three cases:
Applying the force when the body is not moving: this happens when you apply the force when the body lies on the ground or when it’s in the air, in the moment it finished its “jumping” speed and it’s about to fall down. In this case there aren’t any noticeable difference among applied forces.
Applying the force when the body is moving up: this happens when the body is in the air and still has “jumping” speed. In this case, applying a force or an impulse will sum the “jumping” speed to the applied force to produce a “boost”, while setting the velocity again will just apply the velocity again, no matter the “jumping speed”
Applying the force when the body is falling down: this happens when the body finished its “jumping” speed and it’s falling down. As in the previous case, applying a force or an impulse will sum the falling speed to the applied force, and according to falling speed and applied force, the body will continue falling or jump a little (how little? the difference between the falling force and the applied one). Setting the velocity will just stop the body to fall and make it jumping again, no matter of the falling speed. Read more
Flash AS3 Pixel based circle collision engine
After seeing the Lineball video teaser I got some email asking me how did I make the hollow circle with Box2D, and how to get a smooth drawing using box primitives.
Well, I have to say I didn’t use Box2d, but another library called Collision Detection Kit.
I’ll publish some tutorial about it once I’ll complete the game, but it’s not the point of today’s post.
A reader from Argentina, Adolfo Chacon, sent me an AS3 basic engine to do the same thing (maybe even better) using the concepts I explained soooooo long ago in the Create a flash draw game like Line Rider or others series.
It’s a basic, uncommented script because it’s just a prototype… basically Adolfo took my old script, adjusted trigonometry and did the magic dividing the simulation in steps to manage slower speeds.
I resized it, changed variable names (translating from spanish) and some operators since the auto format option gave me errors when trying to format a<-b, forcing me to change into a<b*-1.
Now enjoy the script Read more
Create incredible particle effects with Partigen 2
Do you remember Partigen?
Andrew Fitzgerald from Desuade released the new version, of his amazing particle effects engine: Partigen 2.
Featuring over 120 exclusive preset effects, Partigen 2 is the first and only extension for Flash that let’s you to create complex particle effects in just a click.
The list of features is huge, so I am listing the ones I found most interesting:
- Full Package XML-Serialization
- Fully documented AS3 API
- Emitters can be created with either the IDE component or via ActionScript
- Particles can be any display object that inherits the Particle class
- Renderers can be shared across multiple Emitters
- Pools can handle the internal creation and storage of Particle objects in memory
You can read the full list of features here
The documentation is awesome, the best I’ve seen so far in a product like this one. You can access the full API documentation, and from this link you can access a 42 minutes long video covering the entire Partigen 2 component, and you can create beautiful effects using the component in less than a minute.
Anyway, we’re not here to talk about the component, but to test the AS3 API. Read more
PixelBlitz AS3 game framework
PixelBlitz Engine is an old game framework for Actionscript3 created by Richard Davey from Photon Storm.
As said, it’s not that new, there isn’t any documentation or tutorial or even a feature list.
So, you may wonder why should I write about it, considering it’s a bitmap-based framework just like Flixel, which has a better documentation.
Well, the main reason is the blog is mine :) … the second reason is PixelBlitz supports the Flash IDE, and this means you can use the library with Flash, while Flixel only supports Adobe Flex Builder or FlashDevelop.
In the downloadable package you can find at Google Code you can find some examples but they are incomplete… you will only find the .as files, without the .fla.
So I took the most promising example (in my opinion) and created a complete project, with the .fla file and all needed objects (well, just one object, but it’s everything you need to make it work).
This is the script, let the comments guide you through the entire process. Read more
- Get up to $100,000 for your next Flash game with Mochi GAME Developer Fund
- Create a dynamic content animated footer ad for your site in just 9 jQuery lines – 17 lines version
- Sell sitelocked version of your Flash games and even .fla sources to Free Online Games
- Protect your work from ActionScript code theft with SWF Protector
- Create a dynamic content animated footer ad for your site in just 9 jQuery lines
- Understanding Box2D’s one-way platforms, aka CLOUDS
- Triqui MochiAds Arcade plugin for WordPress upgraded to 1.2
- Box2D Flash game creation tutorial – part 2
- 11 Flash isometric engines you can use in your games
- Monetize your Flash games with GamesChart
- Create a Lightbox effect only with CSS - no javascript needed
- Flash game creation tutorial - part 1
- Create a Flash Racing Game Tutorial
- Flash game creation tutorial - part 2
- Make a Flash game like Flash Element Tower Defense - Part 2
- Flash game creation tutorial - part 3
- Make a Flash game like Flash Element Tower Defense - Part 1
- Create a flash draw game like Line Rider or others - part 1
- Triqui MochiAds Arcade plugin for WordPress official page
- Create a flash artillery game - step 1
- Flash game creation tutorial – part 5.2 (4.88/5)
- Create a flash artillery game – step 1 (4.79/5)
- Create a Flash Racing Game Tutorial (4.76/5)
- Create a flash artillery game – step 2 (4.74/5)
- Create a survival horror game in Flash tutorial – part 1 (4.73/5)
- Creation of a Flash arcade site using WordPress – step 2 (4.73/5)
- Flash game creation tutorial – part 2 (4.71/5)
- Flash game creation tutorial – part 1 (4.70/5)
- Create a flash draw game like Line Rider or others – part 1 (4.69/5)
- Creation of a platform game with Flash – step 2 (4.68/5)






