Hi all, can anyone spot any errors in this code? I’m trying to make the movie ‘jump’ straight to one particular point in the embedded movieclip. It’s a Flash nav for an HTML site by the way and the (var varPageLocation = ‘About’
part is just my way of testing to see if it’ll go straight to that part.
stop();
var varPageLocation;
var varPageLocation = ‘About’;
switch (varPageLocation) {
case ‘Home’ :
gotoAndPlay(‘Home’);
Headers.gotoAndPlay(“Header_HomeMC”);
break;
case ‘About’ :
gotoAndPlay(‘About’);
Headers.gotoAndPlay(“Header_AboutMC”);
break;
case ‘Advertising’ :
SubMenuMC.gotoAndPlay(“Advertising”);
Headers.gotoAndPlay(“Header_AdvertisingMC”);
break;
case ‘Branding’ :
SubMenuMC.gotoAndPlay(“Branding”);
Headers.gotoAndPlay(“Header_BrandingMC”);
break;
default :
stop();
}