please help: my website does not display properly in firefox
(note) works fine clientside
i'm totally new here really need debugging website. problem have flash file loads xml file display pictures. basicallly gallery. works in ie not firefox , can't understand why.
here offending pages 3dart page | print page
as can see display fine in ie. try in mozilla firefox , server hangs. here actionscript .fla:
function loadxml(loaded) {
if (loaded) {
xmlnode = this.firstchild;
image = [];
description = [];
total = xmlnode.childnodes.length;
(i=0; i<total; i++) {
image = xmlnode.childnodes.childnodes[0].firstchild.nodevalue;
description = xmlnode.childnodes.childnodes[1].firstchild.nodevalue;
}
firstimage();
} else {
content = "file not loaded!";
}
}
xmldata = new xml();
xmldata.ignorewhite = true;
xmldata.onload = loadxml;
xmldata.load("freelance.xml");
/////////////////////////////////////
listen = new object();
listen.onkeydown = function() {
if (key.getcode() == key.left) {
previmage();
} else if (key.getcode() == key.right) {
nextimage();
}
};
key.addlistener(listen);
previous_btn.onrelease = function() {
previmage();
};
next_btn.onrelease = function() {
nextimage();
};
/////////////////////////////////////
p = 0;
this.onenterframe = function() {
filesize = picture.getbytestotal();
loaded = picture.getbytesloaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextimage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadmovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function previmage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadmovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstimage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadmovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
stop();
if me debug appreciate this, i'm not code. i'll give source files @ if need be, i'm desperate! thanks
i'm totally new here really need debugging website. problem have flash file loads xml file display pictures. basicallly gallery. works in ie not firefox , can't understand why.
here offending pages 3dart page | print page
as can see display fine in ie. try in mozilla firefox , server hangs. here actionscript .fla:
function loadxml(loaded) {
if (loaded) {
xmlnode = this.firstchild;
image = [];
description = [];
total = xmlnode.childnodes.length;
(i=0; i<total; i++) {
image = xmlnode.childnodes.childnodes[0].firstchild.nodevalue;
description = xmlnode.childnodes.childnodes[1].firstchild.nodevalue;
}
firstimage();
} else {
content = "file not loaded!";
}
}
xmldata = new xml();
xmldata.ignorewhite = true;
xmldata.onload = loadxml;
xmldata.load("freelance.xml");
/////////////////////////////////////
listen = new object();
listen.onkeydown = function() {
if (key.getcode() == key.left) {
previmage();
} else if (key.getcode() == key.right) {
nextimage();
}
};
key.addlistener(listen);
previous_btn.onrelease = function() {
previmage();
};
next_btn.onrelease = function() {
nextimage();
};
/////////////////////////////////////
p = 0;
this.onenterframe = function() {
filesize = picture.getbytestotal();
loaded = picture.getbytesloaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextimage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadmovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function previmage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadmovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstimage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadmovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
stop();
if me debug appreciate this, i'm not code. i'll give source files @ if need be, i'm desperate! thanks
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment