This is the first movie clip code - calling out the other movie clip
for (i=0; i<=600; i++) {
_root.attachMovie("digit", "digit"+i, i);
this["digit"+i].the_depth = i;
}
This is the second code
//var text_array:Array = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z", "?", "<", ">", "!", "`", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "+", "|", "/", "=", "_", ",", "[", "]", "{", "}", ":", ";");
var text_array:Array = Array("0", "1","3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "y", "z");
text_box.text = text_array[random(text_array.length)];
//
var matrix_position:Array = Array();
//
counter = 0;
counter_limit = random(5)+3;
//
for (r=0; r<=Stage.width/this._width; r++) {
matrix_position.push(r*this._width);
}
this._x = matrix_position[random(matrix_position.length-0)];
this._y = random(Stage.height-this._height);
this.speed = random(8)+4;
rand_scale = int(random(100));
this._alpha = rand_scale;
this._xscale = rand_scale;
this._yscale = rand_scale;
//
this.swapDepths(rand_scale);
//
import flash.filters.BlurFilter;
import flash.filters.GlowFilter;
//
var filter:GlowFilter = new GlowFilter(0x00ccff, rand_scale+10, 5, 5, 0.5);
var filterArray:Array = new Array();
filterArray.push(filter);
//
var filter:BlurFilter = new BlurFilter((100-rand_scale)/10, (100-rand_scale)/10);
filterArray.push(filter);
this.filters = filterArray;
//
//
this.onEnterFrame = function() {
/*
// letters change during animation
counter++;
if (counter>counter_limit) {
text_box.text = text_array[random(text_array.length)];
counter = 0;
}
*/
this._y += speed;
if (this._y>=Stage.height+this._height) {
this._y = 0-this._height;
}
};
This post has been edited by lordofduct: 11 May 2011 - 06:28 AM
Reason for edit:: Edited by Forum Leader to include code brackets, please use them in the future.

New Topic/Question
Reply


MultiQuote





|