Foros del Web » Creando para Internet » Flash y Actionscript »

sub sub menu xml as2

Estas en el tema de sub sub menu xml as2 en el foro de Flash y Actionscript en Foros del Web. Hola a todos necesito ayuda con un codigo, es un sitio hecho en flash as2 totalmente con xml tiene una navegacion con un submenu, lo ...
  #1 (permalink)  
Antiguo 05/01/2010, 15:15
 
Fecha de Ingreso: noviembre-2009
Ubicación: Monterrey
Mensajes: 37
Antigüedad: 14 años, 5 meses
Puntos: 0
sub sub menu xml as2

Hola a todos necesito ayuda con un codigo, es un sitio hecho en flash as2 totalmente con xml tiene una navegacion con un submenu, lo que quiero hacer es que el submenu al pasar el mouse me aparezca otro submenu.

Action Script 2
Código:
item_mc._visible = false;
item_mc.setMask(mask_mc);
bttnHeight = item_mc.bttn_mc._height;
bttnSpace = _parent._parent.bttnSpace;
tween = _parent._parent.tween;
tweenAlpha = _parent._parent.tweenAlpha;
maxHeight = _parent._parent.maxHeight;
buffer = item_mc.bttn_mc._height * 2.500000E+000;
destAlpha = 0;
item_mc_originY = 0;
bttn.onRollOver = function ()
{
    this._parent._parent.isSelected = this._parent._name;
    destAlpha = 100 + tweenAlpha;
    gotoAndPlay("rollOver");
};
bttn.onRollOut = bttn.onRollOut = function ()
{
    gotoAndPlay("rollOut");
};
bttn.onRelease = function ()
{
    _global.clickAction(this._parent);
};
this.onMouseMove = function ()
{
    if (this._xmouse > 0 && this._xmouse < this._width)
    {
        if (this._ymouse > 0 && this._ymouse < this._height)
        {
            ratio = this._ymouse / this._height;
            diff = item_mc._height - this._height + buffer;
            destY = Math.floor(-ratio * diff) + buffer / 2;
        } // end if
    } // end if
};
if (subNum > 0)
{
    this.onEnterFrame = function ()
    {
        if (item_mc._height > this._height)
        {
            item_mc._y = item_mc._y + Math.round((destY - item_mc._y) / tween);
            if (item_mc._y > item_mc_originY)
            {
                item_mc._y = item_mc_originY;
            }
            else if (item_mc._y < this._height - item_mc._height)
            {
                item_mc._y = this._height - item_mc._height;
            } // end else if
        }
        else
        {
            bg_mc._height = item_mc._height - bttn._y;
        } // end else if
        item_mc._alpha = item_mc._alpha + (destAlpha - item_mc._alpha) / tweenAlpha;
        if (item_mc._alpha <= 0)
        {
            item_mc._visible = false;
            destY = 0;
            item_mc._y = item_mc_originY;
        }
        else
        {
            item_mc._visible = true;
            if (!this.bg_mc.hitTest(_root._xmouse, _root._ymouse, true))
            {
                destAlpha = 0;
            } // end if
            if (_parent.isSelected != this._name)
            {
                destAlpha = 0;
            } // end if
        } // end else if
    };
} // end if

