View Full Version : Browser NOT LOADING MOVIE?? (loadMovie)
mindfriction
May 8th, 2003, 03:09 AM
I have a main movie which loads a movie into a target clip via
loadMovie("adminMenu.swf", "_root.target", "POST");
It works offfline, but when I publish the main movie as a html and view it through the browser the loadMovie function doesnt seem to work anymore!!?? i.e. it doenst load the swf's into the target clip.
brainy
May 8th, 2003, 03:50 AM
are you sure 'adminMenu.swf' is uploaded and in the same path as the main flash file? also, make sure the case of the characters is the same, in case your server is unix-based...
mindfriction
May 8th, 2003, 06:16 AM
Thanks, I ended up solving one of my problems. It turns out that taking out the "POST" paramater in my loadMovie() function fixed it. Strange I thought, but never the less it works, now all I have to deal with is browser caching. When I reload my movies with new vars from my mysql db (via php scripts) it seems they are stuck with the results of the previous values, no matter if I unload then reload the swf. I guess my browser is caching the swfs and when it see's that my movie asks to reload a movie of the same name it just loads the movie from its cache.
Brainy you know any decent ways to control a browsers cache? So that the browser doenst cache my movie?
kode
May 8th, 2003, 06:37 AM
http://www.kirupaforum.com/forums/showthread.php?s=&postid=112688#post112688
mindfriction
May 8th, 2003, 07:38 AM
OMG THIS THREAD IS MIND BOGGLING!!!!!
Thanks Kax :), :thumb:
But how would I exactly use this on my below AS?
Senoc is just a pure mastermind! Now I just have to figure out how to incorporate this noCache prototype...
MyMenu = new LoadVars();
MyMenu.load('http://venus.it.swin.edu.au/personal/rlee/se_draw_cfg/loadexamples.php');//make list of examples in db
MyMenu.onLoad = function(success)
{
trace("function MyMenu.onLoad");
if(success)
{
tracer = "inside mymenu success 'if(success)'";
loadMovie("adminMenu.swf".noCache(), _root.target);
//loadMovie("adminMenu.swf", 1, "POST");
}
else
{
tracer = "Failed to create menu";
}
}
Like so!?
brainy
May 8th, 2003, 07:42 AM
yup, that would work. essentially, you could just do:
loadMovie("adminMenu.swf?rand="+new Date().getTime(), _root.target)
mindfriction
May 8th, 2003, 07:47 AM
hmm yeah true brainy but im a big fan of the prototype and re -usability :D, So have u used caching control like this before? (for movies using loadMovie embedded in html's)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.