<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Flash MX - Menu (Botón con estado activo)</title>
	<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 03:09:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-6000</link>
		<pubDate>Sun, 09 Mar 2008 21:13:40 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-6000</guid>
					<description>Hola,

modifica tu array asi:

[AS]
menu[1] = {titulo:"Opción 1", pelicula:"pagina.html"};
[/AS]

y para el evento onRelease substituye:

[AS]
holder_mc.loadMovie(this.pelicula);
[/AS]

por

[AS]
getURL(this.pelicula)
[/AS]

saludos.</description>
		<content:encoded><![CDATA[<p>Hola,</p>
<p>modifica tu array asi:</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">menu</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span>titulo:<span style="color: #ff0000;">"Opción 1"</span>, pelicula:<span style="color: #ff0000;">"pagina.html"</span><span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>y para el evento onRelease substituye:</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">holder_mc.<span style="color: #0066CC;">loadMovie</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">pelicula</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>por</p>
<div class="igBar"><span id="lactionscript-3"><a href="#" onclick="javascript:showPlainTxt('actionscript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-3">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">pelicula</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>saludos.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Isabel</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5997</link>
		<pubDate>Fri, 07 Mar 2008 22:10:58 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5997</guid>
					<description>Hola solo quisiera saber como se puede poner un getUrl para cada elemento del menu... y la verdad me urge!!!

Gracias y que tenga un buen dia</description>
		<content:encoded><![CDATA[<p>Hola solo quisiera saber como se puede poner un getUrl para cada elemento del menu... y la verdad me urge!!!</p>
<p>Gracias y que tenga un buen dia
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mario</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5729</link>
		<pubDate>Wed, 12 Dec 2007 10:12:23 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5729</guid>
					<description>Hola toni,

Por favor, ¿puedes ayudarme? ¿como puedo hacer para vaciar boton_mc attacheado para cada "for"?

Me explico, es un menu para fotos (foto 1, foto 2...), y el numero de estas es variable segun el cliente. Por lo tanto, el valor maximo de "i" tambien lo es. Lo que ocurre es que no puedo vaciar boton_mc por lo que siempre me aparecen el numero de fotos del cliente que más tiene.

¿sabes que puedo hacer? removeMovieClip (ni funcion ni metodo) me funciona...y me esoty volviendo loco.

Gracias y saludos!!!</description>
		<content:encoded><![CDATA[<p>Hola toni,</p>
<p>Por favor, ¿puedes ayudarme? ¿como puedo hacer para vaciar boton_mc attacheado para cada "for"?</p>
<p>Me explico, es un menu para fotos (foto 1, foto 2...), y el numero de estas es variable segun el cliente. Por lo tanto, el valor maximo de "i" tambien lo es. Lo que ocurre es que no puedo vaciar boton_mc por lo que siempre me aparecen el numero de fotos del cliente que más tiene.</p>
<p>¿sabes que puedo hacer? removeMovieClip (ni funcion ni metodo) me funciona...y me esoty volviendo loco.</p>
<p>Gracias y saludos!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5461</link>
		<pubDate>Tue, 11 Sep 2007 08:17:25 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5461</guid>
					<description>Hola Dega,

puedes hacer:

holder_mc

[AS]
var holder_mc = _root.createEmptyMovieClip('holder_mc',_root.getNextHighestDepth())
holder_mc.loadMovie(this.pelicula)
[/AS]</description>
		<content:encoded><![CDATA[<p>Hola Dega,</p>
<p>puedes hacer:</p>
<p>holder_mc</p>
<div class="igBar"><span id="lactionscript-4"><a href="#" onclick="javascript:showPlainTxt('actionscript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> holder_mc = <span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">createEmptyMovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'holder_mc'</span>,<span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">getNextHighestDepth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">holder_mc.<span style="color: #0066CC;">loadMovie</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">pelicula</span><span style="color: #66cc66;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Degas</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5451</link>
		<pubDate>Mon, 10 Sep 2007 15:22:42 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5451</guid>
					<description>Toni, muy bueno el menú!

Cómo haría para cargar un swf.

// -- Menú
menu = new Array();
menu[0] = {titulo:"1", pelicula:"d1.swf"};
menu[1] = {titulo:"2", pelicula:"d2.swf"};
menu[2] = {titulo:"3", pelicula:"d3.swf"};
// -- clip contenedor

Con esta sintaxis AS me tira un error.

Agradecería una respuesta!

Degas</description>
		<content:encoded><![CDATA[<p>Toni, muy bueno el menú!</p>
<p>Cómo haría para cargar un swf.</p>
<p>// -- Menú<br />
menu = new Array();<br />
menu[0] = {titulo:"1", pelicula:"d1.swf"};<br />
menu[1] = {titulo:"2", pelicula:"d2.swf"};<br />
menu[2] = {titulo:"3", pelicula:"d3.swf"};<br />
// -- clip contenedor</p>
<p>Con esta sintaxis AS me tira un error.</p>
<p>Agradecería una respuesta!</p>
<p>Degas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: nachofig</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5394</link>
		<pubDate>Wed, 05 Sep 2007 14:31:08 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-5394</guid>
					<description>muy bueno. Se puede hacer tambien que cambie el fondo del boton ? si se puede como sería. Gracias</description>
		<content:encoded><![CDATA[<p>muy bueno. Se puede hacer tambien que cambie el fondo del boton ? si se puede como sería. Gracias
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-2112</link>
		<pubDate>Sun, 13 May 2007 17:44:01 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-2112</guid>
					<description>Hola knoart,

deberías anular lo siguiente:

[as]
    // -- posicionamiento x-y
    item._y = 10;
    if (i == 0) {
        item._x = 10;
    } else {
        item._x = anterior._x anterior._width;
    }
[/as]

Antes del for, escribes:

[as]
var y = 0 // o la posición _y inicial que quieras
[/as]
Y donde quitaste el código anterior, escribir:
[as]
// -- posicionamiento x
item._y = y
y  +=10 // o la distancia de interlineado que quieras
[/as]

saludos</description>
		<content:encoded><![CDATA[<p>Hola knoart,</p>
<p>deberías anular lo siguiente:</p>
<div class="igBar"><span id="lactionscript-5"><a href="#" onclick="javascript:showPlainTxt('actionscript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-5">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// -- posicionamiento x-y</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; item.<span style="color: #0066CC;">_y</span> = <span style="color: #cc66cc;color:#800000;">10</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>i == <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #0066CC;">_x</span> = <span style="color: #cc66cc;color:#800000;">10</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #0066CC;">_x</span> = anterior.<span style="color: #0066CC;">_x</span> anterior.<span style="color: #0066CC;">_width</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Antes del for, escribes:</p>
<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-6">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> y = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #808080; font-style: italic;">// o la posición _y inicial que quieras </span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Y donde quitaste el código anterior, escribir:</p>
<div class="igBar"><span id="lactionscript-7"><a href="#" onclick="javascript:showPlainTxt('actionscript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-7">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// -- posicionamiento x</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">item.<span style="color: #0066CC;">_y</span> = y</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">y&nbsp; +=<span style="color: #cc66cc;color:#800000;">10</span> <span style="color: #808080; font-style: italic;">// o la distancia de interlineado que quieras </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>saludos
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: knoart</title>
		<link>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-2098</link>
		<pubDate>Sun, 13 May 2007 01:21:35 +0000</pubDate>
		<guid>http://www.after-hours.org/2004/08/23/flash-mx-menu-boton-con-estado-activo/#comment-2098</guid>
					<description>Hola Toni, tengo una pequeña duda hacerca de si es posible cambiar la posición de los botones de este menú, me gustaría alinearlos de forma diferente (en posición vertical). Si modifico los valores _x _y me lo sigue moviendo en bloque. tienes alguna solución??

Gracias por adelantado!
Salu2</description>
		<content:encoded><![CDATA[<p>Hola Toni, tengo una pequeña duda hacerca de si es posible cambiar la posición de los botones de este menú, me gustaría alinearlos de forma diferente (en posición vertical). Si modifico los valores _x _y me lo sigue moviendo en bloque. tienes alguna solución??</p>
<p>Gracias por adelantado!<br />
Salu2
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
