var ECLIPSE_FRAME_NAME = "ContentViewFrame"; var eclipseBuild = false ; var liveDocsBaseUrl = "http://livedocs.adobe.com/flex/3"; var liveDocsBookName = "langref"; function findObject(objId){ if (document.getElementById) return document.getElementById(objId); if (document.all) return document.all[objId]; } function isEclipse(){ return eclipseBuild; } function configPage(){ setRowColorsInitial(true , "Property"); setRowColorsInitial(true , "Method"); setRowColorsInitial(true , "ProtectedMethod"); setRowColorsInitial(true , "Event"); setRowColorsInitial(true , "Style"); setRowColorsInitial(true , "SkinPart"); setRowColorsInitial(true , "SkinState"); setRowColorsInitial(true , "Constant"); if (isEclipse()) { if (window.name != "classFrame") { var localRef = _AN_Read_href("href", _AN_Read_location("location", window)).indexOf('?') != -1? _AN_Read_href('href', _AN_Read_location('location', window)).substring(0, _AN_Read_href('href', _AN_Read_location('location', window)).indexOf('?')): _AN_Read_href('href', _AN_Read_location('location', window)); localRef = localRef.substring(localRef.indexOf("langref/") + 8); if (_AN_Read_search("search", _AN_Read_location("location", window)) != "") localRef += ("#" + _AN_Read_search("search", _AN_Read_location("location", window)).substring(1)); _AN_Call_replace("replace", _AN_Read_location("location", window), baseRef + "index.html?" + localRef); return ; } else { setStyle(".eclipseBody", "display", "block"); if (_AN_Read_hash("hash", _AN_Read_location("location", window)) != "") _AN_Write_hash("hash", _AN_Read_location("location", window), false , _AN_Read_hash("hash", _AN_Read_location("location", window)).substring(1)); } } else if (window == top) { findObject("titleTable").style.display = ""; } else { findObject("titleTable").style.display = "none"; } showTitle(asdocTitle); } function loadFrames(classFrameURL, classListFrameURL){ var classListFrame = findObject("classListFrame"); if (classListFrame != null && classListFrameContent != '') _AN_Write_href('href', _AN_Read_location('location', classListFrame.document), false , classListFrameContent); if (isEclipse()) { var contentViewFrame = findObject(ECLIPSE_FRAME_NAME); if (contentViewFrame != null && classFrameURL != '') _AN_Write_href('href', _AN_Read_location('location', contentViewFrame.document), false , classFrameURL); } else { var classFrame = findObject("classFrame"); if (classFrame != null && classFrameContent != '') _AN_Write_href('href', _AN_Read_location('location', classFrame.document), false , classFrameContent); } } function showTitle(title){ if (!isEclipse()) top.document.title = title; } function loadClassListFrame(classListFrameURL){ if (parent.frames.classListFrame != null ) { _AN_Write_location('location', parent.frames.classListFrame, false , classListFrameURL); } else if (parent.frames.packageFrame != null ) { if (parent.frames.packageFrame.frames.classListFrame != null ) { _AN_Write_location('location', parent.frames.packageFrame.frames.classListFrame, false , classListFrameURL); } } } function gotoLiveDocs(primaryURL, secondaryURL, locale){ if (locale == "en-us") { locale = ""; } else { locale = "_" + locale.substring(3); } var url = liveDocsBaseUrl + locale + "/" + liveDocsBookName + "/index.html?" + primaryURL; if (secondaryURL != null && secondaryURL != "") url += ("&" + secondaryURL); _AN_Call_open("open", window, url, "mm_livedocs", "menubar=1,toolbar=1,status=1,scrollbars=1,resizable=yes"); } function findTitleTableObject(id){ if (isEclipse()) return parent.titlebar.document.getElementById(id); else if (top.titlebar) return top.titlebar.document.getElementById(id); else return document.getElementById(id); } function titleBar_setSubTitle(title){ if (isEclipse() || top.titlebar) findTitleTableObject("subTitle").childNodes.item(0).data = title; } function titleBar_setSubNav(showConstants, showProperties, showStyles, showSkinPart, showSkinState, showEffects, showEvents, showConstructor, showMethods, showExamples, showPackageConstants, showPackageProperties, showPackageFunctions, showInterfaces, showClasses, showPackageUse){ if (isEclipse() || top.titlebar) { findTitleTableObject("propertiesLink").style.display = showProperties? "inline": "none"; findTitleTableObject("propertiesBar").style.display = (showProperties && (showPackageProperties || showConstructor || showMethods || showPackageFunctions || showEvents || showStyles || showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("packagePropertiesLink").style.display = showPackageProperties? "inline": "none"; findTitleTableObject("packagePropertiesBar").style.display = (showPackageProperties && (showConstructor || showMethods || showPackageFunctions || showEvents || showStyles || showSkinPart || showSkinState || showConstants || showEffects || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("constructorLink").style.display = showConstructor? "inline": "none"; findTitleTableObject("constructorBar").style.display = (showConstructor && (showMethods || showPackageFunctions || showEvents || showStyles || showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("methodsLink").style.display = showMethods? "inline": "none"; findTitleTableObject("methodsBar").style.display = (showMethods && (showPackageFunctions || showEvents || showStyles || showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("packageFunctionsLink").style.display = showPackageFunctions? "inline": "none"; findTitleTableObject("packageFunctionsBar").style.display = (showPackageFunctions && (showEvents || showStyles || showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("eventsLink").style.display = showEvents? "inline": "none"; findTitleTableObject("eventsBar").style.display = (showEvents && (showStyles || showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("stylesLink").style.display = showStyles? "inline": "none"; findTitleTableObject("stylesBar").style.display = (showStyles && (showSkinPart || showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("SkinPartLink").style.display = showSkinPart? "inline": "none"; findTitleTableObject("SkinPartBar").style.display = (showSkinPart && (showSkinState || showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("SkinStateLink").style.display = showSkinState? "inline": "none"; findTitleTableObject("SkinStateBar").style.display = (showSkinState && (showEffects || showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("effectsLink").style.display = showEffects? "inline": "none"; findTitleTableObject("effectsBar").style.display = (showEffects && (showConstants || showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("constantsLink").style.display = showConstants? "inline": "none"; findTitleTableObject("constantsBar").style.display = (showConstants && (showPackageConstants || showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("packageConstantsLink").style.display = showPackageConstants? "inline": "none"; findTitleTableObject("packageConstantsBar").style.display = (showPackageConstants && (showInterfaces || showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("interfacesLink").style.display = showInterfaces? "inline": "none"; findTitleTableObject("interfacesBar").style.display = (showInterfaces && (showClasses || showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("classesLink").style.display = showClasses? "inline": "none"; findTitleTableObject("classesBar").style.display = (showClasses && (showPackageUse || showExamples))? "inline": "none"; findTitleTableObject("packageUseLink").style.display = showPackageUse? "inline": "none"; findTitleTableObject("packageUseBar").style.display = (showPackageUse && showExamples)? "inline": "none"; findTitleTableObject("examplesLink").style.display = showExamples? "inline": "none"; } } function titleBar_gotoClassFrameAnchor(anchor){ if (isEclipse()) _AN_Write_location("location", parent.classFrame, false , _AN_Read_location("location", parent.classFrame).toString().split('#')[0] + "#" + anchor); else _AN_Write_location("location", top.classFrame, false , _AN_Read_location("location", top.classFrame).toString().split('#')[0] + "#" + anchor); } function setMXMLOnly(){ if (getCookie("showMXML") == "false") { toggleMXMLOnly(); } } function toggleMXMLOnly(){ var mxmlDiv = findObject("mxmlSyntax"); var mxmlShowLink = findObject("showMxmlLink"); var mxmlHideLink = findObject("hideMxmlLink"); if (mxmlDiv && mxmlShowLink && mxmlHideLink) { if (mxmlDiv.style.display == "none") { mxmlDiv.style.display = "block"; mxmlShowLink.style.display = "none"; mxmlHideLink.style.display = "inline"; setCookie("showMXML", "true", new Date(3000, 1, 1, 1, 1), "/", _AN_Read_domain("domain", _AN_Read_location("location", document))); } else { mxmlDiv.style.display = "none"; mxmlShowLink.style.display = "inline"; mxmlHideLink.style.display = "none"; setCookie("showMXML", "false", new Date(3000, 1, 1, 1, 1), "/", _AN_Read_domain("domain", _AN_Read_location("location", document))); } } } function showHideInherited(){ setInheritedVisible(getCookie("showInheritedConstant") == "true", "Constant"); setInheritedVisible(getCookie("showInheritedProtectedConstant") == "true", "ProtectedConstant"); setInheritedVisible(getCookie("showInheritedProperty") == "true", "Property"); setInheritedVisible(getCookie("showInheritedProtectedProperty") == "true", "ProtectedProperty"); setInheritedVisible(getCookie("showInheritedMethod") == "true", "Method"); setInheritedVisible(getCookie("showInheritedProtectedMethod") == "true", "ProtectedMethod"); setInheritedVisible(getCookie("showInheritedEvent") == "true", "Event"); setInheritedVisible(getCookie("showInheritedStyle") == "true", "Style"); setInheritedVisible(getCookie("showInheritedSkinPart") == "true", "SkinPart"); setInheritedVisible(getCookie("showInheritedSkinState") == "true", "SkinState"); setInheritedVisible(getCookie("showInheritedEffect") == "true", "Effect"); } function setInheritedVisible(show, selectorText){ if (document.styleSheets[0].cssRules != undefined) { var rules = document.styleSheets[0].cssRules; for (var i = 0; i < _AN_Read_length("length", rules); i++ ){ if (rules[i].selectorText == ".hideInherited" + selectorText) rules[i].style.display = show? "": "none"; if (rules[i].selectorText == ".showInherited" + selectorText) rules[i].style.display = show? "none": ""; } } else { _AN_Call_addrule("addRule", document.styleSheets[0], ".hideInherited" + selectorText, show? "display:inline": "display:none"); _AN_Call_addrule("addRule", document.styleSheets[0], ".showInherited" + selectorText, show? "display:none": "display:inline"); } setCookie("showInherited" + selectorText, show? "true": "false", new Date(3000, 1, 1, 1, 1), "/", _AN_Read_domain("domain", _AN_Read_location("location", document))); setRowColors(show, selectorText); } function setRowColors(show, selectorText){ var rowColor = "#F2F2F2"; var table = findObject("summaryTable" + selectorText); if (table != null ) { var rowNum = 0; for (var i = 1; i < _AN_Read_length("length", table.rows); i++ ){ if (table.rows[i].className.indexOf("hideInherited") == -1 || show) { rowNum++ ; table.rows[i].bgColor = (rowNum % 2 == 0)? rowColor: "#FFFFFF"; } } } } function setRowColorsInitial(show, selectorText){ var rowColor = "#F2F2F2"; var table = findObject("summaryTable" + selectorText); if (table != null ) { var rowNum = 0; for (var i = 1; i < _AN_Read_length("length", table.rows); i++ ){ if (table.rows[i].className.indexOf("hideInherited") == -1 && show) { rowNum++ ; table.rows[i].bgColor = (rowNum % 2 == 0)? rowColor: "#FFFFFF"; } } } } function setStyle(selectorText, styleName, newValue){ if (document.styleSheets[0].cssRules != undefined) { var rules = document.styleSheets[0].cssRules; for (var i = 0; i < _AN_Read_length("length", rules); i++ ){ if (rules[i].selectorText == selectorText) { rules[i].style[styleName] = newValue; break ; } } } else { _AN_Call_addrule("addRule", document.styleSheets[0], selectorText, styleName + ":" + newValue); } }