HOWTO Create a Facebook App using FlexBuilder

So for a couple of weeks, I’ve been messing around w/ building a simple using Facebook. I decided to use the new ActionScript 3 API created by Adobe and Facebook. I wanted to do a little tutorial because some of this information is hard to understand since most of the API has definitions like, ” “.

In this tutorial I will show you how to login to Facebook, retrieve your friends list and populate a TileList with their pictures. Ok, let’s get started.

(more…)

1 comment June 24th, 2009

Guitar Synth for Flash

guitarsynth

Andre Michelle has created a guitar synth that sounds AMAZING.

It’s done w/o sampling audio, just math and FP10.

http://lab.andre-michelle.com/karplus-strong-guitar

Add comment February 27th, 2009

Abstract Thermometer AIR app

So over the last few months I’ve been messing around with Adobe AIR. The first thing that I worked on was what I was called at the time Abstract Weather Bug. I then noticed that the title was too long.

Look the title is not important. The way the this app works. Is you open the setting slider and enter in your zip, low and high temp scale, Fariehiet or Celsius, and the click GO.

You have the option to save your setting and intervals to which it will check the temperature again.

It then will display a color some were between a gradient of pure blue and red. Post coming soon explaining some of how to create a color scale.

I’m not really a designer (planning to work on that this year) so it doesn’t look awesome.

Add comment January 22nd, 2009

Objective-C Port of PureMVC

I wish I had a mac to try it out but you can now use PureMVC to build iphone apps w/ Objective-C.

I can’t wait till the get one for Android. So I can develop on me PC.

1 comment January 19th, 2009

My 2009 Predictions

  1. Britney gets remarried.
  2. Amy Winehouse goes back to rehap.
  3. Steven Colbert majorly retools his show.
  4. An amemdment is passed for poligamy but not gay marriage.
  5. Another Hulk movie w/ another actor, again
  6. Flying cars

Add comment December 31st, 2008

Johnny V now available on Adobe AIR Marketplace

Check it out, Adobe excepted my submission into the AIR Marketplace. I thought they’d give me crap about the uncleared picture of the actual Johnny Five from Short Circuit. Cool later.

Add comment December 29th, 2008

Merry Christmas I’m not completely Tone Deaf?…am I?

If you have every wondered how I’d sound if I tried recorded an EP Christmas album for Disney Records, here is your chance. I had fun singing like a goof.

All songs created w/ Abelton Live, an AutoTune and/or lots of reverb and chorus.
Jingle Bell Rock
MerryXmas (War is over)
Wonderful Christmas Time

Add comment December 25th, 2008

Roman Numeral/Arabic Convertion AIR App – Johnny V Now Available

Merry Christmas, I got you guys present.

I was looking for a need to make an AIR app, though this isn’t the best one, I turned my converter class into one. Introducing Johnny V.

Add comment December 25th, 2008

How to convert Roman Numerals and Arabic numbers in ActionScript 3

This past week I worked on a porting exercise. I have always wanted to find out how you convert Roman Numerals to Arabic numerals and vice versa. So I starting searching and found a bunch of bloated code for converting these numbers then I stumbled on this page.

So in a few hours of screwing around w/ the loops (typing this correctly took a bit) I got it ported. Porting is fun cause all you have to do is translate.

Here is the zip flie and Here is the class.

package com.joshspoon.etc.utils
{
	public class NumberUtils
	{
		public function NumberUtils(){}
 
		public static function romanize(num:int):String {
			var numerals:Array = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X",
										"IX", "V", "IV", "I"];
 
			var numbers:Array  = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
 
			var lookup:Object = {M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}
 
			var roman:String = "";
 
			var i:int;
 
			  for( i = 0; i < numbers.length - 1; i++)
			  {
				while(num >= numbers[i])
				{
					roman += numerals[i];
					num -= numbers[i];
				}
			  }
			  return roman;
			}
 
		public static function deromanize( roman:String ):int {
 
			var numerals:Array = ["I", "V", "X", "L", "C", "D", "M"];
 
			var numbers:Array  = [1, 5, 10, 50, 100, 500, 1000];
 
			var roman:String = roman.toUpperCase();
 
			var arabic:int = 0;
 
			var i:int = roman.length;
 
		    var compare1:int;
			var compare2:int;
 
			while (i--) {
 
		  	var letter:String;
	  		var listLetter:String;
 
		  	for (var j:int = 0; j < = numerals.length - 1; j++)
		  	{
		  		letter = roman.charAt(i);
		  		listLetter = numerals[j];
		  		if(listLetter == letter)
		  		{
		  			compare1 = numbers[j];
		  		}
		  	}
 
		  	for (j = 0; j <= numerals.length - 1; j++)
		  	{
		  		letter = roman.charAt(i + 1);
		  		listLetter = numerals[j];
		  		if(listLetter == letter)
		  		{
		  			compare2 = numbers[j];
		  		}
		  	}
 
		    if (compare1 < compare2 )
		      arabic -= compare1;
		    else
		      arabic += compare1;
		  }
		  return arabic;
		}
 
	}
}

Add comment December 17th, 2008

Flash Player 10 Pure Flash Keyboard using SampleDataEvent

Update 10/23/2008

So a bit has changed w/ Flash Player 10 Public Release, I found out that the dynamic sound event changed, again, so I had to make some changes.

Flash Player 10 Public Release Needed

Here is the piano. Once I can build it w/ Air I’ll make it into simple app. I would suggest downloading the swf and running it in your standalone flash player. The keyboard is huge.

I have a couple of ideas to to advance this keyboard:

  1. Decoupling functionality
  2. recording of sound
  3. sustain pedal
  4. pitch ben
  5. modulation
  6. get out an alpha version of the code.

If you have some ideas I’d love to hear them. Please leave me a comment.

4 comments September 3rd, 2008

Previous Posts


About This Blogger

Josh Weatherspoon is a Flash Platform Developer and self-proclaimed millionaire who still has to work at Travelocity in Dallas(Southlake), TX

Feeds

Most Recent Posts

Categories

Links

29

Find a Ultrasound school near you