.SWFGEEK Blog is now Snap Shots enabled !!!

Snap Shots

I just installed snap shots witch by now I’m pretty shure you know how to use but just in case heres a little explaining:

This site called Snap Shots that enhances links with visual previews of the destination site, interactive excerpts of Wikipedia articles, MySpace profiles, IMDb profiles and Amazon products, display inline videos, RSS, MP3s, photos, stock charts and more.

Sometimes Snap Shots bring you the information you need, without your having to leave the site, while other times it lets you “look ahead,” before deciding if you want to follow a link or not.
In case it becomes annoying , just click the Options icon in the upper right corner of the Snap Shot and opt-out.

FZip Update with support for Adobe AIR

FZIP

Claus Wahlers just released an update for FZIP, a AS3 class library to load, extract/decompress files.

Main updates are:

  • Added support for Adobe Air. The Adobe Air runtime provides a low level inflate method, making it possible to load any ZIP archive and decompress compressed files without the need of injecting Adler32 checksums.
  • Added FZipLibrary class for higher level access to files in a ZIP archive. ?FZipLibrary processes files (based on file extensions) from an FZip instance and converts them into usable formats. Files can be converted to either a BitmapData or DisplayObject classes. Data embedded in SWF files (like classes) can also be retrieved. Flash?s built-in Loader class is used to convert formats, so the only formats currently supported are ones that Loader supports. As of this writing they are SWF, JPEG, GIF, and PNG.?
  • Bug fix: There was a problem with filenames containing special characters. Filename encoding now defaults to UTF-8. In case the filenames are encoded differently in your ZIP, you can specify the encoding in the FZip constructor.

Sound Fun with SoundMixer.computeSpectrum();

computeSpectrum

This is an example of how the computeSpectrum works on Flash CS3, I’ts just great the posible things you can make with it , this is based on a great example made by Peter deHaan In my example I just made the spectrum being represented by circles and have a gradient fill across the spectrum here’s the link.

And here’s the script:

?View Code ACTIONSCRIPT3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var url:String ="songs/mysong.mp3";
var request:URLRequest = new URLRequest(url);
var s:Sound = new Sound();
s.addEventListener(Event.COMPLETE, completeHandler);
s.load(request);
var song:SoundChannel = s.play();
song.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
var ba:ByteArray = new ByteArray();
 
var gr:Sprite = new Sprite();
 
gr.x = 20;
gr.y = 200;
 
addChild(gr);
 
var time:Timer = new Timer(50);
time.addEventListener(TimerEvent.TIMER, timerHandler);
time.start();
 
function completeHandler(event:Event):void {
	event.target.play();
}
function soundCompleteHandler(event:Event):void {
	time.stop();
}
function timerHandler(event:TimerEvent):void {
	SoundMixer.computeSpectrum(ba, true);
	var i:int;
	// Gradien Fill
	var fillType:String = GradientType.LINEAR;
	var colors:Array = [0xFF0000, 0x0000FF];
	var alphas:Array = [100, 100];
	var ratios:Array = [0x00, 0xFF];
	var matr:Matrix = new Matrix();
	matr.createGradientBox(400, 20, 0, 0, 0);
	var spreadMethod:String = SpreadMethod.PAD;
	// ends fill
	gr.graphics.clear();
	gr.graphics.lineStyle(0, 0xFF0000);
	gr.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
	gr.graphics.moveTo(0, 0);
	var w:uint = 2;
	for (i=0; i<512; i+=w) {
		var t:Number = ba.readFloat();
		var n:Number = (t * 100);
 
		gr.graphics.drawCircle(i, w, -n);
 
	}
}

Adobe Flex 3 Beta is out.

flex3

Adobe Flex 3 Beta

This prerelease version begins a new, more transparent product development process from Adobe, with frequent, regular access to early builds and greater insight provided into the feature roadmap and planning process. The Flex Builder 3 beta release will provide you with an opportunity to explore powerful new features, communicate early feedback, and test existing Flex applications with the new Flex 3 framework. Some of the new major features include:

* Support for the new Adobe Integrated Runtime (AIR).
* Code refactoring.
* Memory and performance profilers.
* SWF file size reduction through persistent framework caching.
* Advanced datagrid.
* Web service introspection.

Downoad the Beta here

Ted Patrick gave a more in depth info on the subject check his blog here.

Adobe Media Gallery

mediaGallery

The new Adobe Media Gallery engine adds Flash and HTML gallery creation capabilities to Adobe Bridge CS3.Any file that Bridge can preview can be included in a gallery. Finished galleries can be uploaded directly from Bridge via FTP.This is just great it you want to for example show some work to your client via your website without the need of taking too much time in it.
It’s a great engine here’s one I made In about 10 minutes including the upload ( the most time I spend it selecting the pictures =) ).

Anyway here’s what you need to start building Your own:
1.- Update to Bridge 2.1.
2.- Download and Install from Adobe labs.
3.- Start Building your gallery.