Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/03/2010, 06:41
DyDPersonal
Invitado
 
Mensajes: n/a
Puntos:
Problemas al generar Menu dinamico con ActionScript (no muestra el estado de "SOBRE")

Llamo al la botonera Flash pasandole el nombre del archivo del cual quiero que obtenga los valores para los botones pero el problema que tengo es que no me muestra los diferentes estados del boton como el "Over(Sobre)" y precionado solo me muestra el estado normal "Reposo" del Clip de pelicula del boton... Si algien tiene alguna solucion se lo agradeceria!! Saludos!

Aqui os dejos los codigos...

Codigo ActionScript
Código PHP:
var opcionesXML:XML = new XML();
opcionesXML.ignoreWhite true;
opcionesXML.onLoad = function (sucess:Boolean)
{
    if (
sucess)
    {    var 
opciones:Array = this.firstChild.childNodes;
        for(
i=0;i<opciones.length;i++)
        {    
_root.attachMovie("mcBoton""boton_"+i_root.getNextHighestDepth());
            
_root["boton_"+i]._x 50;
            
_root["boton_"+i]._y 20 + (50);
            
_root["boton_"+i].texto opciones[i].childNodes[0].firstChild;
            
_root["boton_"+i].linkurl opciones[i].childNodes[1].firstChild;
            
_root["boton_"+i].onRelease = function()
            {    
getURL(this.linkurl"");}
        }
    }else
    {    
trace("Error al Leer archivo XML");}
}

opcionesXML.load(url); 
Codigo XML (Menus)
Código PHP:
<opciones>
    <
opcion>
        <
texto>Prueba</texto>
        <
linkurl>http://www.ejemplo.net/</linkurl>
    
</opcion>
    <
opcion>
        <
texto>Dadadada</texto>
        <
linkurl>http://www.ejemplo.com/</linkurl>
    
</opcion>
    <
opcion>
        <
texto>dasñdfsdhfgkshdf</texto>
        <
linkurl>http://www.ejemplo.com/</linkurl>
    
</opcion>
    <
opcion>
        <
texto>Probando</texto>
        <
linkurl>http://www.ejemplo.com/</linkurl>
    
</opcion>
</
opciones