Hi,
I have been working on a web site that I have just recently tested and noticed
a wierd error:
The playback appears fine in IE however in Firefox the scripted animated
elements do ot apper correctly.
Please visit the site in IE and Firefox:
http://www.attila.reinhardt.com/clients/mfcardamone/home.htm
Then click on Herbarium Specimens and select any of the pictures. When the
large image loads I have created a script that adds up the width of the image
and the position of the image and also adds 15 pixels to it in order to
position the text description fields accordingly.
Viewing it on Windows XP in IE 6 works while in Firefox 2 it does not display
the positioning correctly. Also in Firefox the included Fuse scripts does not
work while in IE they display fine.
Thank you for your help in advance, Attila
I have attched the code for your review:
//Loading Large Image:
//
containerMC._alpha = 0;
TitleTxt._alpha = 0;
TypeTxt._alpha = 0;
SizeTxt._alpha = 0;
but_Back._alpha = 0;
//
TitleTxt.text = workName;
TypeTxt.text = workType;
SizeTxt.text = workSize;
//
startLoading(selectedPicture);
//
//loading contents and transitions functions:
function startLoading(whichImage) {
loadMovie(whichImage, "containerMC");
_root.onEnterFrame = function() {
infoLoaded = containerMC.getBytesLoaded();
infoTotal = containerMC.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = "Loading Image "+percentage+" %";
if (percentage>=100) {
//positioning texts to right of the image:
TitleTxt._x = (containerMC._x+containerMC._width)+15;
TypeTxt._x = (containerMC._x+containerMC._width)+15;
SizeTxt._x = (containerMC._x+containerMC._width)+15;
but_Back._x = (containerMC._x+containerMC._width)+15;
//setting alpha values to default:
TitleTxt.alphaTo(100, 0.5, "linear", null, null);
TypeTxt.alphaTo(100, 0.5, "linear", null, null);
SizeTxt.alphaTo(100, 0.5, "linear", null, null);
but_Back.alphaTo(100, 0.5, "linear", null, null);
containerMC.alphaTo(100, 0.5, "linear", null, null);
//
delete this.onEnterFrame;
infoField._visible = false;
}
};
}
//
stop();