Soy nuevo en esto de Flash...Vi un menu que me gusto, desplegable, pero resulta que viendo el codigo, tengo algo asi
ilen = my_xml.childNodes.length;
while (i < ilen)
{
if (my_xml.childNodes[i].nodeName == "DSFM")
{
for (var x in my_xml.childNodes[i].attributes)
{
params[x] = my_xml.childNodes[i].attributes[x];
} // end of for...in
k = 0;
klen = my_xml.childNodes[i].childNodes.length;
while (k < klen)
{
_loc1 = my_xml.childNodes[i].childNodes[k];
if (_loc1.nodeName == "item")
{
++y;
for (l in _loc1.attributes)
{
if (l == "name")
{
params["Main" + y] = _loc1.attributes[l];
continue;
} // end if
if (l == "url")
{
params["URL" + y] = _loc1.attributes[l];
} // end if
} // end of for...in
_loc3 = 0;
sub = 0;
mlen = _loc1.childNodes.length;
while (_loc3 < mlen)
{
if (_loc1.childNodes[_loc3].nodeName == "item")
{
++sub;
for (var _loc2 in _loc1.childNodes[_loc3].attributes)
{
if (_loc2 == "name")
{
params[y + "-Item" + sub] = _loc1.childNodes[_loc3].attributes[_loc2];
continue;
} // end if
if (_loc2 == "url")
{
params[y + "-URL" + sub] = _loc1.childNodes[_loc3].attributes[_loc2];
continue;
} // end if
if (_loc2 == "target")
{
params[y + "-target" + sub] = _loc1.childNodes[_loc3].attributes[_loc2];
} // end if
} // end of for...in
} // end if
++_loc3;
} // end while
} // end if
++k;
} // end while
} // end if
++i;
} // end while
} // End of the function
xmlString = "<DSFM MainAlign=\"Left\" MainBorderColor=\"0x000000\" MainFillColor=\"0x0078F0\" CaptionGradient=\"true\" MainFillGradientColor=\"0x7DBEFF\" CaptionFocusGradient=\"true\" MainFillFocusGradientColor=\"0x000080\" MainFocusBold=\"true\" MainFocusUnderline=\"false\" MainGradientDirection=\"Vertical\" MainTextColor=\"0xFFFFFF\" MainTextFocusColor=\"0xFFFFFF\" MainTextPressColor=\"0xFFFFFF\" MainFontName=\"Verdana\" MainFontSize=\"8\" MainFontStyle=\"Bold\" CaptionHeight=\"20\" ItemIndent=\"20\" ItemTextColor=\"0xFFFFFF\" ItemTextFocusColor=\"0xFFFFFF\" ItemTextPressColor=\"0x999999\" ItemFontName=\"MS Sans Serif\" ItemFontSize=\"9\" ItemFontStyle=\"Plain\" ItemFocusBold=\"false\" ItemFocusUnderline=\"false\" ItemHeight=\"20\" align=\"Left\" SelectorBorderColor=\"0x000000\" SelectorBorderStyle=\"Line\" SelectorFillColor=\"0x008000\" SelectorGradient=\"false\" SelectorFillGradientColor=\"0x000000\" SelectorGradientDirection=\"Vertical\" ShowSelectorBorder=\"false\" ShowSelectorFill=\"true\" SelectedMain=\"1\" WordWrap=\"true\" AnimationSpeed=\"\" ArrowIndent=\"5\" DefaultTarget=\"_self\" HoverDelay=\"250\" HoverSensitive=\"false\" ShowArrow=\"true\" SoundMain=\"\" SoundItem=\"\" flashWidth=\"210\" flashHeight=\"330\"><item name=\"ESTADOS\" callback=\"onClick\"><item name=\"VERANO\" url=\"C:\\ESTADOS\\fscommand\\SUN.PDF\"callback=\"onClick\"/></item></DSFM>";
params = new LoadVars();
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.parseXML(xmlString);
makeFlashVars();
Pero esto me obliga a tener mis archivos siempre en una ruta especifica C:\, como puedo hacer para que me abra el archivo independientemente de la carpeta donde esten almacenados?
Agradeceria una respuesta, para ver si salgo de este lio...a todos gracias.