<?xml version="1.0" encoding="iso-8859-1"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>kadazuro.blog</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.kadazuro.com/blog/atom.xml" />
    <id>tag:www.kadazuro.com,2007-10-25:/blog//1</id>
    <updated>2008-10-23T04:17:38Z</updated>
    <subtitle>anuncios, mañas, tips y workarounds</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>

<entry>
    <title>Test 3D Cube (fp10)</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000132.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.132</id>

    <published>2008-10-22T19:40:02Z</published>
    <updated>2008-10-23T04:17:38Z</updated>

    <summary>Last time i create a sprite, which looked a little less crappier when was placed in a 3d space. But what if i create six sprites (based on the previous crappy one), and play around with its axis rotation properties?,...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="3d" label="3d" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flex" label="flex" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="fp10" label="fp10" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Last time i create a sprite, which looked a little less crappier when was placed in a 3d space.<br />
But what if i create six sprites (based on the previous crappy one), and play around with its axis rotation properties?, maybe i get to create a cube =)</p>

<p>I was checking over the internet, find <a href="http://sherifabdou.com/2008/06/simple-3d-cube-in-flex-using-flash-player-10/" rel="external">this link</a>, and that seems to be a normal way to create a cube, so i gave it a try.</p>]]>
        <![CDATA[here's how it looks like (right click for source view + download)<br />
<div id="flashContent">
<p class="error">hey, where is your flash player? get yours <a href="http://labs.adobe.com/downloads/flashplayer10.html">here</a></p>
<div>
<script type="text/javascript">
	<!--
		var so = new SWFObject("http://kadazuro.com/blog/samples/fp10/testcube/TestCube.swf", 'daSwf', '450', '400', '10.0.0', '#FFFFFF');
		so.addParam('menu','false');
		so.addParam('AllowScriptAccess','always');
		so.addParam('quality','high');
		so.write('flashContent');
	// -->
</script><br />
It gets a bit trickier when you try to align the sprites around the center of the container (so the cube gets centered), but other than that, piece of cake (tiramisu for me, please)]]>
    </content>
</entry>

<entry>
    <title>xyz rotation test (fp10)</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000131.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.131</id>

    <published>2008-10-14T19:02:08Z</published>
    <updated>2008-10-15T03:50:40Z</updated>

    <summary>hi there (and everyone else). I&apos;m getting a little bored at the office so, I&apos;m gonna start playing around with flex builder 3.0.x and flash player 10. My first test is a new classic: x, y, z rotation, there are...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="3d" label="3d" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flex" label="flex" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="fp10" label="fp10" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>hi there (and everyone else).<br />
I'm getting a little bored at the office so, I'm gonna start playing around with flex builder 3.0.x and flash player 10.<br />
My first test is a new classic: x, y, z rotation, there are a bunch of them already but i wanted to make my own.<br />
so, if you're interested keep reading (flash player 10 required, be warned =P)</p>]]>
        <![CDATA[here is the working version. (right click to see the code)<br />
<div id="flashContent">
<p class="error">hey, where is your flash player? get yours <a href="http://labs.adobe.com/downloads/flashplayer10.html">here</a></p>
<div>
<script type="text/javascript">
	<!--
		var so = new SWFObject("http://kadazuro.com/blog/samples/fp10/xyzrotation/XYZRotation.swf", 'daSwf', '450', '400', '10.0.0', '#FFFFFF');
		so.addParam('menu','false');
		so.addParam('AllowScriptAccess','always');
		so.addParam('quality','high');
		so.write('flashContent');
	// -->
</script>

<p>there not much to explain, is just a sprite that has its x, y and z axis rotated based on the values of the sliders., and the projectionCenter property of the sprite is being set based on the main movie dimensions, so we get to see the perspective centered, right click on the swf to see the code (I have to fix my code viewer over here =P)</p>


<p>here's a post on how to create flash player 10 content using flex builder.<br />
http://blog.everythingflex.com/2008/05/20/using-flash-player-10-within-flex-builder/</p>

<p>regards<br />
cz.</p>]]>
    </content>
</entry>

