View Full Version : back button problem!
falltimemusic
01-23-2006, 10:41 PM
I have been working on this site, and everything works great. I am loading in swf files using loadMovie().
The only problem, is that if you are on this site and you decide to type in another url like www.yahoo.com or something, then hit the back button to go back to it, the map doesn't load!
http://www.nobleimage.com/etran/
try it for youself... has anyone experienced this problem before?! I need a solution and fast!
please help!
Headshotz
01-24-2006, 01:57 AM
:confused:
Works normally...
Flash Gordon
01-24-2006, 02:00 AM
cache issues.
falltimemusic
01-24-2006, 03:44 AM
so what could be causing this caching problem? Maybe the fact that I have a php file that attached a random number to the end of the url of the swf file?
like so
function embedFlash()
{
$myNum = rand(); //
$myNum2 = rand();// ---> random numbers put together to stop caching
$myNum3 = rand();//
$bgcolor = "#ddece7"; //bg color for flash movie
$myWidth = "100%"; //flash width
$myHeight = "100%"; //flash height
$myFile = "map_ui.swf"; //flash file
$quality = "high"; //player quality
$name = "main"; //name parameter / ID tag for object
$allowScripts = "sameDomain"; //allow script access param
$align = "middle";
$myRand = "{$myNum}" . "{$myNum2}" . "{$myNum3}";
print ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' . $myWidth . '" height="' . $myHeight . '" id="' . $name . '" align="' . $align . '">'); print("\n");
print ('<param name="allowScriptAccess" value="' . $allowScripts . '" />'); print("\n");
print ('<param name="movie" value="' . $myFile . '?uniq=' . $myRand . '" />'); print("\n");
print ('<param name="quality" value="' . $quality . '" />'); print("\n");
print ('<param name="bgcolor" value="' . $bgcolor . '" />'); print("\n");
print ('<embed src="' . $myFile . '?uniq=' . $myRand . '" quality="' . $quality . '" bgcolor="' . $bgcolor . '" width="' . $myWidth . '" height="' . $myHeight . '" name="' . $name . '" align="' . $align . '" allowScriptAccess="' . $allowScripts . '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');print("\n");
print ('</object>');print("\n\n");
}
embedFlash();
maybe I need to stick to letting it cache?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.