<?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"
	>

<channel>
	<title>Blog de Sergio Álvarez Fernández &#187; OsFlash - Flash Open Source</title>
	<atom:link href="http://blog.sergioalvarez.net/category/osflash-flash-open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sergioalvarez.net</link>
	<description>Blog de Sergio Álvarez Fernández</description>
	<pubDate>Sun, 11 May 2008 11:01:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Flashaid</title>
		<link>http://blog.sergioalvarez.net/flashaid/</link>
		<comments>http://blog.sergioalvarez.net/flashaid/#comments</comments>
		<pubDate>Sun, 16 Jul 2006 19:52:41 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=50</guid>
		<description><![CDATA[Navegando por ahí, he visto este proyecto OsFlash. Por lo que he leido la finalidad de este proyecto es hacer que desde aplicaciones AJAX se pueda detectar cuando el usuario tiene activas las funciones de accesibilidad. Y esto gracias a un simple swf de 1&#215;1.
Más información en la página del proyecto.
Saludos!;)
]]></description>
			<content:encoded><![CDATA[<p>Navegando por ahí, he visto este proyecto <a target="_blank" href="http://www.osflash.org">OsFlash</a>. Por lo que he leido la finalidad de este proyecto es hacer que desde aplicaciones AJAX se pueda detectar cuando el usuario tiene activas las funciones de accesibilidad. Y esto gracias a un simple swf de 1&#215;1.<br />
Más información en la <a target="_blank" href="http://www.osflash.org/flashaid">página del proyecto</a>.<br />
Saludos!;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/flashaid/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FlashDevelop 2.0 RC3</title>
		<link>http://blog.sergioalvarez.net/flashdevelop-20-rc3/</link>
		<comments>http://blog.sergioalvarez.net/flashdevelop-20-rc3/#comments</comments>
		<pubDate>Wed, 07 Jun 2006 09:57:45 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=40</guid>
		<description><![CDATA[
Esta mágnifica herramienta ha liberado una nueva versión con pequeños cambios y arreglos muy utiles para ayudarnos a desarrollar aplicaciones open source con flash.
Más info en la página del flashdevelop, y en concreto aquí.
Si aún no lo habeís probado, no sé a que estaís esperando!!
]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/fd.gif" /></p>
<p>Esta mágnifica herramienta ha liberado una nueva versión con <a target="_blank" href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.flashdevelop.org%2Fcommunity%2Fviewtopic.php%3Ft%3D567%26sid%3D38ff93d7ce40eca510eb51240b06e84f&#038;langpair=en%7Ces&#038;hl=en&#038;ie=UTF-8&#038;oe=UTF-8&#038;prev=%2Flanguage_tools">pequeños cambios</a> y arreglos muy utiles para ayudarnos a desarrollar aplicaciones open source con flash.</p>
<p>Más info en la página del <a target="_blank" href="http://www.flashdevelop.org">flashdevelop</a>, y en concreto <a target="_blank" href="http://www.flashdevelop.org/community/viewtopic.php?t=567&#038;sid=38ff93d7ce40eca510eb51240b06e84f">aquí</a>.</p>
<p>Si aún no lo habeís probado, no sé a que estaís esperando!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/flashdevelop-20-rc3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>OsFlash de cumpleaños!!</title>
		<link>http://blog.sergioalvarez.net/osflash-de-cumpleanos/</link>
		<comments>http://blog.sergioalvarez.net/osflash-de-cumpleanos/#comments</comments>
		<pubDate>Mon, 29 May 2006 21:04:15 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=39</guid>
		<description><![CDATA[
Pues ojalá que cumpla muchos más, ya que este mundillo tan desconocido para muchos (yo incluido) me parece que merece la pena conocer..
Además estrenan mascota..jeje.
Un saludo!;)
]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/osflash.gif" /></p>
<p>Pues ojalá que cumpla muchos más, ya que este mundillo tan desconocido para muchos (yo incluido) me parece que merece la pena conocer..</p>
<p>Además estrenan mascota..jeje.</p>
<p>Un saludo!;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/osflash-de-cumpleanos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FlashDevelop y MM Componets</title>
		<link>http://blog.sergioalvarez.net/flashdevelop-y-mm-componets/</link>
		<comments>http://blog.sergioalvarez.net/flashdevelop-y-mm-componets/#comments</comments>
		<pubDate>Mon, 29 May 2006 20:06:48 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=33</guid>
		<description><![CDATA[Este tutorial muestra como usar los componentes que trae Macromedia Flash en nuestros proyectos con FlashDevelop.

Comenzaremos creando un nuevo proyecto. En mi caso, haciendo uso de toda la originalidad de la que dispongo en este momento, lo he llamado PruebaComponentes.
Para utilizar los componentes que incorpona Macromedia Flash, debemos crear un nuevo archivo .fla que contendrá [...]]]></description>
			<content:encoded><![CDATA[<p>Este tutorial muestra como usar los componentes que trae Macromedia Flash en nuestros proyectos con FlashDevelop.</p>
<p><span id="mce_editor_0_parent" /><span id="more-33"></span><br />
Comenzaremos creando un nuevo proyecto. En mi caso, haciendo uso de toda la originalidad de la que dispongo en este momento, lo he llamado PruebaComponentes.</p>
<p>Para utilizar los componentes que incorpona Macromedia Flash, debemos crear un nuevo archivo .fla que contendrá los componentes a utilizar. Para ello, con el IDE de Macromedia Flash abierto arrastramos a la librería de nuestro archivo los componentes que vayamos a utilizar..</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen11.gif" /></div>
<p>En este caso, y inspirandonos en el tutorial que ya hay <a target="_blank" href="http://www.flashdevelop.org/community/viewtopic.php?p=1583">aquí</a>, arrastraremos los componentes Alert y Button a nuestra libreria, y guardaremos nuestro archivo flash como componentes.fla en el directorio library de nuestro proyecto PruebaComponentes. Además publicaremos un swf de nuestro archivo y lo almacenaremos en el mismo directorio, de esta manera nuestro proyecto quedará así:</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen21.gif" /></div>
<p>El siguiente paso será añadir el archivo componentes.swf que contiene los componentes a utilizar a nuestra librería para ello haremos click con el botón derecho sobre el archivo y marcaremos la opción 'Add to library'.</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen31.gif" /></div>
<p>El siguiente paso es marcar en las opciones de compilación dentro de las propiedades de nuestro proyecto que utilizaremos los componentes de Macromedia. Para ello iremos al menú 'Project-Properties' y en la pestaña 'Compiler Options' pondremos a true la opción UseMx.</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen41.gif" /></div>
<p>Con esto y una clase como la siguiente, ya podríamos empezar a cacharrear un poco:</p>
<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: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #0066CC;">Button</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;">class</span> Main</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;">&#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;">// content holder</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> contentMc:<span style="color: #0066CC;">MovieClip</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;">/**</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;">* Content creation</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;">*/</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> Main<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: #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: #808080; font-style: italic;">// new content</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">contentMc = Main.<span style="color: #006600;">parent</span>.<span style="color: #0066CC;">createEmptyMovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"contentMc"</span>, <span style="color: #cc66cc;color:#800000;">0</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: #808080; font-style: italic;">// create control</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> helloBtn:<span style="color: #0066CC;">Button</span> = contentMc.<span style="color: #006600;">createClassObject</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Button</span>, <span style="color: #ff0000;">"bt"</span>, contentMc.<span style="color: #0066CC;">getNextHighestDepth</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;">label:<span style="color: #ff0000;">"Hello world!"</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_x</span>:<span style="color: #cc66cc;color:#800000;">10</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;">_y</span>:<span style="color: #cc66cc;color:#800000;">10</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_width</span>:<span style="color: #cc66cc;color:#800000;">150</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: #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: #808080; font-style: italic;">// listen</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;">helloBtn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"click"</span>, helloBtnClick<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;"><span style="color: #808080; font-style: italic;">/**</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;">* Click handler</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;">* @param    e    Event 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: #808080; font-style: italic;">*/</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> helloBtnClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</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;">&#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: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"click "</span>+<span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</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;">Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Hello World!"</span>, <span style="color: #ff0000;">"I say..."</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: #808080; font-style: italic;">//{ APPLICATION INITIALIZATION</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;">static</span> <span style="color: #000000; font-weight: bold;">var</span> application:Main;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">var</span> parent:<span style="color: #0066CC;">MovieClip</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;">/**</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;">* Application entry point</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;">*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #66cc66;">&#40;</span>scope:<span style="color: #0066CC;">MovieClip</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;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">parent = scope;</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;">// create the content</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">application = <span style="color: #000000; font-weight: bold;">new</span> Main<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: #808080; font-style: italic;">//}</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
NOTA:Este tutorial es una adaptación/traducción del que se encuentra <a target="_blank" href="http://www.flashdevelop.org/community/viewtopic.php?p=1583">aquí</a>. Cuando saque un rato, traduzco la clase también. Y si se me ocurre una pequeña aplicacioncilla simple de ejemplo quizá haga otro tutorial.</p>
<p>Un saludo!;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/flashdevelop-y-mm-componets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AsWing Beta1</title>
		<link>http://blog.sergioalvarez.net/aswing-beta1/</link>
		<comments>http://blog.sergioalvarez.net/aswing-beta1/#comments</comments>
		<pubDate>Mon, 08 May 2006 14:13:06 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=32</guid>
		<description><![CDATA[Ya ha salido la Beta1 de AsWing,el framework OpenSource para ActionScript 2.0 'similar' a Java Swing. Han corregido diversos errores y añadido nuevos componentes, más información y descarga aquí.
Saludos!;)
]]></description>
			<content:encoded><![CDATA[<p>Ya ha salido la Beta1 de AsWing,el framework OpenSource para ActionScript 2.0 'similar' a Java Swing. Han corregido diversos errores y añadido nuevos componentes, más información y descarga <a target="_blank" href="http://www.aswing.org/display/AsWing/2006/05/07/AsWing+Beta+1+released%21">aquí</a>.</p>
<p>Saludos!;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/aswing-beta1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FlashDevelop y AsWing</title>
		<link>http://blog.sergioalvarez.net/flashdevelop-y-aswing/</link>
		<comments>http://blog.sergioalvarez.net/flashdevelop-y-aswing/#comments</comments>
		<pubDate>Mon, 08 May 2006 14:08:40 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=28</guid>
		<description><![CDATA[Para integrar y poder usar AsWing desde FlashDevelop es tan sencillo como añadir al classpath el directorio donde se encuentra nuestro framework AsWing.

FlashDevelop tiene un classpath global que utilizarán todos los proyectos que creemos.
Para añadir directorios a nuestro classpath global es tan sencillo como ir al menú 'Tools - Global Classpaths..' o bien pulsando Ctrl [...]]]></description>
			<content:encoded><![CDATA[<p>Para integrar y poder usar AsWing desde FlashDevelop es tan sencillo como añadir al classpath el directorio donde se encuentra nuestro framework AsWing.</p>
<p><span id="more-28"></span></p>
<p>FlashDevelop tiene un classpath global que utilizarán todos los proyectos que creemos.<br />
Para añadir directorios a nuestro classpath global es tan sencillo como ir al menú 'Tools - Global Classpaths..' o bien pulsando Ctrl + F9.</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen1.gif" /></div>
<p>Donde nos aparecerá una ventana para añadir el directorio donde tengamos AsWing o el framework que le queramos indicar..</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen2.gif" /></div>
<p>También Flash Develop incorpora un classpath único para cada proyecto. Para modificar este classpath es tan sencillo como ir al menú 'Proyect - Properties'.</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen3.gif" /></div>
<p>Y modificar los datos de la pestaña classpath:</p>
<div style="text-align: center"><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/05/imagen4.gif" /></div>
<p>Yo he optado por añadir las clases de AsWing en el directorio predeterminado donde se encuentran el resto de las clases que ya incorpora AsWing, en mi caso en: 'C:\Archivos de programa\FlashDevelop\library', asi como en 'C:\Archivos de programa\FlashDevelop\tools\mtasc\std' para evitar que me de errores mtasc.</p>
<p>Una vez añadido AsWing, he creado un nuevo proyecto con una única clase llamada Prueba.as.<br />
Donde la clase Prueba.as es la misma que la del tutorial <a title="MTASC y ASWING" target="_blank" href="http://blog.sergioalvarez.net/?p=15">'MTASC + Aswing: Primeros pasos en Osflash'.</a></p>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-4">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// importamos las clases necesarias</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">BorderLayout</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;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">Event</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">JButton</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;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">JTextArea</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">JFrame</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;">import</span> org.<span style="color: #006600;">aswing</span>.<span style="color: #006600;">utils</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;">// creamos la clase a compilar que heredará de JFrame</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;">class</span> Prueba <span style="color: #0066CC;">extends</span> JFrame<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;">// Creamos dos variables de tipo JButton y JTextArea</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;">private</span> <span style="color: #000000; font-weight: bold;">var</span> miBoton:JButton;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> miTexto:JTextArea;</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;">// El constructor de la clase</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Prueba<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: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>, <span style="color: #000000; font-weight: bold;">true</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: #808080; font-style: italic;">// Creamos los botones</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;">miBoton = <span style="color: #000000; font-weight: bold;">new</span> JButton<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"JButton1"</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;">miTexto = <span style="color: #000000; font-weight: bold;">new</span> JTextArea<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Pulsa el botón"</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: #808080; font-style: italic;">// Los colocamos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">getContentPane<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span>miBoton, BorderLayout.<span style="color: #006600;">SOUTH</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;">getContentPane<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span>miTexto,BorderLayout.<span style="color: #006600;">CENTER</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: #808080; font-style: italic;">// Controlamos el click del botón</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;">miBoton.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>JButton.<span style="color: #006600;">ON_PRESS</span>, Delegate.<span style="color: #006600;">create</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, marcarPulsacion<span style="color: #66cc66;">&#41;</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>
<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;">// Función que se ejecutará al hacer click en el botón</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> marcarPulsacion<span style="color: #66cc66;">&#40;</span>eventObj:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</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;">miTexto.<span style="color: #006600;">setText</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Botón Pulsado"</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>
<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;">// Main de la clase</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Void</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</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> myWindow:Prueba = <span style="color: #000000; font-weight: bold;">new</span> Prueba<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;">myWindow.<span style="color: #006600;">setLocation</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">50</span>, <span style="color: #cc66cc;color:#800000;">50</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;">myWindow.<span style="color: #006600;">setTitle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Aswing Prueba.."</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;">myWindow.<span style="color: #006600;">setSize</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">100</span>, <span style="color: #cc66cc;color:#800000;">100</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;">myWindow.<span style="color: #0066CC;">show</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: #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>
</ol>
</div>
</div>
</div>
<p></p>
<p>Un saludo!;)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/flashdevelop-y-aswing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FlashDevelop: HolaMundo en 5 sencillos pasos.</title>
		<link>http://blog.sergioalvarez.net/flashdevelop-holamundo-en-5-sencillos-pasos/</link>
		<comments>http://blog.sergioalvarez.net/flashdevelop-holamundo-en-5-sencillos-pasos/#comments</comments>
		<pubDate>Fri, 21 Apr 2006 06:30:05 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=25</guid>
		<description><![CDATA[
FlashDevelop es una aplicación Open Source creada principalmente para   el desarrollo con ActionScript 2.0, aunque sirve además como editor para otros lenguajes como JavaScript, HTML, CSS o XML.
  
FlashDevelop sirve tanto como editor de ActionScript 2.0, como propio entorno libre de desarrollo ya que integra MTASC lo que se hace de esta [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/fd.gif" /></p>
<p align="left"><a target="_blank" href="http://www.osflash.org/flashdevelop">FlashDevelop</a> es una aplicación Open Source creada principalmente para   el desarrollo con ActionScript 2.0, aunque sirve además como editor para otros lenguajes como JavaScript, HTML, CSS o XML.</p>
<p><span id="more-25"></span>  <img id="image24" alt="icono.gif" src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/icono.gif" /></p>
<p align="left">FlashDevelop sirve tanto como editor de ActionScript 2.0, como propio entorno libre de desarrollo ya que integra <a target="_blank" href="http://blog.sergioalvarez.net/?p=15">MTASC</a> lo que se hace de esta aplicación una alternativa muy a tener en cuenta para el desarrollo   de aplicaciónes en ActionScritp 2.0.</p>
<p align="left">Más información sobre las caracteristicas principales de esta aplicación en <a target="_blank" href="http://www.osflash.org/flashdevelop">osflash</a>, y en la propia <a target="_blank" href="http://www.flashdevelop.org/">página del   proyecto</a>.</p>
<p align="left">A continuación, en 5 sencillos pasos explicaré la manera de crear nuestro Hola Mundo desde FlashDevelop.</p>
<p align="left"><strong>1.- Descarga e Instalación.</strong></p>
<p align="left">El primer paso es descargarse la última versión estable de FlashDevelop. Yo en este tutorial estoy usando la versión 2.0.0 RC2   disponible desde <a target="_blank" href="http://www.flashdevelop.org/community/viewtopic.php?t=413">aquí</a>. Trás la descarga se debe   proceder a la instalación. La instalación no tiene porque dar muchos problemas ya que es tan sencillo de instalar como cualquier otro programa   más de windows.</p>
<p>Comentar que flashdevelop requiere tener instalado el <a target="_blank" href="http://www.microsoft.com/downloads/details.aspx?displaylang=es&#038;FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3">framework de .Net</a>.</p>
<p align="left"><strong>2.-Nuevo Proyecto.</strong></p>
<p align="left">Una vez instalado ejecutamos FlashDevelop y crearemos un Nuevo Proyecto. Para ello abrimos la opción del menú 'Proyect - New Proyect..'.</p>
<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/NuevoProyecto.gif" /></p>
<p align="left">Seleccionaremos la opción de Standard Proyect e indicamos la ubicación donde guardaremos nuestro proyecto.</p>
<p align="left">Esto nos generará automáticamente la siguiente estructura:</p>
<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/Proyecto.gif" /></p>
<p align="left"><strong>3.- Nueva Clase HolaMundo.as</strong></p>
<p align="left">Crearemos la siguiente clase, donde crearemos una caja de texto y dejaremos nuestro mensaje 'Hola Mundo ;)'.</p>
<p align="left">Para ello, es tan sencillo como ir al menú 'File-New' y añadir el siguiente código:</p>
<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;"><span style="color: #000000; font-weight: bold;">class</span> HolaMundo<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: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> HolaMundo<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: #000000; font-weight: bold;">var</span> miTxt = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</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;">miTxt.<span style="color: #0066CC;">font</span> = <span style="color: #ff0000;">"Tahoma"</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;">miTxt.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;color:#800000;">12</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">createTextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"miCaja"</span>, <span style="color: #cc66cc;color:#800000;">1</span>, <span style="color: #cc66cc;color:#800000;">20</span>, <span style="color: #cc66cc;color:#800000;">20</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</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: #0066CC;">_root</span>.<span style="color: #006600;">miCaja</span>.<span style="color: #0066CC;">selectable</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;"><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">miCaja</span>.<span style="color: #0066CC;">border</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: #0066CC;">_root</span>.<span style="color: #006600;">miCaja</span>.<span style="color: #0066CC;">autoSize</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;"><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">miCaja</span>.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">"Hola Mundo ;)"</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;">_root</span>.<span style="color: #006600;">miCaja</span>.<span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span>miTxt<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;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p align="left">La guardaremos como HolaMundo.as en la carpeta classes de nuestro proyecto</p>
<p align="left"><strong>4.- Modificación de la clase Main de nuestro proyecto.<br />
</strong><br />
Modificaremos la clase principal de nuestro proyecto, donde crearemos un objeto de la clase HolaMundo y añadiremos los parámetros necesarios   para que esta clase, junto con el resto de nuestro proyecto pueda ser compilada por MTASC.</p>
<p align="left">El código será el siguiente:</p>
<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: #808080; font-style: italic;">/**</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;">* @mtasc -swf c:\Main.swf -header 500:400:24:EFEFEF -main</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;">*/</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;">class</span> Main</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><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: #0066CC;">public</span> <span style="color: #0066CC;">static</span> <span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</span>&nbsp; &nbsp; <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> miPelicula: HolaMundo= <span style="color: #000000; font-weight: bold;">new</span> HolaMundo<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>
</ol>
</div>
</div>
</div>
<p></p>
<p align="left">Las primeras tres lineas sirven para indicar a MTASC los parámetros de compilación.</p>
<p align="left">Estos parámetros son los que el compilador MTASC necesita para el proceso de compilación, más información <a target="_blank" href="#usage">aquí</a> . La manera de introducir estos parámetros es la siguiente:</p>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-10">
<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: #808080; font-style: italic;">/**</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;">* @mtasc</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;">*/</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p align="left"><strong>5.- Compilación.</strong></p>
<p align="left">FlashDevelp cuenta con la funcionalidad de comprobar la corrección de nuestras clases ActionScript. Para ello la barra de herramientas   de nuestra aplicación tiene el siguiente botón:</p>
<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/btn1.gif" /></p>
<p align="left">Los siguientes botones sirven para compilar y crear nuestro archivo swf.</p>
<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/btn2.gif" /><br />
<img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/btn3.gif" /></p>
<p align="left">Después de la corrección de nuestras clases y la compilación de nuestro proyecto, la estructura final será la siguiente:</p>
<p><img src="http://blog.sergioalvarez.net/wp-content/uploads/2006/04/ProyectoFinal.gif" /></p>
<div align="left">Espero que os sirva de algo, cualquier duda o comentario es bienvenido.. <img src='http://blog.sergioalvarez.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/flashdevelop-holamundo-en-5-sencillos-pasos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MTASC + Aswing : Primeros pasos en OsFlash</title>
		<link>http://blog.sergioalvarez.net/15/</link>
		<comments>http://blog.sergioalvarez.net/15/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 17:30:00 +0000</pubDate>
		<dc:creator>...sErGiO...</dc:creator>
		
		<category><![CDATA[OsFlash - Flash Open Source]]></category>

		<guid isPermaLink="false">http://blog.sergioalvarez.net/?p=15</guid>
		<description><![CDATA[   Este tutorial, intenta de ser un pequeño acercamiento al mundo del OsFlash, donde se trata de hacer una pequeña introducción a MTASC y AsWing, creando finalmente el siguiente ejemplo que se puede ver aquí.

1.-¿Qué es MTASC?
MTASC son las siglas de Motion Twin Action Script Compiler. Bajo estas siglas se encuentra el primer [...]]]></description>
			<content:encoded><![CDATA[<p><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />   Este tutorial, intenta de ser un pequeño acercamiento al mundo del <a target="_blank" href="http://www.osflash.org">OsFlash</a>, donde se trata de hacer una pequeña introducción a MTASC y AsWing, creando finalmente el siguiente ejemplo que se puede ver <a target="_blank" href="http://blog.sergioalvarez.net/wp-content/uploads/2006/03/pruebando.swf">aquí</a>.</p>
<p><span id="more-15"></span></p>
<p><strong>1.-¿Qué es MTASC?</strong></p>
<p><strong>MTASC</strong> son las siglas de <strong>M</strong>otion <strong>T</strong>win <strong>A</strong>ction <strong>S</strong>cript <strong>C</strong>ompiler. Bajo estas siglas se encuentra el primer compilador <a target="_blank" href="http://es.wikipedia.org/wiki/Definici%C3%B3n_de_Open_Source">Open Source</a> para ActionScript 2.0. Su última y parece que definitiva versión es la 1.1.2 que se puede descargar desde <a target="_blank" href="#download">aquí</a>. Más información (en ingles) en su propia página web <a target="_blank" href="http://www.mtasc.org">www.mtasc.org</a>.</p>
<p>Este compilador es obra de Nicolas Canesse, quien ya ha anunciado que no habrá nuevas versiones de MTASC que soporten ActionScript 3, ya que ahora esta metido en otro proyecto del cual podemos obtener más información en <a target="_blank" href="http://www.haxe.org">www.haxe.org</a>.</p>
<p><strong>2.-MTASC Primeros Pasos</strong></p>
<p>Lo primero que debemos hacer es descargar el compilador desde su página oficial, o bien pinchando <a target="_blank" href="#download">aquí</a>, y descomprimir los archivos donde queramos tenerlo.</p>
<p>MTASC funciona desde la línea de comandos y sólo permite trabajar orientado a objetos, lo que nos obliga a que todos y cada uno de nuestros proyectos sean conjuntos de clases.</p>
<p>Para empezar ejecutaremos la acción 'mtasc' desde la linea de comandos de Windows y situandonos sobre el directorio en el que tengamos instalado MTASC, donde nos aparecerá una pequeña ayuda donde nos mostrará información sobre las distintas opciones, entre ellas:<br />
- pack(path): compila todos los archivos de la ruta donde esté el paquete.<br />
- cp : añade las rutas indicadas al classpath<br />
- swf nombreArchivo.swf: donde nombreArchivo.swf es el nombre del archivo resultante.<br />
- main: Habilita un punto de entrada a la aplicación.<br />
- header ancho:alto:fps. Dimensiones y velocidad de la película en fotogramas por segundo.<br />
- Archivo_origen.as. La clase principal de nuestra aplicación.</p>
<p>Para más información, sin lugar a duda visita la página oficial de <a target="_blank" href="http://www.mtasc.org">MTASC</a>.</p>
<p><strong>3.-Compilando la primera clase con MTASC</strong></p>
<p>La primera clase que servirá como prueba será la siguiente, la cualguardaremos en un archivo llamado 'Tuto.as' y se encontrará en el mismo directorio en el que se encuentre MTASC.</p>
<p class="codigo">class Tuto {<br />
static var app : Tuto;<br />
function Tuto() {<br />
// creates a 'tf' TextField size 800x600 at pos 0,0<br />
_root.createTextField("tf",0,0,0,800,600);<br />
// write some text into it<br />
_root.tf.text = "Hello world !";<br />
}<br />
// entry point<br />
static function main(mc) {<br />
app = new Tuto();<br />
}<br />
}</p>
<p>Para la compilación ejecutaremos la siguiente instrucción desde la línea de comandos y situados sobre el directorio donde se encuentre MTASC:</p>
<p class="codigo">mtasc -swf tuto.swf -main -header 800:600:20 Tuto.as</p>
<p>Donde le indicaremos que nos cree 'tuto.swf' con las dimensiones indicadas y siendo la clase base 'Tuto.as'..</p>
<p>Este mismo ejemplo se puede encontrar (en ingles) y explicado más en profundidad <a target="_blank" href="htttp://www.mtasc.org">aquí.</a></p>
<p><strong>4.-¿Qué es AsWing?</strong></p>
<p><strong>AsWing</strong> es un framework en desarrollo y bajo la etiqueta Open Source (:D) que permite crear aplicaciones flash de una manera cómoda e independiente del IDE, o entorno de desarrllo de macromedia. Este framework o conjunto de librerías es similar a <a target="_blank" href="http://es.wikipedia.org/wiki/Swing%28Java%29">Java Swing</a> y proporciona una serie de componentes que nos pueden hacer la vida más fácil a la hora de desarrollar con ActionScript 2.0.</p>
<p>En la actualidad y como ya he dicho antes se encuentra en <a target="_blank" href="http://www.aswing.org/display/AsWing/Development+Status">fase de desarrollo</a>. Sí te das una vueltilla por la página principal de <a target="_blank" href="http://www.aswing.org">AsWing</a>, además de poder descargar la última versión podrás encontrar documentación así como el estado del grado de desarrollo en el que se encuentra cada componente.</p>
<p><strong>5.-Requisitos para utilizar las clases de AsWing con MTASC.</strong></p>
<p>El único y principal requisito es (además de descargar AsWing por supuesto..) es tener las clases en el mismo directorio que las clases que incorpora MTASC, o en su defecto indicarle en el classpath donde estan estas clases.</p>
<p>En mi caso para hacer esta prueba he optado por introducir el directorio 'org' de AsWing en el directorio 'std' de MTASC.</p>
<p><strong>6.-Un ejemplo de Aswing con MTASC</strong></p>
<p>El ejemplo consiste en una pequeña ventanita que contendrá un botón (tipo JButton) y un campo de texto ( tipo JtextArea). El funcionamiento será simplisimo, se creará la ventana, el botón y el campo de texto y se controlará el click del botón dejando un mensaje en el campo de texto.</p>
<p class="codigo">// importamos las clases necesarias<br />
import org.aswing.BorderLayout;<br />
import org.aswing.Event;<br />
import org.aswing.JButton;<br />
import org.aswing.JTextArea;<br />
import org.aswing.JFrame;<br />
import org.aswing.utils.*;<br />
// creamos la clase a compilar que heredará de JFrame<br />
class Prueba extends JFrame{<br />
// Creamos dos variables de tipo JButton y JTextArea<br />
private var miBoton:JButton;<br />
private var miTexto:JTextArea;<br />
// El constructor de la clase<br />
public function Prueba() {<br />
super(_root, true);<br />
// Creamos los botones<br />
miBoton = new JButton("JButton1");<br />
miTexto = new JTextArea("Pulsa el botón");<br />
// Los colocamos<br />
getContentPane().append(miBoton, BorderLayout.SOUTH)<br />
getContentPane().append(miTexto,BorderLayout.CENTER)<br />
// Controlamos el click del botón<br />
miBoton.addEventListener(JButton.ON_PRESS, Delegate.create(this, marcarPulsacion));<br />
}<br />
// Función que se ejecutará al hacer click en el botón<br />
private function marcarPulsacion(eventObj:Event):Void {<br />
miTexto.setText("Botón Pulsado");<br />
}<br />
// Main de la clase<br />
public static function main(Void):Void {<br />
var myWindow:Prueba = new Prueba();<br />
myWindow.setLocation(50, 50);<br />
myWindow.setTitle('Aswing Prueba..');<br />
myWindow.setSize(100, 100);<br />
myWindow.show();<br />
}<br />
}</p>
<p>Una vez creada nuestra clase la guardaremos como 'Prueba.as' y situaremos este archivo en el directorio donde tengamos MTASC.</p>
<p>Ejecutaremos MTASC y le indicaremos la siguiente instrucción desde la línea de comandos :</p>
<p class="codigo">mtasc -swf pruebando.swf -main -header 300:300:20 Prueba.as</p>
<p>Donde le indicaremos que nos cree 'pruebando.swf' con las dimensiones indicadas y siendo la clase base Prueba.as..<br />
Bueno está ha sido mi primera prueba con Aswing, si tengo tiempo seguiré probando y publicaré lo que vaya logrando...</p>
<p>Cualquier duda, aclaración, comentario o sugerencia es bienvenida...</p>
<p>Un saludo! <img src='http://blog.sergioalvarez.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>...sErGiO...</p>
<p>ENLACES IMPRESCINDIBLES:<br />
<a target="_blank" href="http://www.mtasc.org/">http://www.mtasc.org/</a><br />
<a target="_blank" href="http://www.aswing.org/">http://www.aswing.org/</a></p>
<p>ARTICULOS RELACIONADOS RECOMENDADOS:<br />
<a target="_blank" href="http://www.zarate.tv/articulos/flash_libre_facil/">http://www.zarate.tv/articulos/flash_libre_facil/</a><br />
<a target="_blank" href="http://www.joangarnet.com/blog/archives/2004/11/compilador_para.php">http://www.joangarnet.com/blog/archives/2004/11/compilador_para.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sergioalvarez.net/15/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
