<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.2" -->
<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/"
	>

<channel>
	<title>AS_Toolkit</title>
	<link>http://drusunlimited.com/old_blog</link>
	<description>Blog de ActionScript de drus unlimited</description>
	<pubDate>Tue, 30 Jun 2009 01:09:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>
	<language>en</language>
			<item>
		<title>AS_Toolkit discontinuado</title>
		<link>http://drusunlimited.com/old_blog/index.php/2009/06/30/as_toolkit-discontinuado/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2009/06/30/as_toolkit-discontinuado/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 01:02:37 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>Sin categoria</category>
		<guid isPermaLink="false">http://drusunlimited.com/old_blog/index.php/2009/06/30/as_toolkit-discontinuado/</guid>
		<description><![CDATA[Decir esto debería estar de más, dado el tiempo que llevo sin actualizar este blog, pero no deja de sorprenderme las visitas que sigue teniendo.
Durante este tiempo todo ha evolucionado, incluido yo mismo y este espacio se ha ido quedando obsoleto, por lo que después de mucho pensarlo he decidido darle la extrema unción y [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2009/06/30/as_toolkit-discontinuado/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Array.prototype.firstIndexOf</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototypefirstindexof/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototypefirstindexof/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 23:11:26 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>Array</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/12/20/arrayprototypefirstindexof/</guid>
		<description><![CDATA[Este prototipo devuelve la primera posición que encuentra del parametro pasado dentro del array.
Actionscript:

Array.prototype.firstIndexOf = function&#40;n&#41; &#123;
&#160; &#160; var l = this.length;
&#160; &#160; for &#40;var i = 0; i &#60;l; i++&#41; &#123;
&#160; &#160; &#160; &#160; if &#40;this&#91;i&#93; == n&#41; &#123;
&#160; &#160; &#160; &#160; &#160; &#160; return i;
&#160; &#160; &#160; &#160; &#125;
&#160; &#160; &#125;
&#160; &#160; return [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototypefirstindexof/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Array.prototype.randomize</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototyperandomize/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototyperandomize/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 23:06:14 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>Array</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/12/20/arrayprototyperandomize/</guid>
		<description><![CDATA[Un simple prototipo para desordenar una array aleatoriamente.
Actionscript:

Array.prototype.randomize = function&#40;&#41; &#123;
&#160; &#160; var l = this.length;
&#160; &#160; for &#40;var i = 0; i &#60;l; i++&#41; &#123;
&#160; &#160; &#160; &#160; var alea = Math.ceil&#40;Math.random&#40;&#41; * l&#41;;
&#160; &#160; &#160; &#160; var tmp = this&#91;i&#93;;
&#160; &#160; &#160; &#160; this&#91;i&#93; = this&#91;alea&#93;;
&#160; &#160; &#160; &#160; this&#91;alea&#93; = tmp;
&#160; &#160; [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/12/20/arrayprototyperandomize/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Solera</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/11/15/solera/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/11/15/solera/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 09:40:51 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>Diseño</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/11/15/solera/</guid>
		<description><![CDATA[
.flickr-photo { }
.flickr-frame { float: left; margin-right: 15px; margin-bottom: 15px; }


	
	Solera, originally uploaded by drusunlimited.

	Montaje en photoshop de distintos elementos "con solera" para crear un ambiente un tanto grasiento.


]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/11/15/solera/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>AWEEKENDALONE</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/11/15/aweekendalone/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/11/15/aweekendalone/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 09:39:59 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>Diseño</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/11/15/aweekendalone/</guid>
		<description><![CDATA[
.flickr-photo { }
.flickr-frame { float: left; margin-right: 15px; margin-bottom: 15px; }


	
	AWEEKENDALONE, originally uploaded by drusunlimited.

	Ahí hay pelo de mi gato y una lámpara, aunque no lo parezca.
Por supuesto ningún animal sufrió daño :)


]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/11/15/aweekendalone/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>desaturate MovieClip prototype</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/11/15/desaturate-movieclip-prototype/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/11/15/desaturate-movieclip-prototype/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 09:22:05 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>BitmapData</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/11/15/desaturate-movieclip-prototype/</guid>
		<description><![CDATA[Este prototipo pasa a blanco y negro el movieClip sobre el que se aplica. La primera versión sencillamente desatura, y la segunda crea un duplicado sobre el mc original para tener disponible el item original en color, para por ejemplo un rollOver ;) 
Actionscript:

import flash.filters.ColorMatrixFilter;
MovieClip.prototype.desaturate = function&#40;&#41;:Void&#160; &#123;
&#160; &#160; var bn_filter:ColorMatrixFilter = new ColorMatrixFilter&#40;&#91;0.3, 0.59, [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/11/15/desaturate-movieclip-prototype/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>smoothBitmap MovieClip Prototype</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/10/31/smoothbitmap-movieclip-prototype/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/10/31/smoothbitmap-movieclip-prototype/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 15:21:59 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>BitmapData</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/10/31/smoothbitmap-movieclip-prototype/</guid>
		<description><![CDATA[Este sencillo prototipo se encarga de convertir un movieclip en imagen con la propiedad smooth activada para poder escalarlo sin ese horrible efecto pixelado. Combinado con MovieClipLoader es especialmente útil para escalar imágenes externas cargadas dinámicamente con un poco de dignidad.
Actionscript:

MovieClip.prototype.smoothBitmap = function&#40;&#41;:Void&#160; &#123;
&#160; &#160; var bmp = new flash.display.BitmapData&#40;this._width, this._height, true, 0x000000&#41;;
&#160; &#160; bmp.draw&#40;this&#41;;
&#160; [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/10/31/smoothbitmap-movieclip-prototype/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Globalize MovieClip Prototype</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/02/23/globalize-movieclip-prototype/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/02/23/globalize-movieclip-prototype/#comments</comments>
		<pubDate>Fri, 23 Feb 2007 01:02:29 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/02/23/globalize-movieclip-prototype/</guid>
		<description><![CDATA[Este prototipo simplifica el manejo de coordenadas de movieClips anidados, al devolver la posicion absoluta del clip.
Actionscript:

MovieClip.prototype.globalize = function&#40;&#41; &#123;
&#160; &#160; var sum:Array = new Array&#40;this._x, this._y&#41;;
&#160; &#160; var parent:MovieClip = this._parent;
&#160; &#160; while &#40;parent&#41; &#123;
&#160; &#160; &#160; &#160; sum&#91;0&#93; += parent._x;
&#160; &#160; &#160; &#160; sum&#91;1&#93; += parent._y;
&#160; &#160; &#160; &#160; parent= parent._parent;
&#160; &#160; &#125;
&#160; [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/02/23/globalize-movieclip-prototype/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>isEmail String prototype</title>
		<link>http://drusunlimited.com/old_blog/index.php/2007/01/03/isemail-string-prototype/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2007/01/03/isemail-string-prototype/#comments</comments>
		<pubDate>Wed, 03 Jan 2007 14:43:58 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>String</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2007/01/03/isemail-string-prototype/</guid>
		<description><![CDATA[Este prototipo es uno de tantos que valida emails:
Actionscript:

String.prototype.isEmail = function&#40;&#41; &#123;
&#160; &#160; if &#40;!this&#41; &#123;
&#160; &#160; &#160; &#160; return false;
&#160; &#160; &#125;
&#160; &#160; var iChars = "*&#124;,\":&#60;&#62;[]{}`';()&#38;$#% ";
&#160; &#160; for &#40;var i = 0; i&#60;this.length; i++&#41; &#123;
&#160; &#160; &#160; &#160; if &#40;iChars.indexOf&#40;this.charAt&#40;i&#41;&#41; != -1&#41; &#123;
&#160; &#160; &#160; &#160; &#160; &#160; return false;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2007/01/03/isemail-string-prototype/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>drawFrame MovieClip prototype</title>
		<link>http://drusunlimited.com/old_blog/index.php/2006/10/12/drawframe-movieclip-prototype-2/</link>
		<comments>http://drusunlimited.com/old_blog/index.php/2006/10/12/drawframe-movieclip-prototype-2/#comments</comments>
		<pubDate>Thu, 12 Oct 2006 15:58:49 +0000</pubDate>
		<dc:creator>drus</dc:creator>
		
	<category>AS2 (deprecated)</category>
	<category>Prototipos</category>
	<category>Draw</category>
		<guid isPermaLink="false">http://drusunlimited.com/blog/index.php/2006/10/12/drawframe-movieclip-prototype-2/</guid>
		<description><![CDATA[Este protipo dibuja un marco, del grosor definido por borderThickness, alrededor del mc sobre el que se aplica (obj_mc). Si el valor de borderThickness es negativo, el marco se aplica hacia fuera.
Actionscript:

MovieClip.prototype.drawFrame = function&#40;borderThickness:Number, borderColor:Number&#41; &#123;
&#160; &#160; this.p = this.getBounds&#40;&#41;;
&#160; &#160; var frame_mc:MovieClip = this.createEmptyMovieClip&#40;"frame_mc", 0&#41;;
&#160; &#160; frame_mc.beginFill&#40;borderColor, 100&#41;;
&#160; &#160; frame_mc.moveTo&#40;this.p.xMin+borderThickness, this.p.yMin+borderThickness&#41;;
&#160; &#160; frame_mc.lineTo&#40;this.p.xMax-borderThickness, this.p.yMin+borderThickness&#41;;
&#160; [...]]]></description>
		<wfw:commentRSS>http://drusunlimited.com/old_blog/index.php/2006/10/12/drawframe-movieclip-prototype-2/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