<entry>
    <title>my Twitter Widget.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000130.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.130</id>

    <published>2008-06-17T19:01:25Z</published>
    <updated>2008-08-22T15:23:04Z</updated>

    <summary>recenly i have been a little hooked up into twitter , i even added the default widget to my blog. but since i wasn&apos;t really happy with it, i opted for create my own...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="otros" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="twitterwidgets" label="twitter widgets" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>recenly i have been a little hooked up into <a href="http://twitter.com" rel="external">twitter</a> , i even added the default widget to my blog. but since i wasn't really happy with it, i opted for create my own</p>]]>
        <![CDATA[<p>here is how it looks like:</p>

<p><object width="170" height="140"><br />
<param name="movie" value="http://kadazuro.com/twitter/twitterReader.swf?userId=kadazuro&amp;mainColor=0x336699&amp;fontColor=0xFFFFFF" bgcolor="#FFFFFF"></param><embed src="http://kadazuro.com/twitter/twitterReader.swf?userId=kadazuro&amp;mainColor=0x336699&amp;fontColor=0xFFFFFF" type="application/x-shockwave-flash" width="170" height="140" bgcolor="#FFFFFF"></embed><br />
</object></p>

<p>to use it, you'll just need to use your own screen-name, but you can also customize the look of it.<br />
there are the parameter you can tweak.</p>

<p><b>object/embed argument: </b><br />
bgcolor =&gt; color of the swf, the ugly flex-blue one will show up if you dont change this.<br />
<b>flashVars:</b><br />
userId = your screen name or user id.<br />
mainColor = the color of the balloon<br />
fontColor = the color of the text.<br />
dateColor = the color for the publish date text.</p>

<p>the embed code looks pretty much like this:</p>


<pre>
&lt;object width=&quot;170&quot; height=&quot;140&quot; bgcolor=&quot;{#FFFFFF}&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://kadazuro.com/twitter/twitterReader.swf?userId={yourUserId}&amp;mainColor={0x336699}&amp;fontColor={0xFFFFFF}&quot;&gt;
&lt;/param&gt;
&lt;embed src=&quot;http://kadazuro.com/twitter/twitterReader.swf?userId={yourUserId}&amp;mainColor={0x336699}&amp;fontColor={0xFFFFFF}&quot;
type=&quot;application/x-shockwave-flash&quot; 
width=&quot;170&quot; height=&quot;140&quot; bgcolor=&quot;{#FFFFFF}&quot;&gt;
&lt;/embed&gt;
&lt;/object&gt;
</pre>



<h3>code generator</h3>
Heres a code generator, when you're done, grab the code from the textArea at the bottom  (that will be the code you'll need to paste on your site)<br />
<div id="twitterCodeMaker">
whoops!, it seems like I blewed it somewhere..., there should be flash piece over here!<br />
</div>
<script type="text/javascript">
	<!--
		var so = new SWFObject("/twitter/codeMaker.swf", 'twitter_badge', '370', '400', '9.0.16', '#FFFFFF');
		so.addParam('menu','false');
		so.addParam('AllowScriptAccess','always');
		so.addParam('quality','high');
		so.write('twitterCodeMaker');
	// -->
</script>

<p><strong>[update 2008.08.19]:</strong> layoutMode property added to select the position of the avatar.</p>]]>
    </content>
</entry>

<entry>
    <title>Sanitarios?... ok.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000129.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.129</id>

    <published>2008-04-20T17:03:31Z</published>
    <updated>2008-04-20T17:09:21Z</updated>

    <summary></summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="otros" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="fun" label="fun" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="wtf" label="wtf" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p><img src="/pics/d/179-1/sanitarios.jpg" alt="sanitarios? ok"/></p>]]>
        
    </content>
</entry>

<entry>
    <title>sending variables, the new way.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000128.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.128</id>

    <published>2008-04-17T15:25:55Z</published>
    <updated>2008-04-17T20:42:50Z</updated>

    <summary>do you remember the time when if you need mimic a form behavior or send variables through the http, you just needed to grab a loadVars ojbect, and toss in all the things you wanna send and the just send...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="as3" label="AS3" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>do you remember the time when if you need mimic a form behavior  or send variables through the http, you just needed to grab a loadVars ojbect, and toss in all the things you wanna send and the just send it?, well, those times are gone, there is a couple of things that have changed.</p>]]>
        <![CDATA[<p>This is how the whole thing used to look like.</p>

<pre><code><span class="category1">var</span> myVars:<span class="category2">LoadVars</span> = <span class="category1">new</span> <span class="category2">LoadVars</span>();
myVars.varA = "<span class="quote">someValue</span>";
myVArs.varB = "<span class="quote">anotherValue</span>";
myVars.<span class="category2">send</span>( someURL, "<span class="quote">_self</span>", "<span class="quote">POST</span>");</code></pre>

<p>Well, the gang is a little bigger now, it seems to be a two men job now.<br />
here is now the recipe looks:</p>

<pre><code><span class="category1">var</span> params:<span class="category2">URLVariables</span> = <span class="category1">new</span> <span class="category2">URLVariables</span>();
params.varA = "<span class="quote">someValue</span>";
params.varB = "<span class="quote">anotherValue</span>";

<span class="category1">var</span> urlRequest:<span class="category2">URLRequest</span> = <span class="category1">new</span> <span class="category2">URLRequest</span>(someURL);
urlRequest.<span class="category3">method</span> = <span class="category2">URLRequestMethod</span>.<span class="category3">POST</span>;
urlRequest.<span class="category3">data</span> = params;

<span class="category2">navigateToURL</span>(urlRequest,"<span class="quote">_self</span>");</code></pre>

<p>First you create a <span class="caps">URLV</span>ariables Object and put the variables/properties there, then create a <span class="caps">URLR</span>equest object and assign its data property to be the <span class="caps">URLV</span>ariables object you just created, set the urlRequest method, and then, if you use navigateToUrl, using this <span class="caps">URLR</span>equest object as argument, it will send the variables via http, while redirecting to that url (leaving the application), which in our case that was what we wanted to do.</p>

<p>We tried using httpService but since it was requesting a crossdomain policy file on the other end -even thought we just wanna send variables-, we decide to try another thing, glad for us F1 did the job. </p>

<p>So, I'm putting this over here for a couple of reasons, <br />
a.- to let you know, i'm not dead yet<br />
b.- in case some else find this info useful.<br />
c.- for future reference, keep thing in a place easy to reach</p>

<p>pura vida.<br />
 </p>]]>
    </content>
</entry>

