Ciao a tutti,
con questo script creo una gallery di immagini (1.jpg, 2.jpg...) che vengono pescate random da una apposita cartella:
Con questo tag richiamo il filmato in pagina:codice:Stage.align = "TL"; Stage.scaleMode = "noScale"; Stage.showMenu = false; function shuffleArray (a:Array):Array { var _length:Number = a.length; var mixed:Array = a.slice (); var rn:Number = 0; var it:Number = 0; var el; for (it=0; it<_length; it++) { el = mixed[it]; rn = Math.floor (Math.random ()*_length); mixed[it] = mixed[rn]; mixed[rn] = el; } return mixed; } var a:Array = []; for (var i:Number = 1; i<=15; i++) { a.push ('img/gallery/'+i+'.jpg'); } var b:Array = shuffleArray (a); var m:MovieClip = this.createEmptyMovieClip ("m", 1); var s:SlideShow = new SlideShow (m, b, 5);
Il problema è che quando sostituisco con nuove immagini quelle già presenti nella cartella 'img/gallery/', in IE (qualsiasi versione) continuano a scorrere le vecchie immagini, anche se svuoto la cache, mentre in firefox o safari le nuove immagini appaiono correttamente e le vecchie spariscono. Come è possibile???codice:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="300"> <param name="movie" value="gallery.swf"> <param name="quality" value="high"> <embed src="gallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="300"></embed> </object>
![]()
![]()
![]()

Rispondi quotando


