<?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>erufenix .::. blog &#187; Flash</title>
	<atom:link href="http://erufenix.ingeenia.net/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://erufenix.ingeenia.net</link>
	<description>Otro Blog de WordPress</description>
	<lastBuildDate>Thu, 01 Apr 2010 21:10:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problema con swfobject y update de flash en ie7</title>
		<link>http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/</link>
		<comments>http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 18:16:14 +0000</pubDate>
		<dc:creator>erufenix</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://erufenix.codesys.org/problema-con-swfobject-y-update-de-flash-en-ie7</guid>
		<description><![CDATA[Para los que no saben existe algo llamado swfobject que es un script que sirve para añadir de forma fácil y segura animaciones flash en una pagina y este script es el que uso yo.
Vamos al grano resulta que hoy abrí mi blog con el chafasplorer 7 y como no tenia el plugin de flash [...]


Related posts:<ol><li><a href='http://erufenix.ingeenia.net/trs_sw/' rel='bookmark' title='Permanent Link: Probando swfObject'>Probando swfObject</a></li><li><a href='http://erufenix.ingeenia.net/ebook-de-flash/' rel='bookmark' title='Permanent Link: ebooks de flash'>ebooks de flash</a></li><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Para los que no saben existe algo llamado <a href="http://blog.deconcept.com/swfobject/">swfobject</a> que es un script que sirve para añadir de forma fácil y segura animaciones flash en una pagina y este script es el que uso yo.</p>
<p>Vamos al grano resulta que hoy abrí mi blog con el chafasplorer 7 y como no tenia el plugin de flash pues entonces lo instale pero al reiniciar, sopas ninguna animación flash se visualizaba.</p>
<p>El problema se presenta al actualizar el plugin de flash para chafasplorer 7 el swfobject ya no funciona bien. Gogleando por la red encontré la <a href="http://www.forosdelweb.com/f16/swfobject-deja-funcionar-tras-update-flash-557974/">solución</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> so <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> SWFObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;animacion.swf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;sotester&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;743&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;133&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;8&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#0000FF&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Cambiar por:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> so <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> SWFObject<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;animacion.swf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;sotester&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;743&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;133&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;false&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#0000FF&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Como ven solo se cambia el parámetro de la vercion de flash por false.</p>
<p>Por favor ya dejen de usar chafasplorer  para navegar, ya dejen eso navegador lento e inseguro y que además no cumple con los estandares web, mejor&#8230; <a href="http://www.mozilla.com/en-US/">get firefox</a></p>
<p align="center"><img src="http://securebrowsing.org/images/ff_vs_ie.jpg"/></p>


<p>Related posts:<ol><li><a href='http://erufenix.ingeenia.net/trs_sw/' rel='bookmark' title='Permanent Link: Probando swfObject'>Probando swfObject</a></li><li><a href='http://erufenix.ingeenia.net/ebook-de-flash/' rel='bookmark' title='Permanent Link: ebooks de flash'>ebooks de flash</a></li><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash + php + mysql</title>
		<link>http://erufenix.ingeenia.net/flash-php-mysql/</link>
		<comments>http://erufenix.ingeenia.net/flash-php-mysql/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 20:11:53 +0000</pubDate>
		<dc:creator>erufenix</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://erufenix.codesys.org/155</guid>
		<description><![CDATA[Hace unos post publique como utilizar flash + php, esta ocasión veremos como hacer conexión con una BD de mysql.
Empecemos por hacer una página php que contenga las instrucciones para hacer la conexión con la BD y funciones básicas como altas, bajas, búsqueda y modificaciones.

Base usada en el ejemplo


CREATE TABLE `agenda` &#40;
  `id` int&#40;11&#41; [...]


Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li><li><a href='http://erufenix.ingeenia.net/paginas-seguras-con-phpsp/' rel='bookmark' title='Permanent Link: Páginas seguras con PHPsp'>Páginas seguras con PHPsp</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Hace unos post publique como utilizar <a href="http://erufenix.codesys.org/flash-php">flash + php</a>, esta ocasión veremos como hacer conexión con una BD de <a href="http://es.wikipedia.org/wiki/Mysql">mysql.</a></p>
<p>Empecemos por hacer una página php que contenga las instrucciones para hacer la conexión con la BD y funciones básicas como altas, bajas, búsqueda y modificaciones.</p>
<ul>
<li>Base usada en el ejemplo</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`agenda`</span> <span style="color: #FF00FF;">&#40;</span>
  <span style="color: #008000;">`id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">11</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`nombre`</span> <span style="color: #000099;">char</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">30</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">collate</span> latin1_general_ci <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #008000;">`fon`</span> <span style="color: #000099;">char</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">collate</span> latin1_general_ci <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
  <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span>  <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span>MyISAM  <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>latin1 <span style="color: #CC0099; font-weight: bold;">COLLATE</span><span style="color: #CC0099;">=</span>latin1_general_ci<span style="color: #000033;">;</span></pre></div></div>

<ul>
<li>Conexión</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$DBhost</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBuser</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;usuario_de_la_base&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBpass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;password_de_la_base&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBName</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;nombre_de_la_base&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// conectando al servidor MySQL</span>
<span style="color: #000088;">$DBConn</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBhost</span><span style="color: #339933;">,</span><span style="color: #000088;">$DBuser</span><span style="color: #339933;">,</span><span style="color: #000088;">$DBpass</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;error en conexión: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// selección de la base</span>
<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBName</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBConn</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;error al seleccionar la base: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<ul>
<li>altas, bajas, etc.</li>
</ul>
<div id="fbdo" class="show">

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$accion</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'regi'</span><span style="color: #339933;">:</span>
	  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$nombre</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;  &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fon</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$consulta</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;INSERT INTO `agenda` (`nombre`, `fon`) VALUES('<span style="color: #006699; font-weight: bold;">$nombre</span>','<span style="color: #006699; font-weight: bold;">$fon</span>');&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$resultado</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$consulta</span><span style="color: #009900;">&#41;</span>or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;error en la consulta&quot;</span><span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'leer'</span><span style="color: #339933;">:</span>
	    <span style="color: #000088;">$consulta</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT * FROM `agenda`;&quot;</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$resultado</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$consulta</span><span style="color: #009900;">&#41;</span>or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;error en la consulta&quot;</span><span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #000088;">$nfilas</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$resultado</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;filas=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$nfilas</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&amp;registros=&quot;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fila</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_row</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$resultado</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		    <span style="color: #009900;">&#123;</span>
		     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;b&gt;Nombre:&lt;/b&gt; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;b&gt;Teléfono:&lt;/b&gt; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'</span><span style="color: #339933;">;</span>
		    <span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'busca'</span><span style="color: #339933;">:</span>
	     <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$crite</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;byname&quot;</span><span style="color: #009900;">&#41;</span>
	        <span style="color: #009900;">&#123;</span>
                   <span style="color: #000088;">$consulta</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT * FROM `agenda` WHERE `nombre`='<span style="color: #006699; font-weight: bold;">$valor</span>';&quot;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
	    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$crite</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;byfon&quot;</span><span style="color: #009900;">&#41;</span>
	        <span style="color: #009900;">&#123;</span>
                  <span style="color: #000088;">$consulta</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;SELECT * FROM `agenda` WHERE `fon`=<span style="color: #006699; font-weight: bold;">$valor</span> ;&quot;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
	    <span style="color: #000088;">$resultado</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$consulta</span><span style="color: #009900;">&#41;</span>or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;error en la consulta&quot;</span><span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&amp;buscar=&quot;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fila</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_row</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$resultado</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	            <span style="color: #009900;">&#123;</span>
		      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;b&gt;Nombre:&lt;/b&gt; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;b&gt;Teléfono:&lt;/b&gt; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&lt;br /&gt;'</span>
                    <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>En esta código usaremos la sentencia <a href="http://www.php.net/manual/es/control-structures.switch.php">switch</a> para realizar las diferentes operaciones de la BD, los valores de la variable $accion se mandaran desde flash</p>
<p>En flash creamos un campo de texto dinámico en el cual cargaremos los registros de la base, para esto utilizaremos la instrucciones loadvars, load y onload para poner el valor de $accion=leer y así llamar a dicha función en la pagina php.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> leer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
       <span style="color: #66cc66;">&#123;</span>
	  regis=<span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LoadVars</span>;
          regis.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">_global</span>.<span style="color: #006600;">server</span>+<span style="color: #ff0000;">&quot;phpf/agenda.php?accion=leer&quot;</span><span style="color: #66cc66;">&#41;</span>;
          regis.<span style="color: #0066CC;">onLoad</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>
                   registro.<span style="color: #0066CC;">htmlText</span>=<span style="color: #0066CC;">this</span>.<span style="color: #006600;">registros</span>;
                 <span style="color: #66cc66;">&#125;</span>
      <span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>
Donde regis es la variable que guarda el resultado de la acción leer de la pagina php, registro es el campo dinamico que mostrara los resultados y _global.server tiene el valor del host donde se ejecuta el script php.
</p>
<p>
Para insertar registros, creamos 2 campos tipo input, usamos la sentencia sendAndLoad la cual carga los valores contenidos en un objeto LoadVars (datos para este ejemplo) y los envía mediante la URl al servidor.
</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">datos = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LoadVars</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
datos.<span style="color: #006600;">nombre</span> = nom;
datos.<span style="color: #006600;">fon</span> = fo;
<span style="color: #000000; font-weight: bold;">function</span> registra<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
       <span style="color: #66cc66;">&#123;</span>
        datos.<span style="color: #0066CC;">sendAndLoad</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">_global</span>.<span style="color: #006600;">server</span> + <span style="color: #ff0000;">&quot;phpf/agenda.php?accion=regi&quot;</span>, datos, <span style="color: #ff0000;">&quot;POST&quot;</span><span style="color: #66cc66;">&#41;</span>;
        datos.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>success<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>success<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
				nombre.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
				fon.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
				msg.<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Datos registrados&quot;</span>;
				<span style="color: #66cc66;">&#125;</span>
		      <span style="color: #66cc66;">&#125;</span>
     <span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>
Donde datos.nombre = nom contiene el valor del primer campo tipo input, y datos.fon = fo el valor del segundo campo.
</p>
<p>Teniendo estas dos funciones (leer e insertar) y con un poco de más de programación e imaginación podemos implementar las opciones de eliminación y búsqueda.</p>
<p><a href="http://erufenix.codesys.org/descargas/flash_exa/phpf.rar" title="phpf.rar" target="_self">archivos del ejemplo</a></p>
<p id="fbd" align="center">22</p>
<p><script type="text/javascript">
	var fbd = new SWFObject("http://erufenix.codesys.org/phpf/registra2.swf","single","480","400","8");
       fbd.write("fbd");
</script>
</div>
<div id="status1-fbdo">
<a href="javascript:oculta3('fbdo');">Seguir leyendo</a>
</div>
<div id="status2-fbdo" class="show" >
<a href="javascript:oculta3('fbdo');">ocultar</a>
</div>


<p>Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li><li><a href='http://erufenix.ingeenia.net/paginas-seguras-con-phpsp/' rel='bookmark' title='Permanent Link: Páginas seguras con PHPsp'>Páginas seguras con PHPsp</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://erufenix.ingeenia.net/flash-php-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ebooks de flash</title>
		<link>http://erufenix.ingeenia.net/ebook-de-flash/</link>
		<comments>http://erufenix.ingeenia.net/ebook-de-flash/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 08:57:34 +0000</pubDate>
		<dc:creator>erufenix</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ebook y book]]></category>

		<guid isPermaLink="false">http://erufenix.codesys.org/ebook-de-flash</guid>
		<description><![CDATA[Aquí les dejo unos cuantos ebooks de flash. hay de todos los niveles: de principiante a profesional. Abarcan diseño y actionscript.

Lista de libros:

AdvancED ActionScript Components.
Flash Application Design Solutions.
Flash 8 ActionScript -Training from the Source.
Flash 8 Projects for Learning Animation and Interactivity.
Flash 8 Cookbook.
Flash 8 The Missing Manual.
Flash Professional 8 Unleashed.
Teach Yourself Macromedia Flash 8 in [...]


Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Aquí les dejo unos cuantos ebooks de flash. hay de todos los niveles: de principiante a profesional. Abarcan diseño y actionscript.</p>
<p><img src="http://erufenix.codesys.org/images/ebook_fla.png" width="250" height="310" alt="ebookflash" title="ebookflash" /></p>
<p>Lista de libros:</p>
<ul>
<li>AdvancED ActionScript Components.</li>
<li>Flash Application Design Solutions.</li>
<li>Flash 8 ActionScript -Training from the Source.</li>
<li>Flash 8 Projects for Learning Animation and Interactivity.</li>
<li>Flash 8 Cookbook.</li>
<li>Flash 8 The Missing Manual.</li>
<li>Flash Professional 8 Unleashed.</li>
<li>Teach Yourself Macromedia Flash 8 in 24 Hour</li>
</ul>
<p>Todos los libros están en un archivo rar dividido en 7 partes</p>
<p><span><br />
<a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part1.rar" title="parte1" target="_self">parte1 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part2.rar" title="parte2" target="_self">parte2 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part3.rar" title="parte3" target="_self">parte3 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part4.rar" title="parte4" target="_self">parte4 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part5.rar" title="parte5"target="_self">parte5 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part6.rar" title="parte6" target="_self">parte6 </a><a href="http://erufenix.codesys.org/descargas/ebooks/flash/bookShare.part7.rar"title="parte7" target="_self">parte7 </a><br />
</span></p>


<p>Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://erufenix.ingeenia.net/ebook-de-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash + php</title>
		<link>http://erufenix.ingeenia.net/flash-php/</link>
		<comments>http://erufenix.ingeenia.net/flash-php/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 20:45:47 +0000</pubDate>
		<dc:creator>erufenix</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://erufenix.codesys.org/flash-php</guid>
		<description><![CDATA[Leer un archivó php en flash es muy sencillo, comencemos con el ejemplo php.

$frase1=&#34;El acento ortográfico del idioma castellano se llama habitualmente acento gráfico o tilde, y es un símbolo (´) que se coloca sobre las vocales (á, é, í, ó, ú, Á, É, Í, Ó, Ú)&#34;;
$frase2=&#34;Algunos caracteres especiales:   ñ &#38; ¿ &#124; [...]


Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/ebook-de-flash/' rel='bookmark' title='Permanent Link: ebooks de flash'>ebooks de flash</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Leer un archivó php en flash es muy sencillo, comencemos con el ejemplo php.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$frase1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;El acento ortográfico del idioma castellano se llama habitualmente acento gráfico o tilde, y es un símbolo (´) que se coloca sobre las vocales (á, é, í, ó, ú, Á, É, Í, Ó, Ú)&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$frase2</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Algunos caracteres especiales:   ñ &amp; ¿ | ¬ °&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;frase1=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$frase1</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&amp;frase2=&quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$frase2</span><span style="color: #339933;">;</span></pre></div></div>

<p>Este ejemplo imprimirá lo siguiente</p>
<p>&lt;?php<br />
$frase1=&quot;El acento ortográfico del idioma castellano se llama habitualmente acento gráfico o tilde, y es un símbolo (´) que se coloca sobre las vocales (á, é, í, ó, ú, Á, É, Í, Ó, Ú)&quot;;<br />
$frase2=&quot;Algunos caracteres especiales:  ñ &amp; ¿ | ¬ °&quot; ;<br />
echo &quot;frase1=&quot;.$frase1 .&quot;&lt;br /&gt;&amp;frase2=&quot;. $frase2;<br />
?&gt;</p>
<p>Para este ejemplo <strong>frase1</strong> y <strong>frase2</strong> son las variables y el <strong>&amp;</strong> actua como un separador de las mismas, osea que para definir otra variable, esta tiene que antecederle un <strong>&amp;</strong>.</p>
<p>Después para leer  esas variables desde flash creamos una nueva pelicula de flash y agregamos dos campos de texto con el siguiente código.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">System</span>.<span style="color: #0066CC;">useCodepage</span> = <span style="color: #000000; font-weight: bold;">true</span>;
a=<span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LoadVars</span>;
a.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://erufenix.codesys.org/archivos/codif.php&quot;</span><span style="color: #66cc66;">&#41;</span>;
a.<span style="color: #0066CC;">onLoad</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>
	fra1.<span style="color: #006600;">frase1</span>.<span style="color: #0066CC;">htmlText</span>=<span style="color: #0066CC;">this</span>.<span style="color: #006600;">frase1</span>;
	fra2.<span style="color: #006600;">frase2</span>.<span style="color: #0066CC;">htmlText</span>=<span style="color: #0066CC;">this</span>.<span style="color: #006600;">frase2</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>new LoadVars crea un nuevo objeto para cargar las variables, onload descarga las variables especificadas por la <a href="http://es.wikipedia.org/wiki/URL">URL</a>, onLoad hace que esten disponibles las variables mientras se cumpla el controlador y finalmente System.useCodepage sirve para utilizar <a href="http://es.wikipedia.org/wiki/Unicode">unicode</a> en flash.</p>
<p>[kml_flashembed movie="http://erufenix.codesys.org/media/phpload.swf" height="120" width="400" /]</p>
<p>Ejemplo sin System.useCodepage.</p>
<p>[kml_flashembed movie="http://erufenix.codesys.org/media/phpload_nc.swf" height="120" width="400" /]</p>
<p><a href="http://erufenix.codesys.org/descargas/flash_exa/flash+php.rar">Archivos del ejemplo</a></p>


<p>Related posts:<ol><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/ebook-de-flash/' rel='bookmark' title='Permanent Link: ebooks de flash'>ebooks de flash</a></li><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://erufenix.ingeenia.net/flash-php/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Nueva categoía&#8230;flash</title>
		<link>http://erufenix.ingeenia.net/nueva-categoiaflash/</link>
		<comments>http://erufenix.ingeenia.net/nueva-categoiaflash/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 19:53:01 +0000</pubDate>
		<dc:creator>erufenix</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://erufenix.codesys.org/nueva-categoiaflash</guid>
		<description><![CDATA[

 

Pues con este post se inicia una nueva categoría, flash en la cual encontraras manuales, tutoriales, ejemplos animaciones y otras cosillas que se me vallan ocurriendo.







Related posts:Problema con swfobject y update de flash en ie7Flash + php + mysqlFlash + php


Related posts:<ol><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li></ol>]]></description>
			<content:encoded><![CDATA[<div style="border:0px solid #000000; width:99%;">
<div style="clear:both;">
<div style="float:left;width:25%;height:130px;background:  transparent url(http://erufenix.codesys.org/images/flashcs3.png) center center no-repeat;"> </div>
<div style="float:left;width:74%;border-left:0px solid #000000;">
<p>Pues con este post se inicia una nueva categoría, <a href="http://es.wikipedia.org/wiki/Adobe_Flash">flash</a> en la cual encontraras manuales, tutoriales, ejemplos animaciones y otras cosillas que se me vallan ocurriendo.</p>
</div>
</div>
<div style="clear:both;">
</div>
</div>


<p>Related posts:<ol><li><a href='http://erufenix.ingeenia.net/problema-con-swfobject-y-update-de-flash-en-ie7/' rel='bookmark' title='Permanent Link: Problema con swfobject y update de flash en ie7'>Problema con swfobject y update de flash en ie7</a></li><li><a href='http://erufenix.ingeenia.net/flash-php-mysql/' rel='bookmark' title='Permanent Link: Flash + php + mysql'>Flash + php + mysql</a></li><li><a href='http://erufenix.ingeenia.net/flash-php/' rel='bookmark' title='Permanent Link: Flash + php'>Flash + php</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://erufenix.ingeenia.net/nueva-categoiaflash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
