PengPhooie
06-29-2005, 05:38 AM
yeah, I've probably posted this 3 times now, so what... I still cant get this to work the way I need...
anyway, I have this site (a flash file) that loads an swf (a little thing of text and picture that gets updated) and whenever I updated it, it didn't show untill I cleared my cache... well that was before... now it loads the new ones, but it loads them even when it isn't new... which is bad for bandwidth/loadtimes...
so, I made a couple adjustments to the code I had which was:
loadMovie("banner.swf", spot);
complex eh? well, I later got some advice to make a random number that checks something or other... I really better just show it to you:
r = Math.random()*1000000000000
loadMovie("banner.swf?r="+r, spot);
that wasn't it exactly, but you get the point. it loaded every chance it got...
now I've taken a while and made a sort of thing that uses an external text file that I change that has version numbers and it loads into a movie clip in my main file. it works. yay. but I cant find a way to tell what the version variable is inside the file to be loaded... so, here is what I have:
ver = _root.ver.bannerversion
loadMovie("banner.swf?_root.ver="+ver, spot);
and inside my little thing to be loaded I have:
_root.ver=1
that is in the first frame on the frame itself...
now, I need to know what I'm doing wrong so I can stop wasting my money on a domain that has "coming soon" on it :(
thanks
anyway, I have this site (a flash file) that loads an swf (a little thing of text and picture that gets updated) and whenever I updated it, it didn't show untill I cleared my cache... well that was before... now it loads the new ones, but it loads them even when it isn't new... which is bad for bandwidth/loadtimes...
so, I made a couple adjustments to the code I had which was:
loadMovie("banner.swf", spot);
complex eh? well, I later got some advice to make a random number that checks something or other... I really better just show it to you:
r = Math.random()*1000000000000
loadMovie("banner.swf?r="+r, spot);
that wasn't it exactly, but you get the point. it loaded every chance it got...
now I've taken a while and made a sort of thing that uses an external text file that I change that has version numbers and it loads into a movie clip in my main file. it works. yay. but I cant find a way to tell what the version variable is inside the file to be loaded... so, here is what I have:
ver = _root.ver.bannerversion
loadMovie("banner.swf?_root.ver="+ver, spot);
and inside my little thing to be loaded I have:
_root.ver=1
that is in the first frame on the frame itself...
now, I need to know what I'm doing wrong so I can stop wasting my money on a domain that has "coming soon" on it :(
thanks