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.


