# Website problem

**URL:** <https://forum.kirupa.com/t/website-problem/203179>\
**Category:** Uncategorized\
**Created:** [October 8, 2006, 8:53pm UTC](https://forum.kirupa.com/t/website-problem/203179 "2006-10-08T20:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohyunalesca](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@ohyunalesca](https://forum.kirupa.com/u/ohyunalesca)\
**Post date:** [October 8, 2006, 8:53pm UTC](https://forum.kirupa.com/t/website-problem/203179/1 "2006-10-08T20:53:28Z")

</div>

To put it simply, the photo gallery on this site works fine on a PC but not on a MAC computer. The pictures load initially when I click the corresponding thumbnail… but when I try to load that same picture again, nothing shows up at all. I have to clear the cache in order to get it to show up again. Any suggestions?

Link to SWF: [http://www.fileden.com/files/21184/site/Site.swf](http://www.fileden.com/files/21184/site/Site.swf)

Link to XML file: [http://www.fileden.com/files/21184/site/gallery.xml](http://www.fileden.com/files/21184/site/gallery.xml)

As seen on an HTML page: [http://www.fileden.com/files/21184/site/Main.html](http://www.fileden.com/files/21184/site/Main.html)

> stop();  
> // [http://laco.wz.cz/tween/?page=download](http://laco.wz.cz/tween/?page=download)  
> #include “lmc\_tween.as”  
> //tweentype\_border: (see again laco’s site for other tweentypes)  
> tweentype\_resize = “easeOutBounce”;  
> //tweentype for pic fade out:  
> tweentype\_fadeOut = “easeInSine”;  
> //tweentype used for pic fade in:  
> tweentype\_fadeIn = “easeInSine”;  
> //change the speed of the resizing border and the picfades(1 = one second)  
> speed\_resize = 0.9;  
> speed\_fadeOut = 0.4;  
> speed\_fadeIn = 0.4;  
> //creating the border:  
> this.createEmptyMovieClip(‘border’, 3);  
> with (this.border) {  
> lineStyle(0.1, 0x000000);  
> \_x = 200;  
> \_y = 350;  
> beginFill();  
> moveTo(-100, -100);  
> lineTo(100, -100);  
> lineTo(100, 100);  
> lineTo(-100, 100);  
> lineTo(-100, -100);  
> endFill();  
> }  
> containerMC.\_alpha = 0;  
> picinfo.\_alpha = 0;  
> containerMC.swapDepths(2);  
> var pArray = new Array();  
> var tArray = new Array();  
> MovieClip.prototype.loadPic = function(pic) {  
> cur = pic;  
> this.loadMovie(pArray[pic]);  
> this.\_parent.onEnterFrame = function() {  
> var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();  
> bar.\_visible = 1;  
> per = Math.round((l/t)_100);  
> if (t == l && containerMC.\_width\>0 && containerMC.\_height\>0) {  
> var w = containerMC.\_width, h = containerMC.\_height;  
> resizeMe(w, h);  
> bar.\_visible = 0;  
> picinfo.info.text = tArray[pic];  
> delete this.onEnterFrame;  
> } else {  
> bar.\_width = per;  
> picinfo.info.text = per+" % loaded";  
> }  
> };  
> };  
> function resizeMe(w, h) {  
> //border tween:  
> border.tween([“\_width”, “\_height”], [w, h], speed\_resize, tweentype\_resize);  
> //pic and picinfo fade in:  
> containerMC.alphaTo(100, speed\_fadeIn, tweentype\_fadeIn, speed\_resize);  
> picinfo.alphaTo(100, speed\_fadeIn, tweentype\_fadeIn, speed\_resize);  
> //pic position:  
> containerMC.\_x = border.\_x-containerMC.\_width/2;  
> containerMC.\_y = border.\_y-containerMC.\_height/2;  
> // make navigation, previousbutton,nextbuttonmove and picinfo tween along with border:  
> nav.tween([“\_x”, “\_y”], [border.\_x-containerMC.\_width/2, containerMC.\_y+containerMC.\_height+10], speed\_resize, tweentype\_resize);  
> prevb.tween([“\_x”, “\_y”], [border.\_x-containerMC.\_width/2, containerMC.\_y-5], speed\_resize, tweentype\_resize);  
> nextb.tween([“\_x”, “\_y”], [border.\_x+containerMC.\_width/2, containerMC.\_y-5], speed\_resize, tweentype\_resize);  
> exitb\_mc.tween([“\_x”, “\_y”], [border.\_x-containerMC.\_width/45, containerMC.\_y-10], speed\_resize, tweentype\_resize);  
> picinfo.tween([“\_x”, “\_y”], [border.\_x-containerMC.\_width/100, containerMC.\_y-20], speed\_resize, tweentype\_resize);  
> }  
> //loading pics and text:  
> var gallery\_xml = new XML();  
> gallery\_xml.ignoreWhite = true;  
> gallery\_xml.onLoad = function(success) {  
> if (success) {  
> var gallery = this.firstChild;  
> gallery\_txt.text = gallery.attributes.info;  
> for (var i = 0; i\<gallery.childNodes.length; i++) {  
> tArray.push(gallery.childNodes_.attributes.title);  
> pArray.push(gallery.childNodes\*.attributes.source);  
> }  
> containerMC.loadPic(0);  
> } else {  
> title\_txt.text = “Error!”;  
> }  
> };  
> gallery\_xml.load(“gallery.xml”);  
> //fade out pic and picinfo:  
> function fadeOut(pic) {  
> containerMC.alphaTo(0, speed\_fadeOut, tweentype\_fadeOut, 0, {scope:containerMC, func:containerMC.loadPic, args:[pic]});  
> picinfo.alphaTo(0, speed\_fadeOut, tweentype\_fadeOut);  
> }  
> //previous and next buttons:  
> prevb.onRelease = function() {  
> cur\>0 ? cur-- : cur=pArray.length-1;  
> fadeOut(cur);  
> };  
> nextb.onRelease = function() {  
> cur\<pArray.length-1 ? cur++ : cur=0;  
> fadeOut(cur);  
> };

Each of the thumnbails has this code assigned to each (only the 0 changes)

> on (release) {  
> if (\_parent.cur == 0) {  
> trace(“same pic!”);  
> } else {  
> this.\_parent.fadeOut(0);  
> }  
> }  
> on (rollOver) {  
> overtxt.text = this.\_parent.tArray[0];  
> }  
> on (rollOut) {  
> overtxt.text = “”;  
> }