<entry>
    <title>Yup, estamos creciendo y estamos contratando...</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000127.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.127</id>

    <published>2008-02-25T00:29:32Z</published>
    <updated>2008-02-25T01:19:18Z</updated>

    <summary><![CDATA[Recientemente Schematic fué adquirido por WPP, porqu&eacute; esto es importante o relevante?...]]></summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="anuncios" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="schematic" label="schematic" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Recientemente <a href="http://schematic.com/" rel="external" />Schematic</a> fué <a href="http://www.google.com/search?hl=en&q=wpp+bought+schematic&btnG=Search" rel="external"/>adquirido</a> por <a href="http://www.wpp.com/wpp/" rel="external">WPP</a>, porqu&eacute; esto es importante o relevante?</p>]]>
        <![CDATA[<p>Pues resulta que WPP participó en la puja por el contratillo para renovar el site y la imagen en general para DELL, y resulta que <a href="http://www.google.com/search?hl=en&q=wpp+dell&btnG=Google+Search" rel="external"/>WPP ganó la puja</a> (nos gusta pensar que el aporte de schematic a la propuesta ayudó mucho)<br />
Es por esto que Schematic no sólo esta abriendo oficinas nuevas (Texas, Minneapolis, Londres), si no que en las oficinas actuales (Los Angeles, New York, Atlanta y Costa Rica) se esta contratando gente, bastante del trabajo Dell nos tocará acá, así que si querés ser parte de esto mandá tu currículum a crjobs[arroba]schematic[punto]com, no solo el ambiente laboral es genial (y serrucho-free), toda la gente esta en planillas asi que no hay que preocuparse por hacer facturas cada mes o declaraciones de impuestos... todas las garantias sociales (CCSS), Emergencias Médicas,  Asistencia Médica, INS, ah y Doña nos vende gallo pinto los lunes miércoles y viernes =D<br />
Managers, Project Managers, Creative Directors, Art Directors, Designers, Flash Animators, Client Side Engineers son algunos de los puestos en los que estamos buscando gente, aparte de los puestos de siempre (PHP, Flash Platform, etc)<br />
asi que tenemos más de 4.500 millones de razones para crecer ( y todas en <a href="http://www.google.com/search?hl=en&q=wpp+dell+4.5&btnG=Google+Search" rel="external">dólares</a>)<br />
 </p>]]>
    </content>
</entry>

<entry>
    <title>Error #1056: Cannot create property</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000126.php" />
    <id>tag:www.kadazuro.com,2008:/blog//1.126</id>

    <published>2008-01-29T13:57:38Z</published>
    <updated>2008-01-29T15:57:53Z</updated>

    <summary>the other day, i was doing (or trying to do) a sound fader. I had the sound working already, working as property inside model, had to do it like that &apos;cause the sound had to be controlled by a sound...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="flashflextricks" label="flash flex tricks" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>the other day, i was doing (or trying to do) a sound fader.<br />
I had the sound working already, working as property inside model, had to do it like that 'cause the sound had to be controlled by a sound toggle in a couple of places and didn't want to have two sound instances, and also want to have the controlled binded to the sound instance state (off, on)...anyways maybe that would be a tale for another time.</p>

