<?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</title>
	<atom:link href="http://blog.calleserpis.com/tag/mdm/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.calleserpis.com</link>
	<description></description>
	<lastBuildDate>Mon, 02 Aug 2010 09:10:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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-3"><a href="#" onclick="javascript:showPlainTxt('actionscript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-3">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #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-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;">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-7"><a href="#" onclick="javascript:showPlainTxt('actionscript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-7">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #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-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;">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-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;"><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>
		<item>
		<title>MdM Pandora será Zinc 3.0</title>
		<link>http://blog.calleserpis.com/zinc/mdm-pandora-sera-zinc-30/</link>
		<comments>http://blog.calleserpis.com/zinc/mdm-pandora-sera-zinc-30/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 09:09:19 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[MDM Zinc]]></category>
		<category><![CDATA[mdm]]></category>
		<category><![CDATA[pandora]]></category>

		<guid isPermaLink="false">http://calleserpis.com/blog/?p=37</guid>
		<description><![CDATA[<p style="text-align: center"><img src="http://calleserpis.com/wp-content/uploads/2007/12/mdm.jpg" alt="MDM Multimedia" /></p>
<p><a href="http://www.multidmedia.com/" title="Multimedia" target="_blank">MDM Multimedia</a> anunció hace unos días que el proyecto que llevaban tanto en secreo llamado Pandora, será la continuación de Zinc 2.5. El paso de Zinc 2.5 a Pandora es el salto más grande que hacen en un actualización.</p>
<p>Actualmente ya existe una versión Beta que hace tiempo están usando los testers, aunque el lanzamiento público de esta versión Beta será, en un principio, a lo largo de este mes de Diciembre. La primera versión estable quieren sacarlo a comienzos de 2008. En este blog tenemos un <a href="http://www.jssmedia.com/?p=6" target="_blank">preview </a>de Pandora.  La verdad que no tiene nada que ver con la versión actual de Zinc.</p>
<p>Entre las nuevas características de Pandora cabe destacar:</p>
<ul>
<li>Los proyectos son un 500% más veloces. (Esto se agradecerá mucho, ya que a veces tardaban una eternidad en cargarse)</li>
<li>{mdm}Script 3.0  Se ha re-escrito completamente el código de mdm. Con nuevas funciones.</li>
<li>Mayor compatibilidad entre Windows y Mac OSX. Ahora prácticamente el 80% de código sólo funciona en Windows.</li>
<li>Lavado de cara total. Como podemos ver en el screenshot anterior.</li>
</ul>
<p>La verdad que tiene muy buena pinta y espero que vayan sacando pronto nuevas notícias así como la versión Beta pública.</p>
<p><a href="http://www.multidmedia.com/devlabs/pandora/" title="Pandora" target="_blank">Más Info. </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/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 style="text-align: center"><img src="http://calleserpis.com/wp-content/uploads/2007/12/mdm.jpg" alt="MDM Multimedia" /></p>
<p><a href="http://www.multidmedia.com/" title="Multimedia" target="_blank">MDM Multimedia</a> anunció hace unos días que el proyecto que llevaban tanto en secreo llamado Pandora, será la continuación de Zinc 2.5. El paso de Zinc 2.5 a Pandora es el salto más grande que hacen en un actualización.</p>
<p>Actualmente ya existe una versión Beta que hace tiempo están usando los testers, aunque el lanzamiento público de esta versión Beta será, en un principio, a lo largo de este mes de Diciembre. La primera versión estable quieren sacarlo a comienzos de 2008. En este blog tenemos un <a href="http://www.jssmedia.com/?p=6" target="_blank">preview </a>de Pandora.  La verdad que no tiene nada que ver con la versión actual de Zinc.</p>
<p>Entre las nuevas características de Pandora cabe destacar:</p>
<ul>
<li>Los proyectos son un 500% más veloces. (Esto se agradecerá mucho, ya que a veces tardaban una eternidad en cargarse)</li>
<li>{mdm}Script 3.0  Se ha re-escrito completamente el código de mdm. Con nuevas funciones.</li>
<li>Mayor compatibilidad entre Windows y Mac OSX. Ahora prácticamente el 80% de código sólo funciona en Windows.</li>
<li>Lavado de cara total. Como podemos ver en el screenshot anterior.</li>
</ul>
<p>La verdad que tiene muy buena pinta y espero que vayan sacando pronto nuevas notícias así como la versión Beta pública.</p>
<p><a href="http://www.multidmedia.com/devlabs/pandora/" title="Pandora" target="_blank">Más Info. </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/mdm-pandora-sera-zinc-30/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
