Trouble with uiloader
Hi! I'm designing a site with 1 uiloader on the home page and all the information loads into the uiloader. Each frame's actionscript has a different ui source:
This is one frame:
stop();
UIloader.source = "news.swf";
UIloader.scaleContent = false;
The next would look like this:
UIloader.source = "aboutme.swf";
UIloader.scaleContent = false;
It has been working fine.
The problem now seems to be this: I've started to measure the loading percentage of each .swf and it's been working pretty well, up until I click the page that I've set as var newsload:String= "new.swf"; ....once I click the news page button, I can no longer click any other buttons because they all take me back to the news page. It makes sense to me.. I just don't know how to fix it. It seems that I've told flash the main page to load is "news.swf", so once I click and 'activate' it, it only loads news.swf into the uiloader no matter what the source in the actionscript on the other frames says.
This is what the news page script looks like:
stop();
UIsub.source = "newsA.swf";
UIsub.scaleContent = false;
//loader
var newsload:String ="newsA.swf";
var request:URLRequest = new URLRequest(newsload);
UIsub.addEventListener(Event.COMPLETE, completeFHandler);
UIsub.addEventListener(ProgressEvent.PROGRESS, progressFHandler);
UIsub.load(request);
function progressFHandler (event:ProgressEvent):void{
status_txt.text= "percentage Loaded: " + Math.round(event.target.percentLoaded);
}
function completeFHandler (event:Event):void{
status_txt.text = ""
}
PLEASE HELP! Thanks so much!