Actionscript doesn't stop when going to next scene?

Hello,

I’m working on a school project and now I need a little help.
I put an actionscript to make a “matrix effect” on the timeline, but it won’t stop playing. It’s just repeating over and over again. Even when I’m going to a next frame. Is there a way to stop the script from playing?

This is the code from the “matrix effect”:

for (i=0; i<=463; i++) {
_root.attachMovie(“digit”,“digit”+i,i);
this[“digit”+i].the_depth = i;
}

and the digit movieclip has this code:
// --------------------------------------
// created by Adrian C. www.adrianTNT.com
// --------------------------------------
//
var text_array:Array = Array(“0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “l”, “m”, “n”, “o”, “p”, “<”, “>”, “!”, “`”, “@”, “#”, “$”, “%”, “^”, “&”, "", “(”, “)”, “-”, “+”, “|”, “/”, “=”, “_”, “,”, “[”, “]”, “{”, “}”, “:”, “;”);
//var text_array:Array = Array(“0”, “1”);
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-1)];
this._y = random(Stage.height-this._height);
this.speed = random(8)+8;
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(0x009999, rand_scale+1, 10, 10, 3);
var filterArray:Array = new Array();
filterArray.push(filter);
//
var filter:BlurFilter = new BlurFilter((80-rand_scale)/15, (80-rand_scale)/15);
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;
}
};