<p>my first idea was to use a property, animate its value (AnimateProperty), and then updating the sound volume when the tween gets updated, pretty good on paper.</p>]]>
        <![CDATA[<h3>the scenario</h3>
I had all set up, the sound, the soundChannel and the AnimatePropery instance, also the volume property and the handler for the tween update.
<pre>_soundInstance = new Sound();
_soundPosition = 0;
_soundChannel = new SoundChannel();
//(properties).
private var _isMusicEnabled:Boolean;
private var _soundInstance:Sound;
private var _soundChannel:SoundChannel;
private var _soundPosition:Number = 0;
private var _volumeValue:Number = 0;
private var _fader:AnimateProperty;
.....
(contructor)
//sound fader
_fader = new AnimateProperty();
_fader.duration = 1000;
_fader.target = this;
_fader.addEventListener(TweenEvent.TWEEN_UPDATE, onTweenUpdate, false, 0, true);
_fader.addEventListener(TweenEvent.TWEEN_END, onTweenEnd, false, 0, true);
_fader.property = "_volumeValue";
....
(handlers)
private function onTweenUpdate(event:TweenEvent):void{
	_soundChannel.soundTransform = new SoundTransform(_volumeValue, 0);
}
private function onTweenEnd(event:TweenEvent):void{
	if(!_isMusicEnabled){
	_soundChannel.stop();
	}
}
</pre>

<p>when setting the sound off or on, all I did was changing the tween properties and the calling the play method.<br />
fading out.<br />
<pre>_fader.fromValue = _volumeValue;<br />
_fader.toValue = 0;<br />
</pre><br />
and fading in.<br />
<pre>_fader.fromValue = _volumeValue;<br />
_fader.toValue = 1;<br />
</pre><br />
<h3>the error</h3><br />
but then I got this present from the player.<br />
<pre>Error #1056: Cannot create property _volumeValue on com.site.project.model.data.SoundManager.<br />
at mx.effects.effectClasses::AnimatePropertyInstance/onTweenUpdate()<br />
at mx.effects.effectClasses::TweenEffectInstance/http://www.adobe.com/2006/flex/mx/internal::applyTweenStartValues()<br />
at mx.effects.effectClasses::AnimatePropertyInstance/play()<br />
at mx.effects::EffectInstance/startEffect()<br />
at mx.effects::Effect/play()<br />
...(more crap)..</pre><br />
<h3>The Fix</h3><br />
After "praying" to Google almighty  and didn't find a fix, I started doing thing to see what would work, something the error message just got bigger, other times wasn't able to hear the sound, and other times there was a bunch of soundInstances with every click, but the problem mas here.<br />
<strong>private</strong> var _volumeValue:Number = 0;<br />
it turns that the sound-of-his-mother tweener wasn't able to access the _volumeProperty for just a single reason: the god damn thing was private, changing the property to be public fixes the issue.<br />
<pre>public var _volumeValue:Number = 0;</pre></p>

<p>stupid fix, but a 1 at the morning you're just glad to be done.</p>]]>
    </content>
</entry>

<entry>
    <title>ANT 1.7 + Flex Builder.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000125.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.125</id>

    <published>2007-12-06T15:07:02Z</published>
    <updated>2008-02-14T13:32:59Z</updated>

    <summary>Well, lets get this thing going, any complains about my english please be sure to drop me an email cc&apos;ing the cable television network, since tv has been my english teacher for a long time now... At work, we&apos;ve playing...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="flex" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ant" label="ant" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="cairngorm" label="cairngorm" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="code" label="code" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flex" label="flex" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Well, lets get this thing going, any complains about my english please be sure to drop me an email cc'ing the cable television network, since tv has been my english teacher for a long time now...</p>

<p>At work, we've playing around with ANT for our projects, it just get the compile process a lot easier, but just when you think your life is great and everything is full of happiness, something came along... </p>]]>
        <![CDATA[<h3>Cairngorm</h3>
now, this time this  "something" is <a href="http://labs.adobe.com/wiki/index.php/Cairngorm" rel="external">cairgorm</a> which is a lightweight framework/micro-architecture to develop projects, at first Cairgorm is a royal pain in the butt to get used to (butt sounds kinda girl-ish, gonna use ass from now on),but later on it just get worse (just kidding.., but no, it really does!), the whole idea is really great but not so sure about doing the things in 3 different places.

<h3>CairnGen</h3>
Anyway, thanks god some great guys like <a href="http://www.ericfeminella.com/blog" rel="exernal">Eric Femilella</a> concerns about all the lazy asses like me and creates a code generator <a href="http://www.ericfeminella.com/blog/cairngen" rel="external">cairngen</a>, now the problem is that i wasn't able to make if work 'til i get my flexbuilder to work with ant 1.7, and since I've seen some people asking here's how i did it.
<h3>Updating ANT</h3>
<ul>
	<li>If you don't have flexbuilder+ant already, go to <a href="http://www.peterelst.com/blog/2006/09/03/flex-builder-2-ant-support/">Peter Elst's</a> post to find out how.</li>
	<li>Now that you have ant powered FlexBuilder, download the *new* ANT from <a href="http://ant.apache.org/bindownload.cgi" rel="external">here</a>, in my case I got the zip version.</li>
	<li>Uncompressed the contents of the file somewhere in your hard-disk, in my case the files ended at c:\Ant, just remember the "path"</li>
	<li>Now, we'll probably gonna need some of the optional libraries too, thankfully there is an easy way to do this.</li>
	<li>Launch your command console (start>run> type cmd and hit enter)</li>
	<li>Afraid of the ugly black screen?, don't be, you can close it at any time if things get uglier</li>
	<li>We're gonna need to get to the folder where you drop the ant files, to do that type cd + the folder path, in my case</li>
</ul>
<pre>cd c:\Ant</pre>
<ul>
	<li>Once your there, type the following command to get the optional libraries</li>
</ul>
<pre>bin\ant -file fetch.xml</pre>
<ul>
	<li>Then, just wait (give java connection access if your firewall asks you)</li>
	<li>When the libraries are downloaded, we just need change the path to update the ant directory's path inside flex builder, to do this</li>
	<li>Open flex builder</li>
	<li>Go to windows > preferences.</li>
	<li>Once you're there, select ant > runtime</li>
	<li>Click on Ant home and select your folder (c:\Ant in my case)</li>
	<li>If you get a warning about a missing tools.jar file search your hard disk for that file and point to that folder in you global entries.</li>
</ul>
<a href="/blog/samples/ant17_Fbuilder.gif"><img src="/blog/samples/ant17_Fbuilder.gif" title="ant+FlexBuilder (click to enlarge)" alt="ant + flex builder" width="300" height="182" border="0"/></a>]]>
    </content>
</entry>

<entry>
    <title>Update.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000124.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.124</id>

    <published>2007-10-24T12:29:20Z</published>
    <updated>2007-10-24T13:43:05Z</updated>

    <summary>hola gente, tiempo sin postear. esto es lo que ha pasado en los últimos 6 meses:...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="otros" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>hola gente, tiempo sin postear.<br />
esto es lo que ha pasado en los últimos 6 meses:<br />
</p>]]>
        <![CDATA[<h3>Ale&Yo</h3>
<ul>
  <li>Ale sigue en la U estudiando, est&aacute; contenta y motivada en iguales cantidades =)</li>
  <li> Luego de 19 a&ntilde;os de andar fumando, decid&iacute; dejar el vicio, 2 meses limpio y contando!</li>
  <li> un nuevo intregrande se nos unir&aacute; a la famila en febrero: MAX mi primer perro ^^</li>
</ul>
<h3>Schematic.</h3>
<ul>
  <li>    Casi 2 a&ntilde;os despu&eacute;s, el departamente de Multimedios de Schematic Costa Rica ya tiene 4 miembros, no s&oacute;lo excelentes flasheros sino personas.</li>
  <li> A principios de mes Schematic me mand&oacute; de viaje a Chicago, a un evento llamado adobeMAX, todo pago, eso estuvo muy tuanis =D</li>
  <li>Ahora cumplo el rol de Arquitecto de Software para la plataforma</li>
  <li> Anuncio desvergonzado:En Schematic siempre estamos en busca de nuevo talento, manda to CV a crjobs[at]schematic.com<br />
  </li>
</ul>
<h3>Xbox</h3>
<ul>
  <li>Actualmente jugando Bioshock 70% done</li>
  <li> Halo3 esta en queue (en espera para ser jugado) 5% done</li>
  <li> Ale y yo estamos ansiosos y pendientes al lanzamiento de Assassins Creed, el pr&oacute;ximo 13 de noviembre.</li>
  <li> Juegos para el proximo a&ntilde;o <a href="http://lionhead.com" rel="external">Fable 2</a>, <a href="http://www.wetthegame.com" rel="external">Wet</a></li>
</ul>
<h3><br />
  Cambios / Cosas por hacer</h3>
<ul>
  <li>    kadazuro.blog: <br />
    <strong>version larga:</strong>"con gran poder vienen grandes resposanbilidades", ahora con mi nuevo rol, el uso de ingl&eacute;s ser&aacute; m&aacute;s exigente ya que tendr&aacute; m&aacute;s exposici&oacute;n a nivel interno (documentaci&oacute;n t&eacute;cnica y funcional) tanto como con clientes... as&iacute; que prefiero hacer p&uacute;blicos mis errores gr&aacute;matico-lengu&iacute;sticos ac&aacute; que all&aacute;, al principio ser&aacute; una "cagad&oacute;n de risa", pero con el tiempo ir&aacute; mejorando.<br />
    <strong>versi&oacute;n corta:</strong> kadazuro.blog pasa a ingl&eacute;s apartir del nuevo post.(todos los temas menos anuncios)</li>
  <li>  FlashLA: actualizar el site para hacer el transfer cuando salga la nueva versi&oacute;n del phpbb3.</li>
  <li> FPGCR: <a href="http://fpgcr.og" rel="external">Flash  Platform Group Costa Rica</a>: Ryan Stewart en Costa Rica el 2 de enero, dar&aacute; una charla de Adobe AIR </li>
</ul>]]>
    </content>
