PDA

View Full Version : Please help with code for delayed swf load



bayek
January 31st, 2004, 03:38 AM
Hi, here is the situation, I have the button that loads two swfs, one is the backround and the other is the news bar. However, I would like the news bar to load no sooner than the backround swf loads. I dont why but I thought this code would work - it doesn't. Any hints please?:)

on (release) {
loadMovie("films/news/news.swf",_root.content);
}
but1.onRelease = function() {
if (this._root.content != "films/news/news.swf") {
this._root.content= "films/news/news.swf";
this._news.loadMovie("films/news/newsscroll.swf",_root.news);
}
};

It would be even better if the newsscroller .swf loaded 2 secs after the news.swf is already on the stage, is that possible at all these days to do with Flash;)?

cheers and big thanks!

optimis
January 31st, 2004, 05:21 AM
if all you care about is the loading just have the background .swf load the newsbar.swf