[Needs Assistance] ScrollPane

I’m an ActionScript 1.0 coder and recently migrated to Flash 8.0
I’m making a dynamic menu and I found out that my old algo doesn’t work anymore on Flash 8.0

Here’s a sample code:


createEmptyMovieClip("mc_dummy", 100);
_root.onLoad = function() {
    for (var i = 0; i<10; ++i) {
        var $mc_item = _root.mc_dummy.attachMovie("mc_item", "item"+i, 100+i);
        $mc_item._y = 150*i;
        $mc_item.txt_num.text = "number " + (i+1);
    }
    myPane.setScrollContent(_root.mc_dummy);
};

Is anyone here who is knowledgeable of ActionScript 2.0 who can convert my simple script?

Thank you very much! :kir: