Hi all,
I am working on a Matrix Parody film and I have this actionscript to create a matrix code raining effect but I want it to go to the next frame after frame 200 but I am not a guru with flash action scripting and wondering if anyone would know what I need to add to this script to make this scene move to the next scene after frame 200.
Thank you!
function dropStart() {
if (Math.random()>0.9) {
this._visible = true;
this.onEnterFrame = drop;
}
}
function drop() {
// create a trail character at the current position...
trailName = "trail"+trail;
trail++;
attachMovie("katakana", trailName, trail);
_root[trailName]._x = this._x;
_root[trailName]._y = this._y;
_root[trailName].kata_txt.text = this.kata_txt.text;
_root[trailName].fader_color = new Color(_root[trailName]);
_root[trailName].fader_color.setRGB(0x008000);
_root[trailName].onEnterFrame = fadeTrail;
//
//Move the head character of the trail down by one character...
this.kata_txt.text = String.fromCharCode(Math.floor(Math.random()*26)+97);
this._y += 10;
// If the head character has reached the bottom, restart it at the top...
if (this._y>400) {
this._x = Math.round(Math.random()*700);
this._y = 0;
}
}
function fadeTrail() {
if (Math.random()>0.95) {
this.removeMovieClip();
}
if (trail>1000) {
trail = 100;
}
}
/*
MAIN PROGRAM INITIALIZATION
*/
trail = 100;
for (i=0; i<20; i++) {
newName = "char"+i;
attachMovie("katakana", newName, i);
_root[newName]._x = Math.round(Math.random()*550);
_root[newName]._visible = false;
_root[newName].onEnterFrame = dropStart;
}
I am working on a Matrix Parody film and I have this actionscript to create a matrix code raining effect but I want it to go to the next frame after frame 200 but I am not a guru with flash action scripting and wondering if anyone would know what I need to add to this script to make this scene move to the next scene after frame 200.
Thank you!
function dropStart() {
if (Math.random()>0.9) {
this._visible = true;
this.onEnterFrame = drop;
}
}
function drop() {
// create a trail character at the current position...
trailName = "trail"+trail;
trail++;
attachMovie("katakana", trailName, trail);
_root[trailName]._x = this._x;
_root[trailName]._y = this._y;
_root[trailName].kata_txt.text = this.kata_txt.text;
_root[trailName].fader_color = new Color(_root[trailName]);
_root[trailName].fader_color.setRGB(0x008000);
_root[trailName].onEnterFrame = fadeTrail;
//
//Move the head character of the trail down by one character...
this.kata_txt.text = String.fromCharCode(Math.floor(Math.random()*26)+97);
this._y += 10;
// If the head character has reached the bottom, restart it at the top...
if (this._y>400) {
this._x = Math.round(Math.random()*700);
this._y = 0;
}
}
function fadeTrail() {
if (Math.random()>0.95) {
this.removeMovieClip();
}
if (trail>1000) {
trail = 100;
}
}
/*
MAIN PROGRAM INITIALIZATION
*/
trail = 100;
for (i=0; i<20; i++) {
newName = "char"+i;
attachMovie("katakana", newName, i);
_root[newName]._x = Math.round(Math.random()*550);
_root[newName]._visible = false;
_root[newName].onEnterFrame = dropStart;
}