<?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>CODIGO.actionscript &#187; swfobject</title>
	<atom:link href="http://www.codigoactionscript.org/tag/swfobject/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigoactionscript.org</link>
	<description>Blog de programación en ActionScript. Tips, tutoriales, ejemplos de Adobe Flash, Flex y AIR</description>
	<lastBuildDate>Mon, 31 May 2010 14:58:30 +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>Visualizar menús desplegables HTML por encima de películas Flash</title>
		<link>http://www.codigoactionscript.org/visualizar-menus-desplegables-html-por-encima-de-peliculas-flash/</link>
		<comments>http://www.codigoactionscript.org/visualizar-menus-desplegables-html-por-encima-de-peliculas-flash/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 20:29:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=526</guid>
		<description><![CDATA[<p>Este es otro tip "only for dummies", que es muy sencillo pero que da dolores de cabeza a la gente que apenas se inicia en el mundo de Ajax únicamente utilizando los códigos automáticos de Spry que trae Dreamweaver.</p>
<p>El problema que muchos se encuentran es que los menús desplegables les quedan por debajo de las peliculas Flash, aun estando está en un index inferior.</p>

<p>Esto tiene una solución muy sencilla, y pasa por añadirle la propiedad wmode de la pelicula Flash a valor invisible.</p>
<p>De manera que si estamos utilizando SwfObject para [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/sustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax/' rel='bookmark' title='Permanent Link: Sustituir un SWF por otro sin refrescar el HTML con Ajax'>Sustituir un SWF por otro sin refrescar el HTML con Ajax</a></li>
<li><a href='http://www.codigoactionscript.org/51/' rel='bookmark' title='Permanent Link: Texto con enlaces en Flash al estilo HTML'>Texto con enlaces en Flash al estilo HTML</a></li>
<li><a href='http://www.codigoactionscript.org/el-nuevo-motor-de-texto-text-layout-framework-de-flash-cs5/' rel='bookmark' title='Permanent Link: El nuevo motor de texto (Text Layout Framework) de Flash CS5'>El nuevo motor de texto (Text Layout Framework) de Flash CS5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Este es otro <a href="http://www.cristalab.com/tips/tags/php">tip</a> "<em>only for dummies"</em>, que es muy sencillo pero que da dolores de cabeza a la gente que apenas se inicia en el mundo de <a href="http://www.cristalab.com/tips/tags/ajax">Ajax</a> únicamente utilizando los códigos automáticos de <a href="http://www.cristalab.com/tips/tags/spry">Spry</a> que trae <a href="http://www.cristalab.com/tips/tags/dreamweaver">Dreamweaver</a>.</p>
<p>El problema que muchos se encuentran es que los menús desplegables les quedan por debajo de las peliculas <a href="http://www.cristalab.com/tips/tags/flash">Flash</a>, aun estando está en un index inferior.</p>
<div align="center"><img src="http://www.cristalab.com/images/tips//html/divflash/cap_020.jpg" alt="" /></div>
<p>Esto tiene una solución muy sencilla, y pasa por añadirle la propiedad <strong>wmode</strong> de la pelicula Flash a valor invisible.</p>
<p>De manera que si estamos utilizando <a href="http://www.cristalab.com/tips/tags/swfobject">SwfObject</a> para colocar el SWF, utilizariamos este código:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-3">
<div class="actionscript">&lt;script <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">"text/javascript"</span>&gt;&nbsp;&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> flashvars = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> params = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">attributes</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;params.<span style="color: #006600;">wmode</span> = <span style="color: #ff0000;">"transparent"</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;swfobject.<span style="color: #006600;">embedSWF</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"a.swf"</span>, <span style="color: #ff0000;">"flash"</span>, <span style="color: #ff0000;">"320"</span>, <span style="color: #ff0000;">"240"</span>, <span style="color: #ff0000;">"10.0.0"</span>, <span style="color: #ff0000;">"expressInstall.swf"</span>, flashvars, params, <span style="color: #0066CC;">attributes</span><span style="color: #66cc66;">&#41;</span>;<br />
&lt;/script&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Esta línea de código es suficiente para resolver el problema.</p>
<div align="center"><img src="http://www.cristalab.com/images/tips//html/divflash/cap_021.jpg" alt="" /></div>
<p><a href="http://www.cristalab.com/images/tips//html/divflash/#">Aqui el ejemplo</a>, por si alguien lo quiere ver <img src='http://www.codigoactionscript.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Visualizar%20men%C3%BAs%20desplegables%20HTML%20por%20encima%20de%20pel%C3%ADculas%20Flash%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F&amp;t=Visualizar%20men%C3%BAs%20desplegables%20HTML%20por%20encima%20de%20pel%C3%ADculas%20Flash" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F&amp;title=Visualizar%20men%C3%BAs%20desplegables%20HTML%20por%20encima%20de%20pel%C3%ADculas%20Flash&amp;annotation=Este%20es%20otro%20%20%22%2C%20que%20es%20muy%20sencillo%20pero%20que%20da%20dolores%20de%20cabeza%20a%20la%20gente%20que%20apenas%20se%20inicia%20en%20el%20mundo%20de%20%20%C3%BAnicamente%20utilizando%20los%20c%C3%B3digos%20autom%C3%A1ticos%20de%20%20que%20trae%20.%0D%0A%0D%0AEl%20problema%20que%20muchos%20se%20encuentran%20es%20que%20los%20men%C3%BAs%20desplegables%20" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F&amp;title=Visualizar%20men%C3%BAs%20desplegables%20HTML%20por%20encima%20de%20pel%C3%ADculas%20Flash&amp;notes=Este%20es%20otro%20%20%22%2C%20que%20es%20muy%20sencillo%20pero%20que%20da%20dolores%20de%20cabeza%20a%20la%20gente%20que%20apenas%20se%20inicia%20en%20el%20mundo%20de%20%20%C3%BAnicamente%20utilizando%20los%20c%C3%B3digos%20autom%C3%A1ticos%20de%20%20que%20trae%20.%0D%0A%0D%0AEl%20problema%20que%20muchos%20se%20encuentran%20es%20que%20los%20men%C3%BAs%20desplegables%20" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Visualizar%20men%C3%BAs%20desplegables%20HTML%20por%20encima%20de%20pel%C3%ADculas%20Flash&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fvisualizar-menus-desplegables-html-por-encima-de-peliculas-flash%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/sustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax/' rel='bookmark' title='Permanent Link: Sustituir un SWF por otro sin refrescar el HTML con Ajax'>Sustituir un SWF por otro sin refrescar el HTML con Ajax</a></li>
<li><a href='http://www.codigoactionscript.org/51/' rel='bookmark' title='Permanent Link: Texto con enlaces en Flash al estilo HTML'>Texto con enlaces en Flash al estilo HTML</a></li>
<li><a href='http://www.codigoactionscript.org/el-nuevo-motor-de-texto-text-layout-framework-de-flash-cs5/' rel='bookmark' title='Permanent Link: El nuevo motor de texto (Text Layout Framework) de Flash CS5'>El nuevo motor de texto (Text Layout Framework) de Flash CS5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/visualizar-menus-desplegables-html-por-encima-de-peliculas-flash/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Sustituir un SWF por otro sin refrescar el HTML con Ajax</title>
		<link>http://www.codigoactionscript.org/sustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax/</link>
		<comments>http://www.codigoactionscript.org/sustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 23:16:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Básico]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://www.codigoactionscript.org/?p=519</guid>
		<description><![CDATA[<p>En este sencillo ejemplo mostraré como sustituir un archivo SWF de una página HTML por otro sin necesidad de refrescar la página. (ejemplo)</p>
<p>Para ello utilizaremos SwfObject y JQuery. En realidad JQuery no haria falta utilizarlo ya que quien sustituirá el SWF será SwfObject y podriamos hacer la llamada con una simple funcion Javascript. Pero nunca está de más ver un poco de Ajax</p>
<p>Para empezar nos descargaremos las librerias:</p>

http://code.google.com/p/swfobject/downloads/list
 http://docs.jquery.com/Downloading_jQuery#Download_jQuery

<p>.
Lo primero será colocar nuestra pelicula SWF dentro de la página HTML con SwfObject de la forma típica. Creando una DIV y [...]


Related posts:<ol><li><a href='http://www.codigoactionscript.org/visualizar-menus-desplegables-html-por-encima-de-peliculas-flash/' rel='bookmark' title='Permanent Link: Visualizar menús desplegables HTML por encima de películas Flash'>Visualizar menús desplegables HTML por encima de películas Flash</a></li>
<li><a href='http://www.codigoactionscript.org/51/' rel='bookmark' title='Permanent Link: Texto con enlaces en Flash al estilo HTML'>Texto con enlaces en Flash al estilo HTML</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>En este sencillo ejemplo mostraré como <strong>sustituir un archivo SWF</strong> de una página HTML por otro <strong>sin necesidad de refrescar la página</strong>. (<a href="http://www.cristalab.com/zguillez/ajax/putswf/index.html">ejemplo</a>)</p>
<p>Para ello utilizaremos <a href="http://www.cristalab.com/tips/tags/swfobject">SwfObject</a> y JQuery. En realidad <a href="http://www.cristalab.com/tips/tags/jquery">JQuery</a> no haria falta utilizarlo ya que quien sustituirá el SWF será SwfObject y podriamos hacer la llamada con una simple funcion <a href="http://www.cristalab.com/tips/tags/javascript">Javascript</a>. Pero nunca está de más ver un poco de <a href="http://www.cristalab.com/tips/tags/ajax">Ajax</a></p>
<p>Para empezar nos descargaremos las librerias:</p>
<ul>
<li><a href="http://code.google.com/p/swfobject/downloads/list">http://code.google.com/p/swfobject/downloads/list</a></li>
<li> <a href="http://docs.jquery.com/Downloading_jQuery#Download_jQuery">http://docs.jquery.com/Downloading_jQuery#Download_jQuery</a></li>
</ul>
<p>.<br />
Lo primero será colocar nuestra pelicula SWF dentro de la página HTML con SwfObject de la forma típica. Creando una DIV y asignandole ahí la pelicula SWF. Lo haremos creando una función que reciba el parámetro de la URL del SWF para poder volver a llamar esa función más adelante:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-14">
<div class="actionscript">&lt;script src=<span style="color: #ff0000;">"swfobject.js"</span> <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">"text/javascript"</span>&gt;&lt;/script&gt; &lt;script <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">"text/javascript"</span>&gt;<span style="color: #808080; font-style: italic;">// &lt;![CDATA[</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> putSWF<span style="color: #66cc66;">&#40;</span>swf<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swfobject.<span style="color: #006600;">embedSWF</span><span style="color: #66cc66;">&#40;</span>swf, <span style="color: #ff0000;">"flash"</span>, <span style="color: #ff0000;">"320"</span>, <span style="color: #ff0000;">"240"</span>, <span style="color: #ff0000;">"10.0.0"</span>, <span style="color: #ff0000;">"expressInstall.swf"</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; putSWF<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"a.swf"</span><span style="color: #66cc66;">&#41;</span>;</p>
<p><span style="color: #808080; font-style: italic;">// ]]&gt;&lt;/script&gt; </span></div>
</div>
</div>
</div>
<p></p>
<p>Ahora crearemos unos cuantos links con los que queremos cambiar de pelicula SWF pero sin cambiar de página HTML. Los colocaremos en otro DIV y asignaremos a cada enlace un ID diferente:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-15">
<div class="actionscript">&lt;div id=<span style="color: #ff0000;">"botonera"</span>&gt;</p>
<p>&lt;a id=<span style="color: #ff0000;">"a"</span> href=<span style="color: #ff0000;">"#"</span>&gt;a.<span style="color: #006600;">swf</span>&lt;/a&gt;<br />
- &lt;a id=<span style="color: #ff0000;">"b"</span> href=<span style="color: #ff0000;">"#"</span>&gt;b.<span style="color: #006600;">swf</span>&lt;/a&gt;<br />
- &lt;a id=<span style="color: #ff0000;">"c"</span> href=<span style="color: #ff0000;">"#"</span>&gt;c.<span style="color: #006600;">swf</span>&lt;/a&gt;&lt;/div&gt;</div>
</div>
</div>
</div>
<p></p>
<p>Podríamos hacer que cada enlace volviera a ejecutar la función Javascript y listo, pero haremos el ejemplo más c00l utilizando JQuery.</p>
<p>Primero definiremos un objeto en el que guardaremos una relación entre los ID de los enlaces y la pelicula SWF que han de abrir.</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-16">
<div class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> swfRef = <span style="color: #66cc66;">&#123;</span><br />
a: <span style="color: #ff0000;">"a.swf"</span>,<br />
b: <span style="color: #ff0000;">"b.swf"</span>,<br />
c: <span style="color: #ff0000;">"c.swf"</span><br />
<span style="color: #66cc66;">&#125;</span>;</div>
</div>
</div>
</div>
<p></p>
<p>Y por último crearemos una función de JQuery que asignará a cada enlace la llamada a la función Javascript pasandole el parámetro que toca. Tambien sustituiremos la primera llamada.</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-17">
<div class="actionscript">$<span style="color: #66cc66;">&#40;</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><br />
$.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>swfRef, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>i, val<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
$<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"#"</span> + i<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</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><br />
putSWF<span style="color: #66cc66;">&#40;</span>val<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
$<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"#a"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
</div>
<p></p>
<p>Y listo, ahora cada enlace sustituye el SWF por otro dentro de la misma página.</p>
<p>Aqui se puede ver el ejemplo: <a href="http://www.cristalab.com/zguillez/ajax/putswf/index.html">http://www.cristalab.com/zguillez/ajax/putswf/index.html</a></p>
<p>Y el código completo:</p>
<div id="codigo">
<div class="syntax_hilite">
<div id="actionscript-18">
<div class="actionscript">&lt;html&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> src=<span style="color: #ff0000;">"swfobject.js"</span>&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script src=<span style="color: #ff0000;">"lib/jquery/jquery-1.3.2.js"</span>&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> putSWF<span style="color: #66cc66;">&#40;</span>swf<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swfobject.<span style="color: #006600;">embedSWF</span><span style="color: #66cc66;">&#40;</span>swf, <span style="color: #ff0000;">"flash"</span>, <span style="color: #ff0000;">"320"</span>, <span style="color: #ff0000;">"240"</span>, <span style="color: #ff0000;">"10.0.0"</span>, <span style="color: #ff0000;">"expressInstall.swf"</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> swfRef = <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a: <span style="color: #ff0000;">"a.swf"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b: <span style="color: #ff0000;">"b.swf"</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c: <span style="color: #ff0000;">"c.swf"</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $.<span style="color: #006600;">each</span><span style="color: #66cc66;">&#40;</span>swfRef, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>i, val<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"#"</span> + i<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</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><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; putSWF<span style="color: #66cc66;">&#40;</span>val<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"#a"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">click</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=<span style="color: #ff0000;">"botonera"</span>&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a id=<span style="color: #ff0000;">"a"</span> href=<span style="color: #ff0000;">"#"</span>&gt;a.<span style="color: #006600;">swf</span>&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &lt;a id=<span style="color: #ff0000;">"b"</span> href=<span style="color: #ff0000;">"#"</span>&gt;b.<span style="color: #006600;">swf</span>&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &lt;a id=<span style="color: #ff0000;">"c"</span> href=<span style="color: #ff0000;">"#"</span>&gt;c.<span style="color: #006600;">swf</span>&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=<span style="color: #ff0000;">"flash"</span>&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</div>
</div>
</div>
</div>
<p></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Comparte:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://meneame.net/submit.php?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F" title="Meneame"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/meneame.png" title="Meneame" alt="Meneame" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Sustituir%20un%20SWF%20por%20otro%20sin%20refrescar%20el%20HTML%20con%20Ajax%20-%20http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F" title="Twitter"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F&amp;t=Sustituir%20un%20SWF%20por%20otro%20sin%20refrescar%20el%20HTML%20con%20Ajax" title="Facebook"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F&amp;title=Sustituir%20un%20SWF%20por%20otro%20sin%20refrescar%20el%20HTML%20con%20Ajax&amp;annotation=En%20este%20sencillo%20ejemplo%20mostrar%C3%A9%20como%20%20de%20una%20p%C3%A1gina%20HTML%20por%20otro%20.%20%28%29%0D%0A%0D%0APara%20ello%20utilizaremos%20%20y%20JQuery.%20En%20realidad%20%20no%20haria%20falta%20utilizarlo%20ya%20que%20quien%20sustituir%C3%A1%20el%20SWF%20ser%C3%A1%20SwfObject%20y%20podriamos%20hacer%20la%20llamada%20con%20una%20simple%20funcion" title="Google Bookmarks"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F&amp;title=Sustituir%20un%20SWF%20por%20otro%20sin%20refrescar%20el%20HTML%20con%20Ajax&amp;notes=En%20este%20sencillo%20ejemplo%20mostrar%C3%A9%20como%20%20de%20una%20p%C3%A1gina%20HTML%20por%20otro%20.%20%28%29%0D%0A%0D%0APara%20ello%20utilizaremos%20%20y%20JQuery.%20En%20realidad%20%20no%20haria%20falta%20utilizarlo%20ya%20que%20quien%20sustituir%C3%A1%20el%20SWF%20ser%C3%A1%20SwfObject%20y%20podriamos%20hacer%20la%20llamada%20con%20una%20simple%20funcion" title="del.icio.us"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F" title="Technorati"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="mailto:?subject=Sustituir%20un%20SWF%20por%20otro%20sin%20refrescar%20el%20HTML%20con%20Ajax&amp;body=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F" title="email"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.codigoactionscript.org%2Fsustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax%2F&amp;partner=sociable" title="Print"><img src="http://www.codigoactionscript.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>


<p>Related posts:<ol><li><a href='http://www.codigoactionscript.org/visualizar-menus-desplegables-html-por-encima-de-peliculas-flash/' rel='bookmark' title='Permanent Link: Visualizar menús desplegables HTML por encima de películas Flash'>Visualizar menús desplegables HTML por encima de películas Flash</a></li>
<li><a href='http://www.codigoactionscript.org/51/' rel='bookmark' title='Permanent Link: Texto con enlaces en Flash al estilo HTML'>Texto con enlaces en Flash al estilo HTML</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.codigoactionscript.org/sustituir-un-swf-por-otro-sin-refrescar-el-html-con-ajax/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
