Greetings Card Flash Application

I have worked on this application for a few months and now I see it’s finally implemented into greetingsisland.com.

The project was for two Flash applications, Cards and Invitations, both very similar with very few different features.

It lets you make your own greeting card and invitation design. It’s great looking and easy to use, especially for kids. After you’ve made the perfect greeting, you can either print it on your home printer or save it as a PDF file.

The development itself was demanding and very rewarding, as I got to use techniques like singleton pattern, I’ve used the Facebook API to retrieve photos from Facebook albums and I’ve learned some new coding styles from my friend Biro Barna.

Go on, check it out and let me know if you like it 😉

Convert values within a range to values within another range

Today I’m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you’ll need to change a value and a value range.

package com.vamapaull.utils
{	
	public class ValueConvertor
	{
		public static function convertRange(originalStart:Number, 
							originalEnd:Number, 
							newStart:Number, 
							newEnd:Number, 
							value:Number):Number
		{
			var originalRange:Number = originalEnd - originalStart;
			var newRange:Number = newEnd - newStart;
			var ratio:Number = newRange / originalRange;
			var newValue:Number = value * ratio;
			var finalValue:Number = newValue + newStart;
			return finalValue;
		}
	}
}
Shuffle menu

Update:
I made a jQuery version on Codepen.io

This is text shuffle class that will help you make a nice flash menu for your site or your applications. You can use it for open source or commercial projects (do anything you want).

Flash Version:
TextShuffleMenu.swf

  Shuffle Text (20.8 KiB, 2,228 hits)

UserBooth.com is now live

We just lunched UserBooth.com. Please give us feedback so we can develop neat features and build the best flash webcam application 🙂

Photo Booth – Flash Webcam Image Capture

UPDATE: HTML5 Webcam Photobooth Web App

Two days ago I made a little Flash app that will allow anyone to take a picture with a webcam connected to a computer. Everything worked fine in AS3. It was only when I got to the PHP part of the project when I felt like I should ask for help. And I did, I asked a friend or mine (Mihai Bojin) who in a few minutes explained to me exactly what I needed to know in order to get this project working as it should (a big part of the PHP code is made by him).

PhotoBoothActiveden

The project is now open source and you can find the code and the source files underneath 😉

This open source project is release under the MIT license.

Read more
Odd or Even number in ActionScript

I was making a project for a client of mine where I had to make a list with two different colors for the items (like the iTunes list) so I started to think of a possible way to make this. It was clear enough I need to know the odd or the even number in order to do that. So I started to do some google search and I got over this blogpost by Keith Peters. I have to say, this is a very interesting way of thinking 😀

iseven = ((num & 1) == 0)

Makes sense when you look at binary numbers:

001 = 1
010 = 2
011 = 3
100 = 4
101 = 5

Each of the odd numbers has a 1 in the far right column. The even numbers have 0 there. Mask it with “& 1″ and you can see which it is.

So I made a for loop and used this code. It works exactly how it was intended to work!!
Thanks Keith Peters for your blogpost 😀