Ok i’ve done a bit of an update but im still having problems. I’ll try and outline everything.

Home.swf (relevant code):
PHP Code:
box2Hit_mc.onRelease = function () {
    
removeCurrentPage(currentPage); //remove current page
    
currentPage "portfolio";
    
loadExternalSwf("portfolio");
    
portfolioLoader_mc.loadPortfolioSelection("work2"); //show the work 2 in the portfolio
}

function 
loadExternalSwf(page:String):Void {
    
mcLoader.loadClip(page ".swf",page "Loader_mc");
    
this[page "_mc"].gotoAndStop(7);
    
extAnimMask_mc.visible false;

Portfolio.swf (relevant code):
PHP Code:
function loadPortfolioSelection(selectedWork:String):Void {
    
currentPage selectedWork;
    
loadProject(selectedWork);
    
trace("loadPortfolioSelection Executed");
}

function 
loadProject(page:String):Void {
    for(var 
i=1i<=numProjectsi++){
        if(
currentPage == "work"+i){
            
_root["work"+i+"Loader_mc"]["mainMask_mc"].gotoAndPlay("_out");
            
_root["work"+i+"Loader_mc"]["viewPrevious_mc"].gotoAndPlay("_off");
            
_root["work"+i+"Loader_mc"]["viewNext_mc"].gotoAndPlay("_off");
            
_root["work"+i+"Loader_mc"].clearAnimInterval();
            
trace(i);
        }
    }    
    
this[currentPage "_mc"].gotoAndPlay("_out");         //remove highlighting of nav text
    
this[currentPage "Text_mc"].gotoAndPlay("_out");   //remove text
    
mcLoader.loadClip(page ".swf",page "Loader_mc"); //load new project
    
this[page "Text_mc"].gotoAndPlay("_in");             //bring new text in
    
this[page "_mc"].gotoAndStop(7);                     //highlight nav text
    
currentPage page;

Now here’s the problem. On the first box2Hit_mc.onRelease() the portfolio section loads but the work is not selected and using the trace command i found that loadPortfolioSelection() is not being called at all. However, if i go back to the homepage and click the same box again, loadPortfolioSelection() is executed (trace shows up), but the work is not shown, so loadProject is not working correctly. I then test loadProject using trace (inside the if statement in the for loop) and it shows the correct value has been passed from home.swf to portfolio.swf (page = “work2”). However for some reason the work2.swf never loads, the new text does not come in, and the nav wont highlight (so basically nothing changes).

This has been annoying me for a while now. I would be thankful for any help anyone can provide. Thx