Transitions between external swfs tutorial

Hi, I love this site, have learnt a lot from here. Have come across a tutorial - transitions between external swfs by Voetsjoeba. This is in AS1 and MX 2004. The AS on the main buttons is something like this-

on (release) {
if (_root.currMovie == undefined) { _root.currMovie = “main”; container.loadMovie(“main.swf”); } else if (_root.currMovie != “main”) { if (container._currentframe >= container.midframe) { _root.currMovie = “main”; container.play(); } } }

Have been trying this out in Flash 8 - AS2. Unfortunately it is not working perfectly. Can someone please help me with an updated version of this tutorial in Flash 8? I need this to work in Flash 8- with AS2 as all my other files, my external swfs have been created in Flash 8 with AS2. Can anyone here please help with this? I would really appreciate it.

Thanks a lot in advance-