I used to extract some pieces of code and put them to this blog and share them as useful classes/components.
But after gathering all of them would be a better idea, that is why i created a svn checkout with my googlecode account.
Now you can use your subversion software and get the latest things i would put into.
To start with, i commited some bunch of tools such as :
Perlin plasma effect (from a previous post)
create a lavalamp like effect with the PerlinBD class which create an instant perlinnoise bitmapdata
PNG Button class
create un button from a gif/png image, where only solid colors from image reacts as button hit area
GoogleTracker class
this singleton class is to be used with the gaForFlash component, and acts like a static class to simplify tagging along a website project
the great gaForFlash component can be found at http://code.google.com/p/gaforflash/
ScriptConnector class
this class can call a ASP/PHP script, sending parameters with POST/GET method, and deals with events listener. Calling a script and get back result only deals with few lines of code.
CustomKeyboard
current version can deals with several key combinations (ex: shift+scape + F key), so you can create secret combinaisons for many puproses.
MediaLoader
this can be used to load images or swf with few lines of code, leadind to a cool "_myMediaLoader.load("image.jpg", myClip);"
Many classes will be added in the future, so if you are interested in checking these classes, just have a look to my googlecode page :
By Arthy on Wednesday, November 26 2008, 14:09 - Labo
During my experiments i spent some time on perlin effect to create a plasma effect.
The most useful in perlin noise are octave offsets that can create the perlin movements, so the PerlinBD class extends the BitmapData class and provide simple way to manage octave offsets movements.
So here is a simple way to create a moving perlin noise to create a plasma effect :
// create new PerlinBD as normal BitmapData (width; height, alpha, color)
perlinBmp = new PerlinBD(550, 400, true);
// set 3 octaves effects (means 3 points offsets)
perlinBmp.setOctaves(3);
and then using Event.ENTER_FRAME, just call :
perlinBmp.updatePoints();
The perlinBmp instance has different properties to modify the plasma effect :
By Arthy on Wednesday, November 12 2008, 08:09 - General
If you have already seen the Adobe components limits, SamyStudio created an great set of AS3 components called "myLib" which include the following components :
Button
CheckBox
ComboBox
Label
List
MouseScroll
PanoramaScroll
RadioButton
ScrollBar
ScrollPane
Slider
TextArea
TextInput
MediaPlayer.
Once installed, these compenents appear in the components panel.
Personnaly my favourite is the wonderful combobox which is a pain to code.
The set comes with a whole API documentation, i guess this was a hard work to do so thanks a lot SamyStudio, great job !
By Arthy on Sunday, October 19 2008, 11:30 - General
Maybe you know Shazam wich allows mobiles & iPhones owner to recognize a music from a 10 seconds recorded sample ?
So have a look to : http://www.shazam.com/
How does it works :
You are hearing a song you like but you don't know who is the artist...
Record a sample to your mobile/iPhone, and thanks to its huge database this tool is capable of finding the entire music informations.
But Shazam made me think of another old web flash application i saw a long time ago .
This funny small app asks you to tap the music rythm you are thinking of, and it discovers it very fast.