String-matching-algorithm

Need to find specific textsnippets within text? Ever heard of the Boyer-Moore-Algorithm?
At the beginning, the pattern will be written left aligned under the text and then compared from right to left with it. Once a mismatch is found, two heuristics calculate how far to the right the searchpattern can be displaced.
function bm(txt, pattern){
var tlen:Number = […]

Plasma - nothing more or less.

Plasma-effects may kill the performance of your flashplayer - hope this tiny plasma soup, i scripted last evening won´t freeze yours. I think it´s pretty fast - and did you see all that colors ( just move your mouse ) ?
Launch Plasma-effect.
Or just download the sources.

TextLineMetrics Example.

Just a quick example for using the TextLineMetrics combined with the textArea-component.
import flash.text.TextLineMetrics;
import flash.display.Sprite;
import flash.events.Event;
myTextArea.text = “hello world”;
var rect :Sprite;
var tH :Number;
var lH […]

Preloading in Flash CS3 like i did in Flash3 - what a mess…

In Flash CS3 Beta, loading a single swf and displaying loaded bytes changed a lot. My solution ( probably a bad one! ) is to load my main swf like i did in flash3 - shame on me! For example you have 3 Frames. In the first frame i wait and look if all frames […]

PV3D : First steps on character animations…

Last weekend i spent my time playing with papervision3d, xsi collada export and flash cs3 beta. after doing some basics, like rendering and parsing cubes or planes form xsi to flash via collada export, i tried to display a little more complex figures.
Unfortunatly i didn´t manage to parse a complex bone-animation ( xsi, pp3d to […]

3D Cube : The filtered kind of…

Just a quick scripted 3D spinning cube with some filters i made a view month ago…
>> Launch.

Sound Compute Spectrum.

Visualising soundwaves with actionscript3 is pure fun. Inspired by an demo Joa Ebert released on the last flashforum conference in germany, i decided to build my own little sound-visualising demo, called “the brightWhite experience”.
Premium supported on getting some free sounds created by Philipp Weigl, i tought up some nice little effects for that visualiser, that […]

Motion Rings

Things look so much better with math:
>> Motion Rings
Behind the scenes:
onEnterFrame = function() {
var p:Number = 51;
while(p>0) {
p–;
obj_array[p].x = 250 + 90 * Math.sin(zIndex + 0.1257 * p);
obj_array[p].y = 100 + 90 * Math.cos(zIndex + 0.1257 * p);
bmp.setPixel32( obj_array[p].x , obj_array[p].y , 0xffffffff );
}
var p:Number = 101;
while(p>51) {
p–;
obj_array[p].y = 100 + 90*Math.cos(0.1257*p)*Math.sin(zIndex);
bmp.setPixel32( obj_array[p].x , obj_array[p].y […]

Embed Fonts with AS3…

…the Flash CS3 kind of way! It´s simple, i can tell you - after trying for days…
Step1:
Add the font you want to the library. Be sure to name the font and give it a class linkageID-name too.
Step2:
var yourFont = getDefinitionByName( “yourFontLinkageID-name” );
Font.registerFont(yourFavFont);
Step3:
Finally just refer to the font-name when formatting your textfield.
import flash.text.*;
var format:TextFormat= new TextFormat();
format.font= […]

Perlin Juliamenge Fractal

Fun with fractals:
>> Have a look