I have this page and I am trying to link to the /our-other-brands page and i have this actionscript code. All the links are working but the our other brands in the top nav...here is the line i cant seem to understand what its doing
var sectionName:String = me.currentTarget.name.substr(0, -6);
Here is all the code from the function below
// navigation button pressed
function navButtonPress(me:MouseEvent):void {
var sectionName:String = me.currentTarget.name.substr(0, -6);
trace(sectionName + ' button press');
// jump to section
switch(sectionName) {
case 'home':
navigateToURL(new URLRequest('/'), "_self");
break;
case 'products':
navigateToURL(new URLRequest('/petmate-products'), "_self");
break;
case 'our':
navigateToURL(new URLRequest('/our-other-brands'), "_self");
break;
case 'tips':
navigateToURL(new URLRequest('/category/tips-from-the-expert'), "_self");
break;
case 'news':
navigateToURL(new URLRequest('/news-press'), "_self");
break;
case 'about':
navigateToURL(new URLRequest('/about-petmate'), "_self");
break;
case 'retailers':
navigateToURL(new URLRequest('http://retail.petmate.com'), "_self");
break;
}
}
If anyone has any idea why the link is not working i would highly appreciate any help.