XML
Código:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<content>
    <settings>
        <logo X="5" Y="6">content/logo.png</logo>
        <footer><![CDATA[<a href="http://www.solucioneseureka.com" target="_blank"> 2009. site design by solucioneseureka.com</a>]]></footer>
        <menu X="260"/>
    </settings>
    <nav>
        <main Name="INICIO" Link="home.swf"/>
               <main Name="PROYECTOS" >
		<sub Name="Casas" Link="media_gallery/proyectos_casas/media_gallery.swf" toLoad="media_gallery/proyectos_casas/content_image.xml"/>
            <sub Name="Casas II" Link="media_gallery/proyectos_casas/media_gallery.swf" toLoad="media_gallery/proyectos_casas/content_image2.xml"/>
            <sub Name="Casas III" Link="media_gallery/proyectos_casas/media_gallery.swf" toLoad="media_gallery/proyectos_casas/content_image3.xml"/>
		<sub Name="Departamentos" Link="media_gallery/proyectos_departamentos/media_gallery.swf" toLoad="media_gallery/proyectos_departamentos/content_image.xml"/>
            <sub Name="Departamentos II" Link="media_gallery/proyectos_departamentos/media_gallery.swf" toLoad="media_gallery/proyectos_departamentos/content_image2.xml"/>
		<sub Name="Comercial" Link="media_gallery/proyectos_comercial/media_gallery.swf" toLoad="media_gallery/proyectos_comercial/content_image.xml"/>
	      <sub Name="Comercial II" Link="media_gallery/proyectos_comercial/media_gallery.swf" toLoad="media_gallery/proyectos_comercial/content_image2.xml"/>
		<sub Name="Corporativo" Link="media_gallery/proyectos_corporativo/media_gallery.swf" toLoad="media_gallery/proyectos_corporativo/content_image.xml"/>
            <sub Name="Corporativo II" Link="media_gallery/proyectos_corporativo/media_gallery.swf" toLoad="media_gallery/proyectos_corporativo/content_image2.xml"/>
		<sub Name="Educativo" Link="media_gallery/proyectos_educativo/media_gallery.swf" toLoad="media_gallery/proyectos_educativo/content_image.xml"/>
            <sub Name="Cultural"  Link="media_gallery/proyectos_cultural/media_gallery.swf" toLoad="media_gallery/proyectos_cultural/content_image.xml"/>
            <sub Name="Concursos" Link="media_gallery/proyectos_concursos/media_gallery.swf" toLoad="media_gallery/proyectos_concursos/content_image.xml"/>
		<sub Name="Industrial" Link="media_gallery/proyectos_industrial/media_gallery.swf" toLoad="media_gallery/proyectos_industrial/content_image.xml"/>
		<sub Name="Interiorismo" Link="media_gallery/proyectos_interiorismo/media_gallery.swf" toLoad="media_gallery/proyectos_interiorismo/content_image.xml"/>
		<sub Name="Urbanismo" Link="media_gallery/proyectos_urbanismo/media_gallery.swf" toLoad="media_gallery/proyectos_urbanismo/content_image.xml"/>
            <sub Name="Urbanismo II" Link="media_gallery/proyectos_urbanismo/media_gallery.swf" toLoad="media_gallery/proyectos_urbanismo/content_image2.xml"/>
            <sub Name="Urbanismo III" Link="media_gallery/proyectos_urbanismo/media_gallery.swf" toLoad="media_gallery/proyectos_urbanismo/content_image3.xml"/>
		<sub Name="Especialidades" Link="media_gallery/proyectos_especialidades/media_gallery.swf" toLoad="media_gallery/proyectos_especialidades/content_image.xml"/>
           </main>
	  <main Name="EQUIPO" >
	      <sub Name="Team" Link="team_tds.swf"/>
		<sub Name="Asociados" Link="team.swf"/>
		<sub Name="Colaboradores" Link="team2.swf"/>
             </main>
        <main Name="BLOG" Link="http://newslenoir-asociados.blogspot.com/"/>
        <main Name="DATOS" >
		<sub Name="Conferencias" Link="conferencias.swf"/>
		<sub Name="Exhibiciones" Link="exhibiciones.swf"/>
		<sub Name="Publicaciones" Link="publicaciones.swf" />
	      <sub Name="Reconociminetos" Link="reconocimientos.swf" />
             </main>
        <main Name="CONTACTO" Link="contact.swf"/>
        <main Name=" Acesso FTP" />
    </nav>
</content>

Dejo le fla.

www.zeandesign.net/preview.fla

Tengo meses con este problema.
  #2 (permalink)  
Antiguo 05/01/2010, 19:40
Avatar de zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: sub sub menu xml as2

pidele a un moderador que mueva tu tema al foro pertinente porque nada tiene que ver con HTML, ni siquiera el documento xml. en el foro pertinente puedes obtener mas respuestas que aqui.
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.
  #3 (permalink)  
Antiguo 07/01/2010, 09:13
Avatar de webosiris
Moderador egiptólogo
 
Fecha de Ingreso: febrero-2002
Ubicación: Luxor, Egipto
Mensajes: 10.725
Antigüedad: 22 años, 2 meses
Puntos: 998
movido desde html a flash
__________________
Pasamos tus PSD a HTML

Pobre del que lo sabe todo, porque no tiene nada más que aprender ni razón para vivir. -

Etiquetas: xml
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:09.