Hi guys,
new to Actionscript, and you guys have been a real help. So im hoping you can come through on this one. thanx in advance.
newbie problem: flash website with a frame that displays html. one or more of the html pages have embedded swf’s. using URLLoader to load the html. all pages work fine, for the FIRST CLICK. if I load an html that contains an embedded swf, then try to reload it, the swf glitches (like it does when you are trying to load a movie that is already loaded).
What I need:
a way to run a condition check to see if a URLLoader is currently loaded, and if so, unload it before loading the next url.(doesnt unload like a loaded swf ???)
a way to unload swf hosted in html page, unless I can just unload the page from the html frame and have it work that way.
function onError(e:IOErrorEvent)
{
trace(“Something wrong!”);
}
url_loader.load(page1req);
frame2 is like:
var page2req:URLRequest = new URLRequest(“page2.html”);
url_loader.load(page2req);
clicking back and forth, page 1 refreshes properly, page 2 load right the first time, but when clicking back to page2 after that gives me a glitch in the movie(blacked out) and the rest of the html works.