</entry>

<entry>
    <title>Flex Builder gratis para Escuelas.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000123.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.123</id>

    <published>2007-10-24T12:25:43Z</published>
    <updated>2007-10-24T12:28:15Z</updated>

    <summary>Adobe está anunciando que dará gratis el FlexBuilder 2 a estudiantes y centros educativos http://biz.yahoo.com/bw/071024/20071023006845.html?.v=1 nice =)...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="anuncios" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Adobe está anunciando que dará gratis el FlexBuilder 2 a estudiantes y centros educativos<br />
<a href="http://biz.yahoo.com/bw/071024/20071023006845.html?.v=1" rel="external">http://biz.yahoo.com/bw/071024/20071023006845.html?.v=1</a><br />
nice =)</p>]]>
        
    </content>
</entry>

<entry>
    <title>removiendo Items de un Array.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000122.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.122</id>

    <published>2007-06-12T16:36:21Z</published>
    <updated>2007-07-05T17:09:09Z</updated>

    <summary>Es bonito ver que &quot;gente&quot; que ha estado con nosotros durante tanto tiempo, se moderniza, o por lo menos sus creadores se toman el tiempo para preguntar &quot;qué le podemos agregar a este typo para hacerlo aún más util?&quot;. este...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Es bonito ver que "gente" que ha estado con nosotros durante tanto tiempo, se moderniza, o por lo menos sus creadores se toman el tiempo para preguntar "qué le podemos agregar a este typo para hacerlo aún más util?".<br />
este es el caso del siempre bien querido Array.<br />
Un Array siempre ha sido útil, y es uno de los preferidos para guardar info y tener esta info a mano, ya que es nada más cuestión de crealo y empezar a "echarle"  valores para usarlo luego.<br />
El problema era cuando habia que recorrer el bendido array para ver si existia un valor, o aún peor cuando habia que remover algún valor.</p>]]>
        <![CDATA[<h3>removiendo items, the oldWay</h3>
imágina que tenés un array el cual continene objetos o valores, y en determinado momento tenés que eliminar los elementos cuyo valor sea x.

<p>[code]<br />
var userData:Array = new Array(0,1,2,3,4,5,3,4,3,3,2,1);<br />
trace(userData.toString());<br />
function removeItemsOldWay(array:Array, removeValue:Number):Array{<br />
	var outputArray:Array = new Array();<br />
	for( var i:Number = 0; i < array.length; i++)<br />
	{<br />
		if( array[i] != removeValue)<br />
		{<br />
			outputArray.push(array[i]);<br />
		}<br />
	}<br />
	return outputArray;<br />
}<br />
userData = removeItemsOldWay(userData,3);<br />
trace(userData.toString());<br />
[/code]</p>

<p>La forma fácil es recorrer el arreglo, y regresar sólo los valores que son diferentes a los que queremos obtener<br />
[code]if( array[i] != removeValue)<br />
		{<br />
			outputArray.push(array[i]);<br />
		}[/code]</p>

<p>otrá más complicada buscar los índices en los que los valores coincides y aplicarle el bisturí al array(usando array.slice)<br />
<h3>Qué hay de nuevo Array?</h3><br />
Array as3, es el típico perro viejo que aprendió nuevos trucos (sin aluciones personales). acá algunos de sus nuevos features.<br />
<ul><br />
<li>Array.every</li><br />
<li>Array.filter</li><br />
<li>Array.forEach</li><br />
<li>Aarray.map</li><br />
<li>Aarray.some</li><br />
</ul><br />
En este post me voy a concentrar en Array.filter, la otra gente queda para futuras ocasiones o mejor aún se las dejo de tarea. =P</p>

<h3>removiendo items the new groovy way</h3>
Array filter, ejecuta una acción en cada uno de los items/índices que conforman el arreglo, regresando un nuevo array conteniendo los elementos que cumplieron una condicion, especificada dentro de la función que se usa como argumento.
es decir, si queremos que en el arreglo 
[code]new Array(0,1,2,3,4,5,3,4,3,3,2,1);[/code] 
nos regrese los elementos que tiene el valor 3,  este nos regresaría un array con 2 valores., la funcion ser vería algo como:

<p>[code]function gimmeLos3(element:*, index:int, arr:Array):Boolean {<br />
  return (element == 3);<br />
}[/code]</p>

<p>regresando true únicamente cuando el elemento tenga el valor 3, y agregando este valor al nuevo arreglo.<br />
Para este caso en particular lo que queremos lograr es todo lo contrario, es obtener los objetos cuyos valores sean diferentes al valor que queremos remover.</p>

<p>[code]function gimmeLos3(element:*, index:int, arr:Array):Boolean {<br />
  return (element != valorAEliminar);<br />
}[/code]</p>

<p>otra cosa que se puede hacer es enviar una función anónima como argumento, y así poder usar argumentos dentro de esta.<br />
[code]<br />
var userData:Array = new Array(0,1,2,3,4,5,3,4,3,3,2,1);<br />
trace(userData.toString());<br />
function removeItems(array:Array, removeValue:Number):Array{<br />
	var outputArray:Array = array.filter(function (item:*, 	index:int,array:Array):Boolean<br />
						{<br />
							return (item != removeValue);<br />
						});<br />
	return outputArray;<br />
}<br />
userData = removeItems(userData,3);<br />
trace(userData.toString());<br />
[/code]</p>

<p>nótese que la función removeItems soporta dos argumentos, el array y el valor a verificar, nótese además que este valor es pasado dentro de la función anónima, usándolo así como valor verificador<br />
[code]return (item != removeValue);[/code]</p>

<h3>Otros usos</h3>
Estos nuevos métodos del array son útiles no sólo para remove items, también se puede usar para actualizar los objetos dentro de un arreglo (usando forEach), saber cuántos objetos cumplen x condición (array.filter(function).length), o como en el ejemplo de flash, donde tiene la lista de usurios en un arreglo y quiere saber cuáles son administradores.]]>
    </content>
