I’m having an odd issue. In the authoring environment this code works perfectly. Because I’ve built deeplinking abilities into the site, I have to upload it to a testing environment on a ftp first to actually be able to use those links. When I do this, the for statement doesn’t fire. Everything else does though. So when the site tries to navigate there has been no deep link assigned and nothing happens. The navigation menu however still works. If I click a link, the for statement works fine. It seems to only happen when the site initially loads. On the initial load, the for statement gets skipped. I have no idea why its doing this. Any help?
function handleSWFAddress(e:SWFAddressEvent) {
var pageValue:String = e.value;
if (pageValue == '/') {
pageValue = '/home/';
}
for (var i:int=0; i < buttons.length; i++) {
var btn:MovieClip=buttons*;
if (pageValue != btn.deepLink) {
enableBtnProps(btn);
TweenMax.to(btn, 0.25,{tint:0xffffff});
} else {
disableBtnProps(btn);
TweenMax.to(btn, 0.25,{tint:0x5ca7ba});
whichCat.deepLink = btn.deepLink;
whichCat.src = btn.src;
whichCat.name = btn.name;
}
}
fadeLoader();
SWFAddress.setTitle('The Window People '+whichCat.deepLink);
}