View Full Version : mac browsers not displaying content
alpharaven
December 21st, 2006, 12:28 PM
I have a navigation that loads an XML document and creates a menu from it. The problem that I am having is that this content does not show on a Mac but it shows fine on a PC. Would anyone know why this is happening.
:?)
simplistik
December 22nd, 2006, 02:25 PM
i wish i was psychic... but i'm not. some sort of code would be helpful
Stratification
December 22nd, 2006, 02:28 PM
Which Mac browsers? Which PC browsers? And yes, what he said, code is essential.
alpharaven
December 22nd, 2006, 02:47 PM
hahaha....Sorry about that. Here is the code for the XML
var sectionname = "Asia";
this.section.htmlText = "<b>Asia</b>";
//
reg = new TextFormat ();
reg.align = "left";
reg.color = 0x00415F;
this.onEnterFrame = section.setTextFormat (reg);
//-----
item_spacing = 5;
item_count =0;
function CreateMenu (menu_xml) {
url_link = [];
link_name = [];
xmlNode = menu_xml.firstChild;
total = menu_xml.firstChild.childNodes;
for (i=0; i<total.length; i++) {
if (total[i].attributes.type == sectionname) {
link_name[i] = xmlNode.childNodes[i].attributes.txt;
url_link[i] = xmlNode.childNodes[i].attributes.link;
createMovie (url_link[i], link_name[i]);
item_count++;
}
}
}
cols = 1;
function createMovie (url, link) {
item_mc = menu_mc.attachMovie ("menu_item", "item"+item_count, item_count);
/////---------------------------------------
var b = menu_mc.getBounds (_root);
if (item_count>=b) {
item_mc._x = ((item_count%cols)*(item_mc._width+5));
item_mc._y = Math.floor (item_count/cols)*(item_mc._height-item_spacing);
} else {
item_mc._y = item_count/item_spacing;
}
/////---------------------------------------
item_mc.itemTxt.htmlText = link;
over = new TextFormat ();
over.color = 0x487b39;
over.underline = true;
/////---------------------------------------
out = new TextFormat ();
out.color = 0x00415F;
out.underline = false;
/////---------------------------------------
item_mc.onRollOver = function () {
this.itemTxt.setTextFormat (over);
delete this.reset()
};
item_mc.onRollOut = function () {
this.itemTxt.setTextFormat (out);
};
item_mc.onRelease = function () {
getURL (+url, "_self");
};
}
menu_xml = new XML ();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function (success:Boolean) {
if (success) {
CreateMenu (this);
} else {
trace ("Error loading XML file");
}
};
menu_xml.load ("menu.xml");
Also here is the link:
http://beta.alpharaven.com/inquira/smallNav.html
The text that I am having an issue with is the text that appears when the boxes are fully extended.Thanks and Happy Holidays:?)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.