</entry>

<entry>
    <title>Flash Platform Group Costa Rica.</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000121.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.121</id>

    <published>2007-06-07T19:07:20Z</published>
    <updated>2007-07-05T17:09:09Z</updated>

    <summary>Hola gentes estamos haciendo un grupo de desarrolladores de la plataforma de flash para CostaRica, ya tenemos el visto bueno de los adobes y Schematic nos va a prestar el conference room. el grupo se va a reunir el primer...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="anuncios" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Hola gentes<br />
estamos haciendo un grupo de desarrolladores de la plataforma de flash para CostaRica, ya tenemos el visto bueno de los adobes y <a href="http://schematic.com" rel="external">Schematic</a> nos va a prestar el conference room.</p>

<p>el grupo se va a reunir el primer miércoles de cada mes (en la medida de lo posible), vamos a tener presentaciones, temas de discusión y otras cosillas.</p>

<p>m&aacute;s info, direcciones y faq en el <a href="http://fpgcr.org" rel="external">site</a><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>que más hay que aprender?</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000120.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.120</id>

    <published>2007-04-15T01:41:48Z</published>
    <updated>2007-05-08T16:48:21Z</updated>

    <summary>Conforme pasa el tiempo, las herramientas de desarrollo van evolucionando, obligándonos a los desarrolladores a hacer lo mismo. En un mercado tan competivo es difícil sobresalir, ya no basta con saber usar flash o saber utilizar componentes....</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Conforme pasa el tiempo, las herramientas de desarrollo van evolucionando, obligándonos a los desarrolladores a hacer lo mismo. En un mercado tan competivo es difícil sobresalir, ya no basta con saber usar flash o saber utilizar componentes. </p>]]>
        <![CDATA[<p>Durante este año en <a href="http://www.schematic.com" rel="external">Schematic</a>, he visto cómo los requisitos para aplicantes van siempre en aumento, también he visto como el no conocer cosas básicas como las buenas prácticas o conceptos un poco más avanzados se han vuelto contra el desarrollador a la hora de aplicar por un puesto.</p>

<p>Acá dejo una lista de cosas que pueden ayudar, para aquel interasado en aprender conceptos importantes, algunos no necesariamente ligados exclusivamente a Flash, sino más bien al desarrollo de software (la lista puede crecer en cualquier momento)</p>


<ul>
<li>ActionScript [<acronym title="la ayuda en flash">F1</acronym>, internet, libros...]</li>
<li>Buenas Prácticas (Best Practices)[<a href="http://www.adobe.com/devnet/flash/articles/as_bestpractices.html" rel="external">link</a>]</li>
<li><acronym title="Object Oriented Programming">OOP</acronym> (Programación Orientada a Objetos)</li>
<li>Patrones de diseño (Design Patterns)</li>
<li><acronym title="Unified Modeling Language">UML</acronym> (Lenguaje Unificado de Modelaje) [<a href="http://www.uml.org" rel="external">link</a></li>
<li>Flash/Flex Framework</li>
<li>Aplicaciones Basadas en Eventos</li>
<li>Documentación (<a href="http://java.sun.com/j2se/javadoc/writingdoccomments/index.html" rel="external">Javadoc</a>)</li>
<li>Inglés (cada vez es más un requisito que una opción)</li>
</ul>



<p>Saber todo esto no solo te puede ayudar a conseguir un trabajo, sino que también te ayudara a comunicar de una manera más efectiva con/entre colegas, y como desarrollador te dará más confianza o fundamentos a la hora de defender/exponer trabajo</p>]]>
    </content>
</entry>

<entry>
    <title>update</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000119.php" />
    <id>tag:www.kadazuro.com,2007:/blog//1.119</id>

    <published>2007-04-10T02:26:12Z</published>
    <updated>2007-05-03T00:47:38Z</updated>

    <summary>hola gente, rato de no andar por acá, por este lado del mundo he andado algo ocupado, les dejo un resumen (advertencia no hay código en este post)...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="otros" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>hola gente, rato de no andar por acá, por este lado del mundo he andado algo ocupado, les dejo un resumen<br />
(advertencia no hay código en este post)<br />
 </p>]]>
        <![CDATA[<h3>trabajo</h3>
desde finales del año pasado soy parte del proyecto llamado <a href="http://flip.com" rel="external">flip</a>, trabajando para <a href="http://schematic.com" rel="external">Schematic</a>. Flip, hecho en Flex, es una aplicación  para realizar cuadernos o albumes de fotos en línea, el usuario puede subir el set de fotos, crear el cuaderno, organizar las fotos por páginas, escoger las transiciones entre estas, agregar música, y demás. Una vez publicado, se pueden dejar comentarios, crear links, ver los cuadernos relacionados, todos los cuadernos del usuario y un par de cosas más.<br />
La aplicación está compuesta por dos módulos, uno para hacer los cuadernos y el otro para verlos y poner los comentarios.<br />
Proyecto grande, gran escuela para aprender flex.

<h3>juguetes</h3>
el <a href="http://www.kadazuro.com/blog/archives/000101.php" rel="external">carro</a> se ha estado portando mal, pasó como tres meses en el taller pero ya salió, espero que se componga (más le vale que se componga)

<p>Mi vieja laptop se había auto-jubilado hace un tiempo ya, no había tenido motivo para renovarla teniendo en cuenta que con la desk me era suficiente, pero ya que en el trabajo nos mandan de paseo (ojalá fuera de paseo), decidí renovar mi lap, y me compré una <a href="http://www.dell.com/content/products/productdetails.aspx/xpsnb_m1210?c=us&amp;cs=RC956904&amp;l=en&amp;s=hied" rel="external">dell xps m1210</a>, bastante coqueta la condenada, pequeña pero respondona, rápida, no se pega, la pantalla no es de lo mejor que haya visto y calienta un poco, pero fuera de eso, todo bien.<br />
Desde enero tenemos otro nuevo miembro en la familia: mi nueva Xbox360 (esta cabrona calienta más que la lap), creo que esta es la principal culpable de los pocos post por acá. mientras compraba juegos le dí una repasada a dos de mis favoritos: Ninja Gaiden Black y Fable; ahora, ya con juegos nuevos, voy por el modo insane de Gears Of Wars =D. he estado por colgar mi profile acá al estilo <a href="http://weblogs.macromedia.com/mesh/" rel="external">mike chambers</a>, pero lo tengo entre las cosas por hacer.</p>

<h3>Cosas por hacer</h3>
- update a FlashLA: he estado por cambiar el skin, actualizar el foro, pero no tiene chiste hasta que no saquen el nuevo phpbb ( o encuentre un mejor BB)<br />
- colgar mi profile de xbox en el blog (bueno, cuando tenga más puntos y le pueda meter un skin)<br />
- agregar mi <a href="http://del.icio.us/kadazuro" rel="external">del.icio.us</a>( y actualizarlo)<br />
- actualizar mi portfolio (no es que esté  buscando trabajo, pero el portafolio que tengo ahora es difícil de actualicar <strong>casa de herrero, cuchillo de palo</strong>)<br />
- más posts relacionados con programación y menos con chit-chat =)]]>
    </content>
