Tuesday, April 7, 2009
Thursday, February 19, 2009
Windmill rotation example
To use rotation in real world examples I have to combine it with other functions. Simple example would be windmill Flash animation. I have two movie clips, pillar which is static and windmill hands. Second one must be precisely centered in the middle of the central circle, so rotation can be perfect.

var wind_speed:Number = 0;
Next, we will create onEnterFrame function to perform hands rotation as function of wind_speed.
wind_speed = change_wind_speed(wind_speed); if ((wind_speed < 40)&&(wind_speed > -40)) { mc_hands._rotation += wind_speed; }else { wind_speed = 0; mc_hands._rotation += wind_speed; }
function change_wind_speed(a:Number):Number { fcounter += 1;
// wind direction change if ((fcounter % 100) == 0) { // every 100 frames wind changes its direction and speed bd = Math.random()*50-25; da = Math.random()*5-2.5; a = a + bd + da; return a; }else{ // small, per frame change da = Math.random()*5-2.5; a = a + da; return a; }}
Windmill is ready to generate some clean energy.
Saturday, February 14, 2009
About rotation (beginners)
onEnterFrame = function(){ box1._rotation += 10;}
var speed:Number;
onEnterFrame = function(){ speed = _xmouse - box1._x; box1._rotation += speed / 10;}
var speed:Number;
onEnterFrame = function(){ speed = Math.abs(_xmouse - box1._x); box1._rotation += speed / 10;}
- to be continued -
Monday, February 2, 2009
Flashtory Flash Photo Gallery
One of the latest creations is flash netish resizable gallery album, two level Flash image gallery with HTML formatted description photos and unlimited number of entries via XML external file. Gallery interface is clean with smooth tweens, perfect for CD and web presentations. Here are some screenshots of gallery:
Saturday, January 17, 2009
Sequel brings small improvements
Only copy paste is required with instances names change: num1_txt, num2_txt and num3_txt. Code is almost the same except for new text instances. I have added:
num1_txt.filters = new Array(filter);
num2_txt.filters = new Array(filter);
num3_txt.filters = new Array(filter);
num2_txt.filters = filterArray;
var newNumber2:Number = Math.floor(Math.random()*10);
num2_txt.text = newNumber2;
num3_txt.filters = filterArray;
var newNumber3:Number = Math.floor(Math.random()*10);
num3_txt.text = newNumber3;

Monday, December 15, 2008
Background Packs and Tutorials
Friday, December 5, 2008
Quick Background Examples

Detailed tutorials are on their way, along with free backgrounds pack.
Wednesday, December 3, 2008
Cool Flash Carbon Backgrounds
Notice how cool is dim blurry center align light. Every tile is under 1kb. This already gives me an idea how it can be done. Author have used here very small PNG’s under 1kb and tiled them using ActionScript, but I think it can be done without any images.
Thursday, November 27, 2008
Flash Christmas E-cards
and more:
and many more…
Thursday, November 13, 2008
Clouds Mask Flash Banner Rotator
Unusual banner rotators, unique for Flash Platform can enhance visual appeal of website or online presentation. Next Flash Banner Rotator is really original and easy to customize. Transition between images is done via interesting clouds mask which is accomplished using ‘perlinNoise’ and threshold method. You can see on the image below how this fancy transition happens. On top left side is one image and rest of it is next one in array. Transition takes form of a cloud. Click to see it in animation mode.
Banner rotator is written in actionscript3.0 and it is completely XML driven. Everything is ready for customization: buttons, hover and text colors, button number, shape and position as well as delay time.








