Random Loader in Flash 5

I am trying to make a random image loader for a banner on a web page. I am using flash 5. I know how to write the script for a random loader in flash mx; however, the “switch” command will not copy over to flash 5. Help!!! I have no clue on how to accomplish this effect in flash 5.