</entry>

<entry>
    <title>de embedding assets y peso final</title>
    <link rel="alternate" type="text/html" href="http://www.kadazuro.com/blog/archives/000118.php" />
    <id>tag:www.kadazuro.com,2006:/blog//1.118</id>

    <published>2006-11-08T13:42:44Z</published>
    <updated>2006-12-05T07:41:52Z</updated>

    <summary>Recientemente estaba tratando de optimizar un proyecto en flex (tratando de reducir el peso del swf final), ya que de todas maneras el framework the flex nos regala apróximadamente 100kb (usando algún uicomponent de la familia ) Pensábamos que el...</summary>
    <author>
        <name>kada</name>
        <uri>http://www.kadazuro.com</uri>
    </author>
    
        <category term="flash" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.kadazuro.com/blog/">
        <![CDATA[<p>Recientemente estaba tratando de optimizar un proyecto en flex (tratando de reducir el peso del swf final), ya que de todas maneras el framework the flex nos regala apróximadamente 100kb (usando algún uicomponent de la familia <mx>)<br />
Pensábamos que el embeder el mismo asset desde diferentes mxml, nos resultaría en una swf final de mejor tamaño; estos fueron los resultados.</p>]]>
        <![CDATA[<p>las pruebas concistieron en probar las diferentes formas de embeder imágenes dentro de una aplicación de flex, en estas pruebas usé el mismo jpg (16kb)<br />
<div style="align:center"><br />
<img src="http://kadazuro.com/blog/samples/frogcr.jpg" height="204" width="300" alt="sapito tico"/><br />
</div><br />
<h3>Prueba 1: simple embeding</h3><br />
Embedir una imagen de manera normal para tener el peso final de un swf "normal" (asignando el valor del embed a una variable tipo clase, y usando esta como source del objeto image) <br />
[code]<br />
<?xml version="1.0" encoding="utf-8"?><br />
<!-- single asset embed --><br />
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><br />
	<mx:Script><br />
		<![CDATA[<br />
			[Embed(source='/assets/frogcr.jpg')]<br />
			[Bindable]<br />
			public var asset:Class;<br />
		]]&gt;<br />
	</mx:Script><br />
	<mx:Image source="{asset}" /><br />
</mx:Application>[/code]<br />
Peso del swf: 139kb (gracias por lo 123kb, adobe)<br />
<h3>Prueba 2: embediendo la image dos veces, mismo archivo </h3><br />
Esta vez se embede directamente la imagen en un objeto Image, y el source del otro se hace igual que en el ejemplo anterior.<br />
[code]<br />
<?xml version="1.0" encoding="utf-8"?><br />
<!--same asset embedded twice, same document --><br />
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="425"><br />
	<mx:Script><br />
		<![CDATA[<br />
			[Embed(source='/assets/frogcr.jpg')]<br />
			[Bindable]<br />
			public var asset:Class;<br />
		]]&gt;<br />
	</mx:Script><br />
	<mx:Box><br />
		<mx:Image source="{asset}" /><br />
		<mx:Image source="@Embed(source='/assets/frogcr.jpg')" />	<br />
	</mx:Box><br />
</mx:Application>[/code]<br />
Peso final del swf: 139kb<br />
<h3>Prueba 3: mismo jpg, diferentes mxml, mismo nombre</h3><br />
Esta vez, utilizo el archvo en un componente externo<br />
<strong>AssetInComponent.mxml</strong><br />
[code]<br />
<?xml version="1.0" encoding="utf-8"?><br />
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="204" verticalScrollPolicy="off" horizontalScrollPolicy="off"><br />
	<mx:Script><br />
		<![CDATA[<br />
			[Embed(source='/assets/frogcr.jpg')]<br />
			[Bindable]<br />
			public var asset:Class;<br />
		]]&gt;<br />
	</mx:Script><br />
	<mx:Image source="{asset}" />	<br />
</mx:Canvas>[/code]<br />
y lo importo dentro de la aplicación principal, donde también embedo la imagen;nótese que ambos nombres del la variable tipo Class tienen el mismo nombre),<br />
[code]<?xml version="1.0" encoding="utf-8"?><br />
<!-- same asset embedded once in local file, another one in external file (same var name) --><br />
<mx:Application <br />
	xmlns:mx="http://www.adobe.com/2006/mxml" <br />
	xmlns:local="*"<br />
	layout="absolute"<br />
	height="425"><br />
	<mx:Script><br />
		<![CDATA[<br />
			[Embed(source='/assets/frogcr.jpg')]<br />
			[Bindable]<br />
			public var asset:Class;<br />
		]]&gt;<br />
	</mx:Script><br />
	<mx:Box><br />
		<local:AssetInComponent/><br />
		<mx:Image source="{asset}" />	<br />
	</mx:Box><br />
</mx:Application>[/code]<br />
Peso final del swf: 140kb (hey!, estamos agregando un xml externo, está bien que este pese 1kb!)<br />
<h3>Prueba 4: mismo jpg, diferentes archivos, diferente nombre</h3><br />
Utilizando el mismo archivo que en el ejemplo anterior (AssetInComponent.mxml), pero esta vez la variable local tiene un nombre diferente<br />
[code]<br />
<?xml version="1.0" encoding="utf-8"?><br />
<!-- same asset embedded once in local file, another one in external file (different var name) --><br />
<mx:Application <br />
	xmlns:mx="http://www.adobe.com/2006/mxml" <br />
	xmlns:local="*"<br />
	layout="absolute"<br />
	height="425"><br />
	<mx:Script><br />
		<![CDATA[<br />
			[Embed(source='/assets/frogcr.jpg')]<br />
			[Bindable]<br />
			public var localAsset:Class;<br />
		]]&gt;<br />
	</mx:Script><br />
	<mx:Box><br />
		<local:AssetInComponent/><br />
		<mx:Image source="{localAsset}" />	<br />
	</mx:Box><br />
</mx:Application>[/code]<br />
Peso final del swf: 140kb<br />
<h3>Resumen</h3><br />
Prueba 1: 139kb<br />
Prueba 2: 139kb,<br />
Prueba 3: 140kb,<br />
Prueba 4: 140kb<br />
<h3>Conclusión</h3><br />
No hace falta ser ciéntico nuclear para darnos cuenta que no afecta en lo más mínimo cuántas veces se embeda un mismo asset en diferentes o en mismos archivos, claro lo ideal es poder tener los archivos en un solo lugar para asi sólo editar un lado en el caso de cambiar el asset o el nombre del mismo (acá es cuando mr <a href="http://es.wikipedia.org/wiki/Patr%C3%B3n_de_dise%C3%B1o_Singleton" rel="external">Singleton</a> nos viene de maravilla).<br />
Pues que mal, que los swf pesen tanto, pero que bien que la librería no sea tan tonta y reconozca un asset para evitar aplicaciones aún más pesadas (recuerdo que el desktop de <a href="http://computadora.de" rel="external">computadora.de</a> pesaba 85kb, y eso que era un casi que shell =/ )<br />
mr. zip vivé <a href="http://kadazuro.com/blog/download/EmbeddingAssets.zip" rel="external">acá</a></p>]]>
    </content>
</entry>

</feed>
