<?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>Silenceway &#187; Actionscript</title>
	<atom:link href="http://byronh.axul.net/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://byronh.axul.net</link>
	<description>Notas y apuntes de a ratos...</description>
	<lastBuildDate>Tue, 08 Nov 2011 22:41:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Abrir documentos desde un proyector de flash</title>
		<link>http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/</link>
		<comments>http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 18:52:21 +0000</pubDate>
		<dc:creator>Byron H</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Programar]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://byronh.axul.net/?p=148</guid>
		<description><![CDATA[Hace poco estaba diseñando una multimedia en flash que requería abrir algunos documentos externos: algunos archivos pdf, imágenes y archivos doc entre otros. Leyendo un artículo de Northcode llamado Conquering FSCommand EXEC Part 1 : Proxy que habla sobre las restricciones existentes en el comando exec de flash y haciendo pruebas con el proxy.exe que [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_mustard" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fbyronh.axul.net%252F2011%252F01%252F15%252Fabrir-documentos-desde-un-proyector-de-flash%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FhkCGC1%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Abrir%20documentos%20desde%20un%20proyector%20de%20flash%22%20%7D);"></div>
<p>Hace poco estaba diseñando una multimedia en flash que requería abrir algunos documentos externos: algunos archivos pdf, imágenes y archivos doc entre otros.<br />
Leyendo un artículo de <a href="http://byronh.axul.net/go.php?http://www.northcode.com" title="(43 hits)">Northcode</a> llamado <a href="http://byronh.axul.net/go.php?http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy" title="(51 hits)">Conquering FSCommand EXEC Part 1 : Proxy</a> que habla sobre las restricciones existentes en el comando <em>exec</em> de flash y haciendo pruebas con el proxy.exe que está publicado en la página, me di cuenta que para uno o dos archivos es suficiente, pero la multimedia en que estaba trabajando tenía una documentación mucho mayor y quería, además, poder organizarla en directorios.<br />
Así que decidí crear una aplicación que me permitiera abrir archivos usando como puente el portapapeles de windows.<br />
Es fácil de usar ya que es sólo crear en el actionscript de la película:<br />
<code><br />
var cmd = "myfile.pdf";<br />
System.setClipboard(cmd);<br />
fscommand("exec", "execClip.exe");<br />
</code><br />
Y es suficiente ya que el execClip carga un archivo de procesamiento por lotes (BAT) que se encarga de enviar la llamada al sistema operativo para ejecutar la aplicación asociada con ese documento.<br />
Se puede usar navegación en directorios usando:<br />
<code><br />
var cmd = "....\\docs\\myfile.pdf";<br />
</code><br />
La aplicación está publicada en <a href="http://byronh.axul.net/go.php?http://www.silencesoft.net/" title="(150 hits)">Silencesoft</a>:<br />
<a href="http://byronh.axul.net/go.php?http://www.silencesoft.net/execClip/execClip.php" title="(42 hits)">execClip</a>.<br />
También hay un ejemplo de publicación en formato CS3.</p>

<hr />
<p><small>&copy; Byron H for <a href="http://byronh.axul.net">Silenceway</a>, 2011. |
<a href="http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/">Permalink</a> |
<a href="http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/&amp;title=Abrir documentos desde un proyector de flash">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://byronh.axul.net/2011/01/15/abrir-documentos-desde-un-proyector-de-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cookies desde Flash</title>
		<link>http://byronh.axul.net/2007/10/21/cookies-desde-flash/</link>
		<comments>http://byronh.axul.net/2007/10/21/cookies-desde-flash/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 03:09:27 +0000</pubDate>
		<dc:creator>Byron H</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Programar]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://byronh.axul.net/2007/10/21/cookies-desde-flash/</guid>
		<description><![CDATA[Buscando en la internet me encontrÃ© este muy interesante cÃ³digo para manejar cookies usando javascript desde actionscript: Foro en Actionscript.org. CÃ³digo Actionscript: import flash.external.ExternalInterface; function GetCookie(cookieName) { var r = ""; var search = cookieName+"="; var js = "function get_cookie(){return document.cookie;}"; var cookieVariable = ExternalInterface.call(js).toString(); if (cookieVariable.length>0) { offset = cookieVariable.indexOf(search); if (offset != -1) [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_mustard" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fbyronh.axul.net%252F2007%252F10%252F21%252Fcookies-desde-flash%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Cookies%20desde%20Flash%22%20%7D);"></div>
<p>Buscando en la internet me encontrÃ© este muy interesante cÃ³digo para manejar cookies usando javascript desde actionscript:<br />
<a href="http://byronh.axul.net/go.php?http://actionscript.org/forums/showthread.php3?t=96359" title="(227 hits)">Foro en Actionscript.org</a>.</p>
<p>CÃ³digo Actionscript:<br />
<code><br />
import flash.external.ExternalInterface;<br />
function GetCookie(cookieName) {<br />
	var r = "";<br />
	var search = cookieName+"=";<br />
	var js = "function get_cookie(){return document.cookie;}";<br />
	var cookieVariable = ExternalInterface.call(js).toString();<br />
	if (cookieVariable.length>0) {<br />
		offset = cookieVariable.indexOf(search);<br />
		if (offset != -1) {<br />
			offset += search.length;<br />
			end = cookieVariable.indexOf(";", offset);<br />
			if (end == -1) {<br />
				end = cookieVariable.length;<br />
			}<br />
			r = unescape(cookieVariable.substring(offset, end));<br />
		}<br />
	}<br />
	return r;<br />
}<br />
function SetCookie(cookieName, cookieValue) {<br />
    js = "javascript:function sc(){";<br />
    js += "var c = escape('" + cookieName + "') + '=' + escape('" + cookieValue + "') + '; path=/';";<br />
    js += "document.cookie = c;";<br />
    js += "}sc();";<br />
    getURL(js);<br />
}<br />
</code></p>

<hr />
<p><small>&copy; Byron H for <a href="http://byronh.axul.net">Silenceway</a>, 2007. |
<a href="http://byronh.axul.net/2007/10/21/cookies-desde-flash/">Permalink</a> |
<a href="http://byronh.axul.net/2007/10/21/cookies-desde-flash/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://byronh.axul.net/2007/10/21/cookies-desde-flash/&amp;title=Cookies desde Flash">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://byronh.axul.net/2007/10/21/cookies-desde-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

