<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Componente RadioButton</title>
	<atom:link href="http://www.codigometropoli.com/componente-radiobutton/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigometropoli.com/componente-radiobutton/</link>
	<description>Programación para Super Héroes</description>
	<lastBuildDate>Tue, 31 Aug 2010 13:41:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: pedrozopayares</title>
		<link>http://www.codigometropoli.com/componente-radiobutton/comment-page-1/#comment-1623</link>
		<dc:creator>pedrozopayares</dc:creator>
		<pubDate>Thu, 17 Sep 2009 21:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=24#comment-1623</guid>
		<description>Hola, muy bueno y fácil de enterder tu post. Sobre todo me sirvió la aclaración que le hiciste a Aura. Estoy tratando de hacer una encuesta con varias preguntas y creo que me diste la idea que necesitaba.

Muy bueno.</description>
		<content:encoded><![CDATA[<p>Hola, muy bueno y fácil de enterder tu post. Sobre todo me sirvió la aclaración que le hiciste a Aura. Estoy tratando de hacer una encuesta con varias preguntas y creo que me diste la idea que necesitaba.</p>
<p>Muy bueno.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Carla Macías</title>
		<link>http://www.codigometropoli.com/componente-radiobutton/comment-page-1/#comment-555</link>
		<dc:creator>Carla Macías</dc:creator>
		<pubDate>Thu, 12 Mar 2009 00:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=24#comment-555</guid>
		<description>Hola Aura,

No entiendo tu pregunta, ya que como bien dices sería con un contador pero ¿sólo te interesa saber cuántas respuestas A, cuántas B, etc. seleccionó el usuario?. Si es así, tendrías que crear variables para cada tpo de respuesta, o bien un arreglo, en dónde guardar la info. Esas variables se actualizarían cada vez que el usuario haga click en el botón de &quot;Siguiente pregunta&quot; o algo por el estilo. 
Ejemplo: En el primer frame de tu Flash poner:

[as]
var _respuestas:Array = new Array();
[/as]

Luego, en tus botones poner:

[as]
aceptar_btn.onRelease = function() {
	if(Navegadores.selection.data == undefined) {
		Alert.show(&quot;Por favor seleccione una opción&quot;, &quot;Aviso&quot;);
	}
	else {
		Alert.show(&quot;Navegador: &quot; + Navegadores.selection.label + &quot;\nDato: &quot; + Navegadores.selection.data, &quot;Aviso&quot;);
		var opcion:String = Opciones.selection.label;
		var contador:Number = 0;
		
		switch(opcion)
		{
			case &#039;a&#039;: 
				contador = _respuestas[0];
				_respuestas[0] = contador++;
				break;
			case &#039;b&#039;: 
				contador = _respuestas[1];
				_respuestas[1] = contador++;
				break;
			case &#039;c&#039;: 
				contador = _respuestas[2];
				_respuestas[2] = contador++;
				break;	
		}
	}
}
[/as]

Después podrías enviar esos valores por mail o guardarlos en una base de datos o en un archivo de texto.

Saludos.</description>
		<content:encoded><![CDATA[<p>Hola Aura,</p>
<p>No entiendo tu pregunta, ya que como bien dices sería con un contador pero ¿sólo te interesa saber cuántas respuestas A, cuántas B, etc. seleccionó el usuario?. Si es así, tendrías que crear variables para cada tpo de respuesta, o bien un arreglo, en dónde guardar la info. Esas variables se actualizarían cada vez que el usuario haga click en el botón de "Siguiente pregunta" o algo por el estilo.<br />
Ejemplo: En el primer frame de tu Flash poner:</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">Texto Plano</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:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> _respuestas:<span style="color: #0066CC;">Array</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Luego, en tus botones poner:</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">Texto Plano</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:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">aceptar_btn.<span style="color: #0066CC;">onRelease</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<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>Navegadores.<span style="color: #0066CC;">selection</span>.<span style="color: #0066CC;">data</span> == <span style="color: #0066CC;">undefined</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Por favor seleccione una opción"</span>, <span style="color: #ff0000;">"Aviso"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Navegador: "</span> + Navegadores.<span style="color: #0066CC;">selection</span>.<span style="color: #006600;">label</span> + <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>Dato: "</span> + Navegadores.<span style="color: #0066CC;">selection</span>.<span style="color: #0066CC;">data</span>, <span style="color: #ff0000;">"Aviso"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> opcion:<span style="color: #0066CC;">String</span> = Opciones.<span style="color: #0066CC;">selection</span>.<span style="color: #006600;">label</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> contador:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">switch</span><span style="color: #66cc66;">&#40;</span>opcion<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">'a'</span>: </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contador = _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span> = contador++;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">'b'</span>: </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contador = _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#93;</span> = contador++;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">'c'</span>: </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contador = _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _respuestas<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color: #66cc66;">&#93;</span> = contador++;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;&nbsp; </div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#2C442A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#0B1558;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Después podrías enviar esos valores por mail o guardarlos en una base de datos o en un archivo de texto.</p>
<p>Saludos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Aura</title>
		<link>http://www.codigometropoli.com/componente-radiobutton/comment-page-1/#comment-550</link>
		<dc:creator>Aura</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=24#comment-550</guid>
		<description>Muy buen post. Mi duda es cómo integrarías un contador para esos datos. Digamos cuando se tiene un cuestionario con respuestas de tipo, mayoría de a, b, c.
Muchas gracias por tu respuesta.</description>
		<content:encoded><![CDATA[<p>Muy buen post. Mi duda es cómo integrarías un contador para esos datos. Digamos cuando se tiene un cuestionario con respuestas de tipo, mayoría de a, b, c.<br />
Muchas gracias por tu respuesta.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Carla Macías</title>
		<link>http://www.codigometropoli.com/componente-radiobutton/comment-page-1/#comment-189</link>
		<dc:creator>Carla Macías</dc:creator>
		<pubDate>Fri, 21 Nov 2008 02:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=24#comment-189</guid>
		<description>Hola Abdul,

En este &lt;a href=&quot;http://www.codigometropoli.com/enviar-formulario-de-contacto/&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; explico cómo mandar un formulario de contacto por medio de PHP. Incluso muestro cómo enviar la selección del usuario de botones de radio, checkboxes y combobox.

Saludos.</description>
		<content:encoded><![CDATA[<p>Hola Abdul,</p>
<p>En este <a href="http://www.codigometropoli.com/enviar-formulario-de-contacto/" rel="nofollow">tutorial</a> explico cómo mandar un formulario de contacto por medio de PHP. Incluso muestro cómo enviar la selección del usuario de botones de radio, checkboxes y combobox.</p>
<p>Saludos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: ABDUL SAAB</title>
		<link>http://www.codigometropoli.com/componente-radiobutton/comment-page-1/#comment-188</link>
		<dc:creator>ABDUL SAAB</dc:creator>
		<pubDate>Fri, 21 Nov 2008 02:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.codigometropoli.com/?p=24#comment-188</guid>
		<description>HOLA CARLA, 

HE DESCARGADO TU EJEMPLO DE RADIOBOTONES Y ESTA INCREIBLE SOLO TENGO UNA DUDA, ME GUSTARIA CREAR UNA FORMA DE CONTACTO EN FLASH USANDO RADIOBOTONES Y ENVIAR LOS DATOS DE A PHP Y PODER MANDARLOS POR EMAIL. 

ALGUN CONSEJO ?

ABDUL</description>
		<content:encoded><![CDATA[<p>HOLA CARLA, </p>
<p>HE DESCARGADO TU EJEMPLO DE RADIOBOTONES Y ESTA INCREIBLE SOLO TENGO UNA DUDA, ME GUSTARIA CREAR UNA FORMA DE CONTACTO EN FLASH USANDO RADIOBOTONES Y ENVIAR LOS DATOS DE A PHP Y PODER MANDARLOS POR EMAIL. </p>
<p>ALGUN CONSEJO ?</p>
<p>ABDUL</p>
]]></content:encoded>
	</item>
</channel>
</rss>
