# Create a karoke with it!

**URL:** <https://forum.kirupa.com/t/create-a-karoke-with-it/189084>\
**Category:** Uncategorized\
**Created:** [May 13, 2006, 1:14pm UTC](https://forum.kirupa.com/t/create-a-karoke-with-it/189084 "2006-05-13T13:14:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Green](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@Green](https://forum.kirupa.com/u/Green)\
**Post date:** [May 13, 2006, 1:14pm UTC](https://forum.kirupa.com/t/create-a-karoke-with-it/189084/1 "2006-05-13T13:14:14Z")

</div>

# Hi all **Here a small script for everyone!!!** Create a karoke with it!!! create a textfield with instace “txtDisplay” on the root and link a mp3 file from library “mysound”

```auto

var list:Array = new Array();
list[0] = [1000, 'She'];
list[1] = [1400, 'was'];
list[2] = [1500, 'born'];
list[3] = [1600, 'in'];
list[4] = [1700, 'November'];
list[5] = [3000, '1963'];
list[6] = [6000, 'huxley'];
list[7] = [6000, 'died'];
var amount:Number = list.length;
for (var i = 0; i<amount; i++) {
    list* = list*.slice(1, 2);
}
function check() {
    if (snd.position>=list[0][0]) {
        trace(list.shift());
        _root.txtDisplay.text = list.shift();
    }
}
var iv:Number;
var snd:Sound = new Sound(this);
snd.onLoad = function(success:Boolean) {
    iv = setInterval(check, 500);
};
snd.loadSound('mysound', true);

```

========================================================================  
have fun  
**[COLOR=DarkOrange]Green[/COLOR]**
