I am trying to create a slightly more complex switch statement; a statement where each case executes multiple actions. In the way I have it written below, the switch only executes the first line of each case. How can I make it so the statement executes more than one?
Code:switch(panoID){ case 0:trace(panoID); unloadMovie(_root.panoLoader.panosGoHere); loadMovie("panos/main-entrance.swf", _root.panoLoader.panosGoHere); panoLocation="main entrance"; map.hotSpotSelected._x=map.pano1._x; map.hotSpotSelected._y=map.pano2._y; break; case 1:trace(panoID); break; }


Reply With Quote
