<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Calle Serpis &#187; MDM Zinc</title>
	<atom:link href="http://blog.calleserpis.com/category/zinc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.calleserpis.com</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 18:55:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Comunicar varios swf mediante mdm.Forms</title>
		<link>http://blog.calleserpis.com/zinc/comunicar-varios-swf-mediante-mdmforms/</link>
		<comments>http://blog.calleserpis.com/zinc/comunicar-varios-swf-mediante-mdmforms/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 11:29:04 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[mdm.Forms]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://blog.calleserpis.com/?p=7792</guid>
		<description><![CDATA[<p>Existe la posibilidad de comunicarnos entre distintos swf usando mdm zinc mediante la clase mdm.Forms. Esto nos puede ayudar mucho a no cargar tantos nuestros swf en las aplicaciones que desarrollemos. Así podemos tener por ejemplo en un swf, la carga de clientes con sus detalles y en otro nuestra aplicación principal.  Así mientras trabajamos en la aplicación, cuando debemos seleccionar el cliente, se nosa cargará el swf en otra "Ventana" (Formulario) y no perderemos la ventana principal.</p>
<p>Voy a mostraros un ejemplo muy muy sencillo en el que lo podáis ver fácilmente. He creado un swf que tiene un input text y un boton que al pulsarlo se escribe en un textarea lo que hemos puesto en el input text.</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;">boton.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">escribir<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;"><span style="color: #000000; font-weight: bold;">function</span> escribir<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">algo=campo_txt.<span style="color: #0066CC;">text</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;">texto_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">"Escribimos y le mandamos "</span>+algo+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>+texto_txt.<span style="color: #0066CC;">text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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>Y luego tenemos otro botón que hace visible el segundo formulario:</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;">botondos.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">dosForm</span>.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">dosForm</span>.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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>Luego en el segundo swf tenemos solamente dos botones, uno que llama a la función escribir() que está en el primer swf, y otro botón que nos meneará el primer formulario.</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;">botonparauno.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">MainForm</span>.<span style="color: #006600;">callFunction</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"escribir"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"|"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">botonmeneauno.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">MainForm</span>.<span style="color: #006600;">shake</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">5</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:#3A6A8B;">
<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>Para poder llamar a la función de otro swf usamos la función mdm.Forms.<strong>NombreFormulario</strong>.callFunction(functionName:String,  parametersString:String, delimiter:String), de esta manera desde cualquier parte de nuestra aplicación podremos llamar a las funciones declaradas en cualquier swf.</p>
<p> </p>
<p><a title="Descargar Ejemplo" href="http://www.calleserpis.com/ejemplos/ejemplo_forms.rar" target="_blank">Descargar ejemplo</a>.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            <div style="display:block"><small><em>posted in <a href="http://blog.calleserpis.com/category/flash/">Flash</a> by Juan <br />&copy;2010 <a href="http://blog.calleserpis.com">Calle Serpis</a>. All Rights Reserved.</em></small></div>]]></description>
			<content:encoded><![CDATA[<p>Existe la posibilidad de comunicarnos entre distintos swf usando mdm zinc mediante la clase mdm.Forms. Esto nos puede ayudar mucho a no cargar tantos nuestros swf en las aplicaciones que desarrollemos. Así podemos tener por ejemplo en un swf, la carga de clientes con sus detalles y en otro nuestra aplicación principal.  Así mientras trabajamos en la aplicación, cuando debemos seleccionar el cliente, se nosa cargará el swf en otra "Ventana" (Formulario) y no perderemos la ventana principal.</p>
<p>Voy a mostraros un ejemplo muy muy sencillo en el que lo podáis ver fácilmente. He creado un swf que tiene un input text y un boton que al pulsarlo se escribe en un textarea lo que hemos puesto en el input text.</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;">boton.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">escribir<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;"><span style="color: #000000; font-weight: bold;">function</span> escribir<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">algo=campo_txt.<span style="color: #0066CC;">text</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;">texto_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">"Escribimos y le mandamos "</span>+algo+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>"</span>+texto_txt.<span style="color: #0066CC;">text</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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>Y luego tenemos otro botón que hace visible el segundo formulario:</p>
<div class="igBar"><span id="lactionscript-8"><a href="#" onclick="javascript:showPlainTxt('actionscript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-8">
<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;">botondos.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">dosForm</span>.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">dosForm</span>.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<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>Luego en el segundo swf tenemos solamente dos botones, uno que llama a la función escribir() que está en el primer swf, y otro botón que nos meneará el primer formulario.</p>
<div class="igBar"><span id="lactionscript-9"><a href="#" onclick="javascript:showPlainTxt('actionscript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-9">
<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;">botonparauno.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">MainForm</span>.<span style="color: #006600;">callFunction</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"escribir"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"|"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">botonmeneauno.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Forms</span>.<span style="color: #006600;">MainForm</span>.<span style="color: #006600;">shake</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">5</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:#3A6A8B;">
<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>Para poder llamar a la función de otro swf usamos la función mdm.Forms.<strong>NombreFormulario</strong>.callFunction(functionName:String,  parametersString:String, delimiter:String), de esta manera desde cualquier parte de nuestra aplicación podremos llamar a las funciones declaradas en cualquier swf.</p>
<p> </p>
<p><a title="Descargar Ejemplo" href="http://www.calleserpis.com/ejemplos/ejemplo_forms.rar" target="_blank">Descargar ejemplo</a>.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            ]]></content:encoded>
			<wfw:commentRss>http://blog.calleserpis.com/zinc/comunicar-varios-swf-mediante-mdmforms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Post it para el escritorio (Flash y Zinc)</title>
		<link>http://blog.calleserpis.com/zinc/post-it-para-el-escritorio-flash-y-zinc/</link>
		<comments>http://blog.calleserpis.com/zinc/post-it-para-el-escritorio-flash-y-zinc/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 08:21:55 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[mdm]]></category>
		<category><![CDATA[Post It]]></category>

		<guid isPermaLink="false">http://calleserpis.com/?p=7718</guid>
		<description><![CDATA[<p>Últimamente tengo un lío en la cabeza con la faena. Ya que de un día para otro se me olvida lo que tenía que hacer o por donde iba así que decidí crearme un Post It para anotar las cosas y así que no se me olviden. Lo he realizado con la ayuda de <strong>Flash</strong> y <strong>Zinc</strong>.</p>
<p>Voy a explicar como lo he hecho, es muy pero que muy sencillo:</p>
<p>Primero buscamos la imagen de un <a href="http://images.google.es/images?q=post+it" title="San Google" target="_blank">Post It</a> que nos servirá de fondo. Con la ayuda de google acabamos rapidamente.</p>
<p>Despues en Flash, en una capa ponemos la imagen y en la superior creamos un campo de introducción de texto, así como dos botones. Uno para cerrar y otro para guardar. Nos quedará una cosa como esta:</p>
<p style="text-align: center"><img src="http://calleserpis.com/wp-content/uploads/2008/02/postit1.jpg" alt="Vista previa post it" /></p>
<p style="text-align: center" align="center">&nbsp;</p>
<p style="text-align: center" align="left">&nbsp;</p>
<p style="text-align: center" align="center">&nbsp;</p>
<p> En una tercera capa pondríamos el siguiente código actionscript:
<div class="igBar"><span id="lactionscript-11"><a href="#" onclick="javascript:showPlainTxt('actionscript-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-11">
<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> ruta=<span style="color: #ff0000;">"C:<span style="color: #000099; font-weight: bold;">\\</span>WINDOWS<span style="color: #000099; font-weight: bold;">\\</span>Temp"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> exists = mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">fileExists</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>exists<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;"><span style="color: #000000; font-weight: bold;">var</span> mySavedData = mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">loadFile</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>mySavedData<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;">cargador.<span style="color: #0066CC;">text</span>=mySavedData;</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_cerrar.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">exit</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_guardar.<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-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;">mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">saveFile</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</span>,cargador.<span style="color: #0066CC;">text</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;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Nuestra idea es crear un archivo de texto con nuestra nota y guardarlo en el directorio temporal de windows. Nada más ejecutarlo, comprobará si existe el archivo y si es así nos cargará su información en nuestro campo de texto.</p>
<p>Luego están las funciones de los botones. El de cerrar nos cierra el post it y el de guardar nos guardará el archivo txt. Se podría implementar para que cada X tiempo se guardara automaticamente el contenido del campo de texto.</p>
<p>Finalmente lo compilamos con el <a href="http://multidmedia.com/" title="http://multidmedia.com/" target="_blank">Zinc</a> y listo:</p>
<p align="center"> <a href="http://calleserpis.com/wp-content/uploads/2008/02/escritorio.jpg" title="Vista final Post It" rel="lightbox"><img src="http://calleserpis.com/wp-content/uploads/2008/02/escritorio.thumbnail.jpg" alt="Vista final Post It" /></a></p>
<p>Luego podemos ponerlo para que arranque automaticamente nada más encenderse el ordenador, así siempre tendremos la nota con lo que tenemos que hacer.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            <div style="display:block"><small><em>posted in <a href="http://blog.calleserpis.com/category/flash/">Flash</a> by Juan <br />&copy;2010 <a href="http://blog.calleserpis.com">Calle Serpis</a>. All Rights Reserved.</em></small></div>]]></description>
			<content:encoded><![CDATA[<p>Últimamente tengo un lío en la cabeza con la faena. Ya que de un día para otro se me olvida lo que tenía que hacer o por donde iba así que decidí crearme un Post It para anotar las cosas y así que no se me olviden. Lo he realizado con la ayuda de <strong>Flash</strong> y <strong>Zinc</strong>.</p>
<p>Voy a explicar como lo he hecho, es muy pero que muy sencillo:</p>
<p>Primero buscamos la imagen de un <a href="http://images.google.es/images?q=post+it" title="San Google" target="_blank">Post It</a> que nos servirá de fondo. Con la ayuda de google acabamos rapidamente.</p>
<p>Despues en Flash, en una capa ponemos la imagen y en la superior creamos un campo de introducción de texto, así como dos botones. Uno para cerrar y otro para guardar. Nos quedará una cosa como esta:</p>
<p style="text-align: center"><img src="http://calleserpis.com/wp-content/uploads/2008/02/postit1.jpg" alt="Vista previa post it" /></p>
<p style="text-align: center" align="center">&nbsp;</p>
<p style="text-align: center" align="left">&nbsp;</p>
<p style="text-align: center" align="center">&nbsp;</p>
<p> En una tercera capa pondríamos el siguiente código actionscript:
<div class="igBar"><span id="lactionscript-12"><a href="#" onclick="javascript:showPlainTxt('actionscript-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-12">
<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> ruta=<span style="color: #ff0000;">"C:<span style="color: #000099; font-weight: bold;">\\</span>WINDOWS<span style="color: #000099; font-weight: bold;">\\</span>Temp"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> exists = mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">fileExists</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>exists<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;"><span style="color: #000000; font-weight: bold;">var</span> mySavedData = mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">loadFile</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>mySavedData<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;">cargador.<span style="color: #0066CC;">text</span>=mySavedData;</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_cerrar.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">exit</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_guardar.<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-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;">mdm.<span style="color: #006600;">FileSystem</span>.<span style="color: #006600;">saveFile</span><span style="color: #66cc66;">&#40;</span>ruta+<span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\\</span>postit.txt"</span>,cargador.<span style="color: #0066CC;">text</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;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Nuestra idea es crear un archivo de texto con nuestra nota y guardarlo en el directorio temporal de windows. Nada más ejecutarlo, comprobará si existe el archivo y si es así nos cargará su información en nuestro campo de texto.</p>
<p>Luego están las funciones de los botones. El de cerrar nos cierra el post it y el de guardar nos guardará el archivo txt. Se podría implementar para que cada X tiempo se guardara automaticamente el contenido del campo de texto.</p>
<p>Finalmente lo compilamos con el <a href="http://multidmedia.com/" title="http://multidmedia.com/" target="_blank">Zinc</a> y listo:</p>
<p align="center"> <a href="http://calleserpis.com/wp-content/uploads/2008/02/escritorio.jpg" title="Vista final Post It" rel="lightbox"><img src="http://calleserpis.com/wp-content/uploads/2008/02/escritorio.thumbnail.jpg" alt="Vista final Post It" /></a></p>
<p>Luego podemos ponerlo para que arranque automaticamente nada más encenderse el ordenador, así siempre tendremos la nota con lo que tenemos que hacer.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            ]]></content:encoded>
			<wfw:commentRss>http://blog.calleserpis.com/zinc/post-it-para-el-escritorio-flash-y-zinc/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Zinc 3.0 ya a la venta</title>
		<link>http://blog.calleserpis.com/zinc/zinc-30-ya-a-la-venta/</link>
		<comments>http://blog.calleserpis.com/zinc/zinc-30-ya-a-la-venta/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 17:02:19 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[mdm]]></category>

		<guid isPermaLink="false">http://calleserpis.com/?p=7707</guid>
		<description><![CDATA[<p align="center"><img src="http://calleserpis.com/wp-content/uploads/2008/01/zinc30.jpg" alt="Zinc 3.0" /></p>
<p>Tal y como <a href="http://www.multidmedia.com/blog/?p=19" title="Blog MDM Zinc" target="_blank">han anunciado</a> en el blog oficial, la versión <a href="http://www.multidmedia.com/" title="Multidmedia" target="_blank">3.0 de Zinc</a> ya está a la venta. Han aprovechado para renovar la web y darle un estilo un poco más 2.0.</p>
<p>Me lo acabo de instalar y recompilando algúnos ejemplos básicos que tenía hecho con la versión 2.5 la verdad que se nota bastante la rapidez.</p>
<p>También veo que a la hora de compilar te permite elegir que clases quieres empaquetar en el producto final, esto antes no era posible. A simple vista me llevo una muy buena impresión. Dentro de nada podré comprobarlo con la versión completa y no la trial.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            <div style="display:block"><small><em>posted in <a href="http://blog.calleserpis.com/category/flash/">Flash</a> by Juan <br />&copy;2010 <a href="http://blog.calleserpis.com">Calle Serpis</a>. All Rights Reserved.</em></small></div>]]></description>
			<content:encoded><![CDATA[<p align="center"><img src="http://calleserpis.com/wp-content/uploads/2008/01/zinc30.jpg" alt="Zinc 3.0" /></p>
<p>Tal y como <a href="http://www.multidmedia.com/blog/?p=19" title="Blog MDM Zinc" target="_blank">han anunciado</a> en el blog oficial, la versión <a href="http://www.multidmedia.com/" title="Multidmedia" target="_blank">3.0 de Zinc</a> ya está a la venta. Han aprovechado para renovar la web y darle un estilo un poco más 2.0.</p>
<p>Me lo acabo de instalar y recompilando algúnos ejemplos básicos que tenía hecho con la versión 2.5 la verdad que se nota bastante la rapidez.</p>
<p>También veo que a la hora de compilar te permite elegir que clases quieres empaquetar en el producto final, esto antes no era posible. A simple vista me llevo una muy buena impresión. Dentro de nada podré comprobarlo con la versión completa y no la trial.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            ]]></content:encoded>
			<wfw:commentRss>http://blog.calleserpis.com/zinc/zinc-30-ya-a-la-venta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editar un DataGrid con conexión a Access</title>
		<link>http://blog.calleserpis.com/zinc/editar-un-datagrid-con-conexion-a-access/</link>
		<comments>http://blog.calleserpis.com/zinc/editar-un-datagrid-con-conexion-a-access/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 10:08:25 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[mdm]]></category>

		<guid isPermaLink="false">http://calleserpis.com/?p=7701</guid>
		<description><![CDATA[<p>Hace un tiempo ya hice un <a href="http://calleserpis.com/?p=15" title="Conectar Flash con Access a traves de mdm Zinc" target="_blank">tutorial</a> sobre como conectar Flash con Access a través de <a href="http://multidmedia.com/" title="http://multidmedia.com/" target="_blank">mdm Zinc</a>. Y en los comentarios me preguntaron si habría posibilidad de editar directamente el datagrid sin tener que usar campos de texto.</p>
<p>He adaptado ese tutorial para que se pueda conseguir esto. Simplemente tenemos que permitir editar el datagrid y luego añadirle un listener a éste para que cada vez que cambie, se actualize la base de datos.</p>
<p>Esto se consigue con las siguientes lineas:</p>
<div class="igBar"><span id="lactionscript-15"><a href="#" onclick="javascript:showPlainTxt('actionscript-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-15">
<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;">theDataGrid.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener.<span style="color: #006600;">cellEdit</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event<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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"UPDATE ejemplo_agenda set nombre='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Nombre</span>+<span style="color: #ff0000;">"', apellidos='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Apellidos</span>+<span style="color: #ff0000;">"' where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"cellEdit"</span>, myDataGridListener<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Aquí os pongo la totalidad del código así como los archivos del ejemplo para que os los podáis descargar. He hecho un poco más simple la base de datos de access, solo tiene nombre y apellidos.</p>
<div class="igBar"><span id="lactionscript-16"><a href="#" onclick="javascript:showPlainTxt('actionscript-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-16">
<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> databaseFile:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"agenda.mdb"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> databasePassword:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">""</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;"><span style="color: #000000; font-weight: bold;">var</span> path:<span style="color: #0066CC;">String</span> = mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">connectAbs</span><span style="color: #66cc66;">&#40;</span>path+databaseFile,databasePassword<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> success = mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">success</span><span style="color: #66cc66;">&#40;</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;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>success == <span style="color: #000000; font-weight: bold;">false</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> msg:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"No se puede conectar a la bbdd"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>msg<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//FUNCION PARA HACER LA CONSULTA A LA BBDD</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">true</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;"><span style="color: #000000; font-weight: bold;">function</span> consulta<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">removeAll</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"SELECT id,Nombre,Apellidos FROM ejemplo_agenda order by id asc"</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;"><span style="color: #808080; font-style: italic;">// Ejecutamos la consulta sql</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">select</span><span style="color: #66cc66;">&#40;</span>sqlString<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// Comprobamos los errores</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">error</span>:<span style="color: #0066CC;">Boolean</span> = <span style="color: #66cc66;">&#40;</span>mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #0066CC;">error</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">"true"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</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;"><span style="color: #000000; font-weight: bold;">var</span> msg:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"Ha ocurrido un error en la consulta!"</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;">mdm.<span style="color: #006600;">Dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>msg<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;"><span style="color: #b1b100;">return</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;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//Obtenemos los datos de la consulta</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;"><span style="color: #000000; font-weight: bold;">var</span> dataSet:<span style="color: #0066CC;">Array</span> = mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">getData</span><span style="color: #66cc66;">&#40;</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;">&nbsp;</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;"><span style="color: #000000; font-weight: bold;">var</span> datos:<span style="color: #0066CC;">Object</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> newItemsArray:<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>
<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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i = <span style="color: #cc66cc;color:#800000;">0</span>; i&lt;dataset.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>&gt;</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;">datos = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">ID</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span>dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">Nombre</span> = dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">Apellidos</span> = dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><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-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;">newItemsArray.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>datos<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;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">dataProvider</span> = newItemsArray;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>&lt;/dataset.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>&gt;</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//FUNCION PARA MONTAR EL DATAGRID</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;"><span style="color: #000000; font-weight: bold;">function</span> layoutGUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</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;"><span style="color: #808080; font-style: italic;">// Montamos el encabezado del datagrid</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;">theDataGrid.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"fontSize"</span>,<span style="color: #cc66cc;color:#800000;">10</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;">theDataGrid.<span style="color: #006600;">columnNames</span> = <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Apellidos"</span><span style="color: #66cc66;">&#93;</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;">theDataGrid.<span style="color: #006600;">vScrollPolicy</span> = <span style="color: #ff0000;">"auto"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> gridWidth:<span style="color: #0066CC;">Number</span> = theDataGrid.<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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">35</span>*gridWidth;</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;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">headerText</span> = <span style="color: #ff0000;">"Nombre:"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">65</span>*gridWidth;</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;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">headerText</span> = <span style="color: #ff0000;">"Apellidos:"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"alternatingRowColors"</span>, <span style="color: #66cc66;">&#91;</span>0xFFFFFF, 0xF9FCFD<span style="color: #66cc66;">&#93;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;"><span style="color: #808080; font-style: italic;">//Funcion para insertar un dato</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_insertar.<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-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: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>nombre_txt.<span style="color: #0066CC;">text</span>==<span style="color: #ff0000;">""</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;">nombre_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">"Este campo no puede estar vacio"</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;"><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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"INSERT INTO ejemplo_agenda (nombre,apellidos) VALUES ('"</span>+nombre_txt.<span style="color: #0066CC;">text</span>+<span style="color: #ff0000;">"','"</span>+apellidos_txt.<span style="color: #0066CC;">text</span>+<span style="color: #ff0000;">"')"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">consulta<span style="color: #66cc66;">&#40;</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;">nombre_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">""</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;">apellidos_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">""</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//Borrado de datos</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;">bot_borrar.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LineaGrid = theDataGrid.<span style="color: #006600;">selectedIndex</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;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>LineaGrid!=<span style="color: #0066CC;">undefined</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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"DELETE FROM ejemplo_agenda where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>LineaGrid<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">layoutGUI<span style="color: #66cc66;">&#40;</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;">consulta<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//Obtenemos los datos de la bbdd</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener.<span style="color: #006600;">cellEdit</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event<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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"UPDATE ejemplo_agenda set nombre='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Nombre</span>+<span style="color: #ff0000;">"', apellidos='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Apellidos</span>+<span style="color: #ff0000;">"' where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"cellEdit"</span>, myDataGridListener<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Y aquí están los <a href="http://www.calleserpis.com/ejemplos/editar_datagrid_zinc.rar" title="Archivos del tutorial" target="_blank">archivos del ejemplo</a>. El .fla guardado para flash 8, el .swf, la base de datos de access y el ejecutable final compilado con el mdm zinc.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            <div style="display:block"><small><em>posted in <a href="http://blog.calleserpis.com/category/flash/">Flash</a> by Juan <br />&copy;2010 <a href="http://blog.calleserpis.com">Calle Serpis</a>. All Rights Reserved.</em></small></div>]]></description>
			<content:encoded><![CDATA[<p>Hace un tiempo ya hice un <a href="http://calleserpis.com/?p=15" title="Conectar Flash con Access a traves de mdm Zinc" target="_blank">tutorial</a> sobre como conectar Flash con Access a través de <a href="http://multidmedia.com/" title="http://multidmedia.com/" target="_blank">mdm Zinc</a>. Y en los comentarios me preguntaron si habría posibilidad de editar directamente el datagrid sin tener que usar campos de texto.</p>
<p>He adaptado ese tutorial para que se pueda conseguir esto. Simplemente tenemos que permitir editar el datagrid y luego añadirle un listener a éste para que cada vez que cambie, se actualize la base de datos.</p>
<p>Esto se consigue con las siguientes lineas:</p>
<div class="igBar"><span id="lactionscript-17"><a href="#" onclick="javascript:showPlainTxt('actionscript-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-17">
<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;">theDataGrid.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener.<span style="color: #006600;">cellEdit</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event<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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"UPDATE ejemplo_agenda set nombre='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Nombre</span>+<span style="color: #ff0000;">"', apellidos='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Apellidos</span>+<span style="color: #ff0000;">"' where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"cellEdit"</span>, myDataGridListener<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Aquí os pongo la totalidad del código así como los archivos del ejemplo para que os los podáis descargar. He hecho un poco más simple la base de datos de access, solo tiene nombre y apellidos.</p>
<div class="igBar"><span id="lactionscript-18"><a href="#" onclick="javascript:showPlainTxt('actionscript-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-18">
<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> databaseFile:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"agenda.mdb"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> databasePassword:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">""</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;"><span style="color: #000000; font-weight: bold;">var</span> path:<span style="color: #0066CC;">String</span> = mdm.<span style="color: #006600;">Application</span>.<span style="color: #006600;">path</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">connectAbs</span><span style="color: #66cc66;">&#40;</span>path+databaseFile,databasePassword<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> success = mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">success</span><span style="color: #66cc66;">&#40;</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;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>success == <span style="color: #000000; font-weight: bold;">false</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> msg:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"No se puede conectar a la bbdd"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>msg<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">return</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//FUNCION PARA HACER LA CONSULTA A LA BBDD</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">editable</span>=<span style="color: #000000; font-weight: bold;">true</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;"><span style="color: #000000; font-weight: bold;">function</span> consulta<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">removeAll</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"SELECT id,Nombre,Apellidos FROM ejemplo_agenda order by id asc"</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;"><span style="color: #808080; font-style: italic;">// Ejecutamos la consulta sql</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">select</span><span style="color: #66cc66;">&#40;</span>sqlString<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// Comprobamos los errores</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">error</span>:<span style="color: #0066CC;">Boolean</span> = <span style="color: #66cc66;">&#40;</span>mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #0066CC;">error</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">"true"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</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;"><span style="color: #000000; font-weight: bold;">var</span> msg:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"Ha ocurrido un error en la consulta!"</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;">mdm.<span style="color: #006600;">Dialogs</span>.<span style="color: #006600;">prompt</span><span style="color: #66cc66;">&#40;</span>msg<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;"><span style="color: #b1b100;">return</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;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//Obtenemos los datos de la consulta</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;"><span style="color: #000000; font-weight: bold;">var</span> dataSet:<span style="color: #0066CC;">Array</span> = mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">getData</span><span style="color: #66cc66;">&#40;</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;">&nbsp;</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;"><span style="color: #000000; font-weight: bold;">var</span> datos:<span style="color: #0066CC;">Object</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> newItemsArray:<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>
<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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i = <span style="color: #cc66cc;color:#800000;">0</span>; i&lt;dataset.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>&gt;</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;">datos = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">ID</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span>dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">Nombre</span> = dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">datos.<span style="color: #006600;">Apellidos</span> = dataSet<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><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-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;">newItemsArray.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>datos<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;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">dataProvider</span> = newItemsArray;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>&lt;/dataset.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>&gt;</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//FUNCION PARA MONTAR EL DATAGRID</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;"><span style="color: #000000; font-weight: bold;">function</span> layoutGUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</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;"><span style="color: #808080; font-style: italic;">// Montamos el encabezado del datagrid</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;">theDataGrid.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"fontSize"</span>,<span style="color: #cc66cc;color:#800000;">10</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;">theDataGrid.<span style="color: #006600;">columnNames</span> = <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Apellidos"</span><span style="color: #66cc66;">&#93;</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;">theDataGrid.<span style="color: #006600;">vScrollPolicy</span> = <span style="color: #ff0000;">"auto"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> gridWidth:<span style="color: #0066CC;">Number</span> = theDataGrid.<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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">35</span>*gridWidth;</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;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">headerText</span> = <span style="color: #ff0000;">"Nombre:"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">0</span>.<span style="color: #cc66cc;color:#800000;">65</span>*gridWidth;</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;">theDataGrid.<span style="color: #006600;">getColumnAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">headerText</span> = <span style="color: #ff0000;">"Apellidos:"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"alternatingRowColors"</span>, <span style="color: #66cc66;">&#91;</span>0xFFFFFF, 0xF9FCFD<span style="color: #66cc66;">&#93;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</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;"><span style="color: #808080; font-style: italic;">//Funcion para insertar un dato</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bot_insertar.<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-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: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>nombre_txt.<span style="color: #0066CC;">text</span>==<span style="color: #ff0000;">""</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;">nombre_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">"Este campo no puede estar vacio"</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;"><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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"INSERT INTO ejemplo_agenda (nombre,apellidos) VALUES ('"</span>+nombre_txt.<span style="color: #0066CC;">text</span>+<span style="color: #ff0000;">"','"</span>+apellidos_txt.<span style="color: #0066CC;">text</span>+<span style="color: #ff0000;">"')"</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">consulta<span style="color: #66cc66;">&#40;</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;">nombre_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">""</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;">apellidos_txt.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">""</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//Borrado de datos</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;">bot_borrar.<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:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LineaGrid = theDataGrid.<span style="color: #006600;">selectedIndex</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;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>LineaGrid!=<span style="color: #0066CC;">undefined</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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"DELETE FROM ejemplo_agenda where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>LineaGrid<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">layoutGUI<span style="color: #66cc66;">&#40;</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;">consulta<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//Obtenemos los datos de la bbdd</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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">myDataGridListener.<span style="color: #006600;">cellEdit</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>event<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;"><span style="color: #000000; font-weight: bold;">var</span> sqlString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">"UPDATE ejemplo_agenda set nombre='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Nombre</span>+<span style="color: #ff0000;">"', apellidos='"</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">Apellidos</span>+<span style="color: #ff0000;">"' where id="</span>+theDataGrid.<span style="color: #006600;">getItemAt</span><span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">itemIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ID</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;">mdm.<span style="color: #006600;">Database</span>.<span style="color: #006600;">MSAccess</span>.<span style="color: #006600;">runQuery</span><span style="color: #66cc66;">&#40;</span>sqlString<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;">consulta<span style="color: #66cc66;">&#40;</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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">theDataGrid.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"cellEdit"</span>, myDataGridListener<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:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Y aquí están los <a href="http://www.calleserpis.com/ejemplos/editar_datagrid_zinc.rar" title="Archivos del tutorial" target="_blank">archivos del ejemplo</a>. El .fla guardado para flash 8, el .swf, la base de datos de access y el ejecutable final compilado con el mdm zinc.</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            ]]></content:encoded>
			<wfw:commentRss>http://blog.calleserpis.com/zinc/editar-un-datagrid-con-conexion-a-access/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zinc 3.0 Beta ( Pandora ) ya disponible</title>
		<link>http://blog.calleserpis.com/zinc/zinc-30-beta-pandora-ya-disponible/</link>
		<comments>http://blog.calleserpis.com/zinc/zinc-30-beta-pandora-ya-disponible/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 08:30:30 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[mdm]]></category>

		<guid isPermaLink="false">http://calleserpis.com/?p=7700</guid>
		<description><![CDATA[<p>El otro día recibí el newsletter de mdm y <a href="http://www.multidmedia.com/blog/?p=16" title="Multidmedia Blog" target="_blank">anunciaban</a> que ya estaba disponible la versión<a href="http://www.multidmedia.com/devlabs/pandora/" target="_blank"> 3.0 de Zinc</a>. Eso sí, solo para usuarios registrados. Así que si disponéis de alguna versión anterior, tan sólo incluyendo vuestro numero de serie os podréis bajar la versión Beta de <strong>Zinc 3.0</strong>,</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            <div style="display:block"><small><em>posted in <a href="http://blog.calleserpis.com/category/zinc/">MDM Zinc</a> by Juan <br />&copy;2010 <a href="http://blog.calleserpis.com">Calle Serpis</a>. All Rights Reserved.</em></small></div>]]></description>
			<content:encoded><![CDATA[<p>El otro día recibí el newsletter de mdm y <a href="http://www.multidmedia.com/blog/?p=16" title="Multidmedia Blog" target="_blank">anunciaban</a> que ya estaba disponible la versión<a href="http://www.multidmedia.com/devlabs/pandora/" target="_blank"> 3.0 de Zinc</a>. Eso sí, solo para usuarios registrados. Así que si disponéis de alguna versión anterior, tan sólo incluyendo vuestro numero de serie os podréis bajar la versión Beta de <strong>Zinc 3.0</strong>,</p>
                <p><hr/><font size="-1"><center>&copy; 2007-2008 - Visita <a href="http://www.calleserpis.com">Calle Serpis</a> para ver más contenido. | Si estás viendo este post en un lugar distinto a su feed es que no es original.</center></font></p>            ]]></content:encoded>
			<wfw:commentRss>http://blog.calleserpis.com/zinc/zinc-30-beta-pandora-ya-disponible/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
