- Home
- Categorie
- Digital Marketing
- Grafica, Visual Design & UX
- come modificare codice flash?
-
come modificare codice flash?
salve,
vorrei poter inserire il <![CDATA[bla,bla,]]>
IN UN XML PER FORMATTARE IL TESTO:
mA come fare a modificare questo codice flash per poterlo far funzionare?:if (_global.hasLoaded_XML == undefined)
{
_global.hasLoaded_XML = true;
Object.prototype.handleXML = function (xmlNode, xmlPath, doneFunc)
{
xmlNode.ignoreWhite = true;
xmlNode.onLoad = function (success)
{
addTier = function (currentPath)
{
for (var _loc2 in currentPath.attributes)
{
currentPath[_loc2] = currentPath.attributes[_loc2];
} // end of for...in
for (var _loc2 in currentPath.childNodes)
{
if (currentPath.childNodes[_loc2].childNodes.length >= 0)
{
addTier(currentPath.childNodes[_loc2]);
} // end if
currentPath[currentPath.childNodes[_loc2].nodeName + _loc2] = currentPath.childNodes[_loc2];
currentPath[currentPath.childNodes[_loc2].nodeName] = currentPath.childNodes[_loc2];
} // end of for...in
};
addTier(xmlNode);
doneFunc();
};
xmlNode.load(xmlPath);
};
Object.prototype.set_nodeText = function (textPass)
{
return (textPass);
};
Object.prototype.get_nodeText = function ()
{
return (this.firstChild.nodeValue);
};
Object.prototype.addProperty("nodeText", Object.prototype.get_nodeText, Object.prototype.set_nodeText);
ASSetPropFlags(Object.prototype, ["get_nodeText", "set_nodeText", "nodeText"], 1);
} // end if<<
grazie a un eventuale mago generoso,monica