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
Link to XML file: http://www.fileden.com/files/21184/site/gallery.xml
As seen on an HTML page: http://www.fileden.com/files/21184/site/Main.html
stop();
// 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) { website problem [Archive] - Dynamic Drive Forums:: [Archive] website problem Other. But when I view the website on my laptop then the tekstline "welkom op de website van spartacus korfbal club" flikkers http://www.dynamicdrive.com/forums/archive/index.php/t-2218.htmlHOME |
//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; Here's my website problem (sorry for double post!) - HTML Help Central:: Here's my website problem (sorry for double post!) Hi there! (Member Introductions) http://www.htmlhelpcentral.com/messageboard/showthread.php?t=16938HOME |
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
tArray.push(gallery.childNodes[i].attributes.title);
pArray.push(gallery.childNodes[i].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
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 = "";
}
Can mac users please look at the photo gallery on my website please! The full size image won't load at random times. Any suggestions?
Your site is really confusing... change your navigation. thats all I can say because I don't know what yo are talking about.
The photo gallery is acting up on a macintosh computerr but not on a PC. I was asking if anyone knew how to remedy that.
bump :/
Anyone? Please! :thumb:
Your site is really confusing... change your navigation. thats all I can say because I don't know what yo are talking about.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|