Augmented Reality?

What the heck is Augmented reality? Check out this video by Lee Brimelow on the FlashBlog:

http://theflashblog.com/?p=1453

This would be a great place to start a graduate thesis project.

One thing to note, many of the examples Lee mentions are 3d, but 3d is not a requirement. All of these ideas could be applied to 2d graphics composited with your video. This has many great possibilities.

Optimizing Flash

Here’s a great Slideshow by Grant Skinner on Optimizing Flash. I think only understood about half of what was talked about here. Even so I still got a lot of goo ideas.

http://gskinner.com/talks/quick/

Typed Arrays?

Here’s a new thing I just discovered, the Vector class! Not what you’d think by the name. If you’re me your thinking that it must have something to do with the Drawing API.

Turns out a Vector is best described as an Array where all of the elements are of the Same type. Apparently these are a little more efficient than Arrays for this reason. When you think about this is what I’m doing most of the time.

Use a Vector in this way:

var v:Vector.<String>;
v = new Vector.<String>();

The lines above create a new Vector v and type it to String. This example was taken from the Flash Help on the Adobe site.

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/Vector.html

Looks like this only works in the Flash 10 Player.

Accessing the Document Class

Here’s a really simple method to access your Document class from anywhere in a project. This method will only work if that Class is instanced only once.

Add a public static var to the class, which in this example is name “Main”:

public static var main:Main;

Set the value for the new variable to reference your class instance with “this”:

main = this;

From here you can access any public method or property of the Main class with:

Main.main.method();

Flash on the iPhone?

Looks like Adobe has come up with a Flash to iPhone converter. Probably will be built into CS5. This is not surprising as it seems like an obvious extension of Adobe AIR.

http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/