Flash, Asp, Variables, Help

Hi everybody

I am working on a site that uses a flash menu, and everytime the page loads the menu goes to a certain frame. The menu knows wich page is on by reading variables it receives from a asp page

So far so good

The problem is the site has about 200 pages, and I am using conditionals to make it work something like:

if(some asp var==x){
some_mc.some_mc.some_mc.gotoAndStop(2)
container.loadmovie(“somemovie.swf”)
bg._visible=true
}

I am sure there is an easier way to make this instead of writing 200 if´s, like a loop or something, but I am lost on how to make something like that, reading variables from asp and with that many movies being loaded into each page

Any could ive any ideias on how to solve this??

Thanks