ATF to PNG Converter Tool

A few days ago a client asked me if I can convert ATF (Adobe Texture Format) to PNG images. Knowing that ATF files are used by some Starling developers when developing games and applications with Adobe Air, I knew that I could build a tool that will load the graphic, add it to the stage, then basically, take a screenshot of the entire stage and save it as a PNG image file. It took a a few hours to get the final application done. I’ve made it available for download in case anyone else needs to convert ATF to PNG (with transparency).

Read more
Starling and Feathers Full Screen Button

Today I tried to make a full screen button for my Christmas Day Countdown online application. With that application I’m using Starling with Feathers components. If you listen for Event.TRIGGERED on a Feathers button and then change the displayState, you will get a Security error:

SecurityError: Error #2152: Full screen mode is not allowed.

Flash Player is expecting a MouseEvent when changing the displayState, it will not work with a Touch event. I looked for a workaround and I found this forum topic. After I made some improvements, I finally had a working full screen button triggered from Starling. The code below works like a charm:

Starling.current.nativeStage.addEventListener(MouseEvent.MOUSE_DOWN, toggleFullScreen);
 
private function toggleFullScreen(event:MouseEvent):void
{
	if(_fullScrenButton.stage != null)
	{
		if(_fullScrenButton.stage.hitTest(new Point(event.stageX, event.stageY)) == _fullScrenButton)
		{
			if(Starling.current.nativeStage.displayState == StageDisplayState.FULL_SCREEN)
			{
				Starling.current.nativeStage.displayState = StageDisplayState.NORMAL;
			}
			else
			{
				Starling.current.nativeStage.displayState = StageDisplayState.FULL_SCREEN;
			}
		}
	}
}
MiniPong Game

My first game published for mobile devices is here.

Made in Flash Builder with Adobe AIR, Startling and Feathers (for the buttons and other components). Next on my list is to publish it to iOS, but for that, I need to get myself a Mac first, since Apple does not allow developers without an Apple machine to compile the application for the App Store.

For now, please check the Android version and let me know if you like it:
MiniPong Game on Google Play

Update:
The game has a new graphic interface and it’s also available online:
www.vamapaull.com/games/minipong

Children Games, Tests and Exercises

In the last few months I’ve been working for one of my clients making some games, tests and exercises for children age 8-12 years.

The first one is named Comprehension Test and it is basically a Q&A application.

Sentence Scrabble, the second application it does exactly what it sounds like. You have some scrabble words and you have to click on each one and drop them in the holders on top to form a sentence.

In the third application named Vocabulary Match, you have to link each word to the specific image on the right.

The last Flash application is the Voice Recording one. Here a narrator will read some sentences first and then you can practice your English by recording yourself reading those sentences and then play it back so you can hear how you actually sound like.

The new Greetings Island design is here

This weekend GreetingsIsland.com released the new and beautifully designed website. With the new design of the website we also updated the design of the Flash applications and added a few more features for a better user experience.

Please check it out and keep in mind that I didn’t have anything to to with the actual design, I just developed the Flash applications and implemented the design elements afterwards.

Color Value To Hexadecimal

A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.

Basically you can convert the color value to hex string with colorNumber.toString(16);
Now, if you have this shade of blue “13311”, for example, it will be converted to “33ff”.

You can fix that with while(hexColor.length < 6) and add “0” to in front of the hex color output.

Read more