<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Name Is Rich</title>
	<atom:link href="http://blog.imperez.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.imperez.com</link>
	<description></description>
	<lastBuildDate>Mon, 22 Mar 2010 16:54:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Simple Menu in jQuery</title>
		<link>http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/</link>
		<comments>http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 16:54:04 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=243</guid>
		<description><![CDATA[
I&#8217;ve been wanting to mess around with jQuery and I finally had some time to do just that. I figured to keep it simple and try to recreate something that I usually make in good &#8216;ole Flash. My project turned out to be a simple menu that when you rollover an item a  small bar [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.imperez.com/experiments/simple_menu.php"><img class="alignnone size-full wp-image-245" title="Simple Menu" src="http://blog.imperez.com/wp-content/uploads/2010/03/Picture-1.png" alt="" width="311" height="80" /></a></p>
<p>I&#8217;ve been wanting to mess around with <a href="http://www.jquery.com/">jQuery</a> and I finally had some time to do just that. I figured to keep it simple and try to recreate something that I usually make in good &#8216;ole Flash. My project turned out to be a simple menu that when you rollover an item a  small bar tweens to it. Then, when you click on an item another bar tweens over to show it&#8217;s selected state. It&#8217;s a simple concept and I realized I was able to recreate this very fast using only html, css, and jQuery.</p>
<p>This little project really helped me realize not only how easy this little framework makes development but how much fun it can be. There are a few things that I don&#8217;t like about javascript but that&#8217;s mainly due to the fact that it gives me nightmares of Actionscript 1 and 2.</p>
<p>If you want to check out the demo and source code I have pasted the link below.</p>
<p><a href="http://blog.imperez.com/experiments/simple_menu.php">Live Demo</a><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/05/30/5-tips-for-new-flash-developers/" rel="bookmark" title="May 30, 2009">5 Tips for new Flash Developers</a></li>
<li><a href="http://blog.imperez.com/2009/05/26/custom-blend-modes-in-flash-10/" rel="bookmark" title="May 26, 2009">Custom Blend Modes in Flash 10</a></li>
<li><a href="http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/" rel="bookmark" title="August 29, 2009">Flash Tip: Copy To Clipboard</a></li>
<li><a href="http://blog.imperez.com/2009/04/04/devunity/" rel="bookmark" title="April 4, 2009">Devunity</a></li>
<li><a href="http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/" rel="bookmark" title="January 3, 2010">&ldquo;I know Flash does all the animation for you.&rdquo;</a></li>
</ul>
<p><!-- Similar Posts took 406.579 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Fix for the Vimeo Player Stage TopLeft Alignment</title>
		<link>http://blog.imperez.com/2010/01/15/a-fix-for-the-vimeo-player-stage-topleft-alignment/</link>
		<comments>http://blog.imperez.com/2010/01/15/a-fix-for-the-vimeo-player-stage-topleft-alignment/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 16:51:57 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=237</guid>
		<description><![CDATA[Ok the title may be a little extreme but I wanted to post a quick and simple fix for a bug that I ran into. Hopefully, this post will help someone else or just serve as a reminder for me if I run into the same problem.
Well here is the background. I was working on [...]]]></description>
			<content:encoded><![CDATA[<p>Ok the title may be a little extreme but I wanted to post a quick and simple fix for a bug that I ran into. Hopefully, this post will help someone else or just serve as a reminder for me if I run into the same problem.</p>
<p>Well here is the background. I was working on a project that needed to load in the Vimeo Video Player, named <a href="http://vimeo.com/api/docs/moogaloop">Moogaloop</a>. This was my first time using it and so far it&#8217;s not too bad. A little hiccups here and there but I was able to get the player to load with help from <a href="http://blog.derhess.de/">derhess&#8217; helper class</a>. That was until I ran into one problem. It seemed that every time the Moogaloop player would be loaded into my own Flash movie the entire alignment would reset to <strong>Top Left</strong>. So, after doing a bit of reading and talking to a good friend that works at Vimeo we came up with the workaround of just reverting the alignment back to it&#8217;s original value. And that was it. The bug was now &#8220;fixed&#8221; and my site didn&#8217;t have that nasty shift to the side problem.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/04/04/devunity/" rel="bookmark" title="April 4, 2009">Devunity</a></li>
<li><a href="http://blog.imperez.com/2009/05/30/5-tips-for-new-flash-developers/" rel="bookmark" title="May 30, 2009">5 Tips for new Flash Developers</a></li>
<li><a href="http://blog.imperez.com/2009/07/27/quick-flash-tip-centering-the-stage/" rel="bookmark" title="July 27, 2009">Quick Flash Tip: Centering the Stage</a></li>
<li><a href="http://blog.imperez.com/2009/03/18/pearl-jam-ten-game/" rel="bookmark" title="March 18, 2009">Pearl Jam Ten Game</a></li>
<li><a href="http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/" rel="bookmark" title="January 3, 2010">&ldquo;I know Flash does all the animation for you.&rdquo;</a></li>
</ul>
<p><!-- Similar Posts took 35.545 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2010/01/15/a-fix-for-the-vimeo-player-stage-topleft-alignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;I know Flash does all the animation for you.&#8221;</title>
		<link>http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/</link>
		<comments>http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 15:08:02 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[clients]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/</guid>
		<description><![CDATA[No, I didn’t hear that from any project manager or fellow employee. I actually read that line from the great site Clients From Hell. As I’ve mentioned before this is one of my favorite sites and this little nugget is proof why. 
Client: I want you to do a 3-minute animation for my website. It’s [...]]]></description>
			<content:encoded><![CDATA[<p>No, I didn’t hear that from any project manager or fellow employee. I actually read that line from the great site <a href="http://clientsfromhell.tumblr.com">Clients From Hell</a>. As I’ve mentioned <a href="http://blog.imperez.com/2009/11/25/what-is-rich-thankful-for-blogs/">before</a> this is one of my favorite sites and this little nugget is proof why. </p>
<blockquote><p><b>Client:</b> I want you to do a 3-minute animation for my website. It’s okay if it’s in Flash. How much is that?</p>
<p><b>Me: </b>That depends, what did you have in mind exactly?</p>
<p><b>Client:</b> Well, I don’t know. It depends on how much it costs.</p>
<p><b>Me:</b> The price depends on how complex the designs are, if there is any level of interactivity, if I have to get licensed music, if there is voiceover, etc.</p>
<p><b>Client:</b> I’m just asking how much 3 minutes of animation is. I don’t know what I want.</p>
<p><b>Me:</b> Well, the most basic designs start at $3,000 and more complex designs are upwards of $20,000.</p>
<p><b>Client:</b> WHAT? I thought it would be like $100. I told you, you can do it in Flash.</p>
<p><b>Me:</b> That’s how much Flash animation costs.</p>
<p><b>Client:</b> Bullshit. I know Flash does all the animation for you.</p>
</blockquote>
<p><a href="http://clientsfromhell.tumblr.com/post/314597038/client-i-want-you-to-do-a-3-minute-animation-for">direct link</a>.</p>
<p>Now, I wanted to post this because for one reason it makes me laugh and therefore you should all be lol-ing right now. Two, it’s an clear example of a client being uneducated or simply not caring to know what is or isn’t possible despite being told the truth. When a client acts this way it can be a tough time for everyone. Fingers get pointed, lawyers are involved, cats and dogs living together… mass chaos. So, how do we fix this? Do we as developers invoke our civic duty of trying to educate these clients? Yes, I believe so but sometimes it’s not enough and sometimes business is just business. In the above case, I hope the client and developer reach a fair agreement in price or they break times then and there. All we can take from this is a lesson and hope to God that this doesn’t happen to any one of us.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/03/18/pearl-jam-ten-game/" rel="bookmark" title="March 18, 2009">Pearl Jam Ten Game</a></li>
<li><a href="http://blog.imperez.com/2009/05/06/motion-tweens-in-flash-cs4/" rel="bookmark" title="May 6, 2009">Motion Tweens in Flash CS4</a></li>
<li><a href="http://blog.imperez.com/2009/07/27/quick-flash-tip-centering-the-stage/" rel="bookmark" title="July 27, 2009">Quick Flash Tip: Centering the Stage</a></li>
<li><a href="http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/" rel="bookmark" title="August 29, 2009">Flash Tip: Copy To Clipboard</a></li>
<li><a href="http://blog.imperez.com/2010/01/15/a-fix-for-the-vimeo-player-stage-topleft-alignment/" rel="bookmark" title="January 15, 2010">A Fix for the Vimeo Player Stage TopLeft Alignment</a></li>
</ul>
<p><!-- Similar Posts took 142.561 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Tip: Conditional Compiling</title>
		<link>http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/</link>
		<comments>http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 22:30:47 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[conditional compiling]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=221</guid>
		<description><![CDATA[Debuging is a craft in it&#8217;s own and it&#8217;s always helpful to find new tips and tricks. So, I&#8217;m writing to post about a new trick for helping us Flash coders debug our sweet, buggy code. Adobe put in a new feature in Flash CS4 called Conditional Compiling and you can read more about it [...]]]></description>
			<content:encoded><![CDATA[<p>Debuging is a craft in it&#8217;s own and it&#8217;s always helpful to find new tips and tricks. So, I&#8217;m writing to post about a new trick for helping us Flash coders debug our sweet, buggy code. Adobe put in a new feature in Flash CS4 called Conditional Compiling and you can read more about it from <a href="http://www.insideria.com/2009/10/create-cleaner-actionscript-wi.html">InsideRIA&#8217;s article</a>.</p>
<p>The basic idea is that you can use a compiler constant called <strong>CONFIG::Debug</strong> to tell the compile when to run some code. If the constant is set to true it&#8217;ll be run if it&#8217;s set to false then it won&#8217;t. Simple, right? Before you start coding you&#8217;ll want to go into your Actionscript 3 settings and click on the last tab surprisingly called &#8220;Config constants&#8221;. Here you can create the constant and set it&#8217;s value.</p>
<p>Now that you are all set you you can then use code such as this to see it in action.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> val:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">200</span>; i++<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    val += i <span style="color: #66cc66;">*</span> .5;
    CONFIG::Debug
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>val<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>And that&#8217;s it. It&#8217;s a small tip but one that I&#8217;ll be definitely using from now on in my projects. If you want to see another simple example I&#8217;ve put up a zip file located <a href="http://imperez.com/examples/Config-Debug.zip">here</a> for your viewing pleasure.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/" rel="bookmark" title="August 29, 2009">Flash Tip: Copy To Clipboard</a></li>
<li><a href="http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/" rel="bookmark" title="March 22, 2010">A Simple Menu in jQuery</a></li>
<li><a href="http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/" rel="bookmark" title="October 17, 2009">Using Bit.ly from Flash</a></li>
<li><a href="http://blog.imperez.com/2009/07/16/reflection-movieclip-reflectionclip/" rel="bookmark" title="July 16, 2009">Reflection + MovieClip = ReflectionClip</a></li>
<li><a href="http://blog.imperez.com/2009/05/26/custom-blend-modes-in-flash-10/" rel="bookmark" title="May 26, 2009">Custom Blend Modes in Flash 10</a></li>
</ul>
<p><!-- Similar Posts took 209.558 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Joy of #flashinsults</title>
		<link>http://blog.imperez.com/2009/11/17/joy-of-flashinsults/</link>
		<comments>http://blog.imperez.com/2009/11/17/joy-of-flashinsults/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:47:11 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=208</guid>
		<description><![CDATA[Well, yesterday Matt and I discussing the value of insults themed around flash. This sparked us trading them back and forth and after a having a few lefts we took off to twitter. We both started posting as many insults as we could and surprisingly we found a welcoming response from a few fellow flash [...]]]></description>
			<content:encoded><![CDATA[<p>Well, yesterday <a href="http://exanimo.com/">Matt</a> and I discussing the value of insults themed around flash. This sparked us trading them back and forth and after a having a few lefts we took off to <a href="http://twitter.com/#search?q=%23flashinsults">twitter</a>. We both started posting as many insults as we could and surprisingly we found a welcoming response from a few fellow flash devs. They also started to post back their own and the result was pure flash-geek-comedy. I have to say I&#8217;m glad that so many people enjoyed it and to show my love I decided to post a few of my favorites below.</p>
<p>Feel free to add to the fun if you are a flash developer!</p>
<ul>
<li><a href="https://twitter.com/8dot3">@8dot3</a> Your mom is so fat she&#8217;s spread across five scenes.</li>
<li><a href="https://twitter.com/BrendanOliver">@BrendanOliver </a>#flashinsults you&#8221;ll never be able to addChild() while(this.member().length() &lt; 4)</li>
<li><a href="https://twitter.com/matthewwithanm">@matthewwithanm </a>Your mom is so dumb that she tried to use tellTarget to return a vacuum. #flashinsults</li>
<li><a href="https://twitter.com/morgenstille">@morgenstille </a>you&#8217;re so fat, when your rotation val is changed, the earth starts shaking #flashinsults</li>
<li><a href="https://twitter.com/greg_dove">@greg_dove</a> you&#8217;re so stupid, you think flash.display.JointStyle is an option at a Californian herbal medicine dispensary #flashinsults</li>
<li><a href="https://twitter.com/lettertwo">@lettertwo</a> while (person == you) trace(&#8216;hahahahahahahaha&#8217;); #flashinsults</li>
</ul>
<p>And that&#8217;s it. There are a ton more so if you want to check it out <a href="http://twitter.com/#search?q=%23flashinsults">here</a>. I&#8217;m loving so many people found it enjoyable!<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/04/18/the-web-loves-ie6/" rel="bookmark" title="April 18, 2009">The Web &#8220;Loves&#8221; IE6</a></li>
<li><a href="http://blog.imperez.com/2009/05/06/motion-tweens-in-flash-cs4/" rel="bookmark" title="May 6, 2009">Motion Tweens in Flash CS4</a></li>
<li><a href="http://blog.imperez.com/2009/05/28/oooii-flash-hit-the-movies/" rel="bookmark" title="May 28, 2009">OOOii &#038; Flash Hit the Movies</a></li>
<li><a href="http://blog.imperez.com/2010/01/15/a-fix-for-the-vimeo-player-stage-topleft-alignment/" rel="bookmark" title="January 15, 2010">A Fix for the Vimeo Player Stage TopLeft Alignment</a></li>
<li><a href="http://blog.imperez.com/2009/05/30/5-tips-for-new-flash-developers/" rel="bookmark" title="May 30, 2009">5 Tips for new Flash Developers</a></li>
</ul>
<p><!-- Similar Posts took 21.844 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/11/17/joy-of-flashinsults/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I Love Inspiration</title>
		<link>http://blog.imperez.com/2009/10/17/i-love-inspiration/</link>
		<comments>http://blog.imperez.com/2009/10/17/i-love-inspiration/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 14:15:23 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Inspiration]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=190</guid>
		<description><![CDATA[I think I spend too much time going through sites, threads, rss feeds, etc all for one thing&#8230; inspiration.
I love it and I think it takes over too much of my time. Ask any of my co-workers and friends. I&#8217;m sure they&#8217;ll tell you daily horror stories of me sending them links upon links that [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_196" class="wp-caption alignnone" style="width: 410px"><a href="http://royhoes.deviantart.com/art/Out-of-Inspiration-85588391"><img class="size-full wp-image-196" title="Out Of Inspiration" src="http://blog.imperez.com/wp-content/uploads/2009/10/OutOfInspiration.jpg" alt="Out of Inspiration by Roy Hoes" width="400" height="150" /></a><p class="wp-caption-text">Out of Inspiration by Roy Hoes</p></div>
<p>I think I spend too much time going through sites, threads, rss feeds, etc all for one thing&#8230; <strong>inspiration</strong>.</p>
<p>I love it and I think it takes over too much of my time. Ask any of my co-workers and friends. I&#8217;m sure they&#8217;ll tell you daily horror stories of me sending them links upon links that I find interesting and inspiring. I&#8217;m not really sure why I do this and why I love going through so much media. I think if you ask some people they will say &#8220;I need it to stay ahead of the curve&#8221; or &#8220;I need to think of a new idea for a website design&#8221;. They will pour through books and websites. It&#8217;s almost like getting a fix for that great work that just makes you say &#8220;I want to do that!&#8221; Suddenly, a lightbulb is lit and you&#8217;re full of ideas and your second wind has just sprung. I don&#8217;t know about you but this type of rush keeps me motivated, allowing me to go through the &#8220;real&#8221; days of work. I feel like we all need something like that. There needs to be that edge that pushes you further when you&#8217;re running on empty.</p>
<p>At the end the day of the day you have to ask yourself &#8220;What inspires me?&#8221; Could be your job, family &amp; friends, religion, or something else. If you can find it&#8230; then hold onto it.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/05/06/motion-tweens-in-flash-cs4/" rel="bookmark" title="May 6, 2009">Motion Tweens in Flash CS4</a></li>
<li><a href="http://blog.imperez.com/2009/05/30/5-tips-for-new-flash-developers/" rel="bookmark" title="May 30, 2009">5 Tips for new Flash Developers</a></li>
<li><a href="http://blog.imperez.com/2009/06/05/friday-inspiration-david-pogue-says-simplicity-sells/" rel="bookmark" title="June 5, 2009">Friday Inspiration: David Pogue says &#8220;Simplicity sells&#8221;</a></li>
<li><a href="http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/" rel="bookmark" title="August 29, 2009">Flash Tip: Copy To Clipboard</a></li>
<li><a href="http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/" rel="bookmark" title="January 3, 2010">&ldquo;I know Flash does all the animation for you.&rdquo;</a></li>
</ul>
<p><!-- Similar Posts took 9.180 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/10/17/i-love-inspiration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Bit.ly from Flash</title>
		<link>http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/</link>
		<comments>http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 13:11:26 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[url shortening]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=170</guid>
		<description><![CDATA[So, I recently wanted to play around with the Bit.ly API and use it in flash. I decided it would be best to write up a nice little helper class. The usage for this is pretty simple and right now it only implements two of the API methods, shorten and expand. I&#8217;ll work on the [...]]]></description>
			<content:encoded><![CDATA[<p>So, I recently wanted to play around with the <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation">Bit.ly API</a> and use it in flash. I decided it would be best to write up a nice little helper class. The usage for this is pretty simple and right now it only implements two of the API methods, <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten">shorten </a>and <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/expand">expand</a>. I&#8217;ll work on the other calls but I figured these were the most widely used.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">imperez</span>.<span style="color: #006600;">apis</span>.<span style="color: #006600;">bitly</span>.<span style="color: #006600;">Bitly</span>;
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">imperez</span>.<span style="color: #006600;">apis</span>.<span style="color: #006600;">bitly</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">BitlyEvent</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> bitly:Bitly = <span style="color: #000000; font-weight: bold;">new</span> Bitly<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;bitly username&quot;</span>, <span style="color: #ff0000;">&quot;user api_key&quot;</span><span style="color: #66cc66;">&#41;</span>;
bitly.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>BitlyEvent.<span style="color: #006600;">SHORTEN</span>, <span style="color: #0066CC;">this</span>._shorten<span style="color: #66cc66;">&#41;</span>;
bitly.<span style="color: #006600;">shorten</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://www.google.com/&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> _shorten<span style="color: #66cc66;">&#40;</span>event:BitlyEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> shortURL:<span style="color: #0066CC;">String</span> = event.<span style="color: #006600;">currentTarget</span>.<span style="color: #006600;">shortURL</span>;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>shortURL<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//http://bit.ly/4BSxf</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>As you can see from the code above it&#8217;s pretty simple. Pass in your username and api key in the constructor and then listen for the BitlyEvent.SHORTEN event. Make your call along passing your long url and you are set to go. I wanted to keep this is as easy to use as possible. I also wanted to make it so you wouldn&#8217;t need to have to parse xml in order to get this information.</p>
<p>And that&#8217;s it. Nothing more to see but sweet, sweet code . If you&#8217;re interested I have it up on my repository located <a href="http://svn.imperez.com/as3/trunk/src/com/imperez/apis/bitly/">here</a>. There are still some bug fixes and general clean up to on top of further implementation but I would say it&#8217;s a good start.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/" rel="bookmark" title="August 29, 2009">Flash Tip: Copy To Clipboard</a></li>
<li><a href="http://blog.imperez.com/2009/07/16/reflection-movieclip-reflectionclip/" rel="bookmark" title="July 16, 2009">Reflection + MovieClip = ReflectionClip</a></li>
<li><a href="http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/" rel="bookmark" title="December 1, 2009">Flash Tip: Conditional Compiling</a></li>
<li><a href="http://blog.imperez.com/2009/04/18/the-web-loves-ie6/" rel="bookmark" title="April 18, 2009">The Web &#8220;Loves&#8221; IE6</a></li>
<li><a href="http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/" rel="bookmark" title="March 22, 2010">A Simple Menu in jQuery</a></li>
</ul>
<p><!-- Similar Posts took 7.178 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entering Google Wave</title>
		<link>http://blog.imperez.com/2009/10/01/entering-google-wave/</link>
		<comments>http://blog.imperez.com/2009/10/01/entering-google-wave/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 19:55:54 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=175</guid>
		<description><![CDATA[I was lucky to get my invite for Google Wave yesterday and quickly logged on. So far things seem smooth and I think this application has a ton of potential. It shows off my email from google mail and offers up a couple of default extensions. There&#8217;s even a section to manage your contacts on [...]]]></description>
			<content:encoded><![CDATA[<p>I was lucky to get my invite for Google Wave yesterday and quickly logged on. So far things seem smooth and I think this application has a ton of potential. It <span style="text-decoration: line-through;">shows off my email from google mail and</span> offers up a couple of default extensions. There&#8217;s even a section to manage your contacts on google wave. All is right but right now there&#8217;s no one to really&#8230; wave with. Hopefully once the invites keep coming I&#8217;ll be able to test it even more but for now I can just wait.</p>
<p>For anyone else riding the wave I hope you&#8217;re enjoying it and getting more out of it. As for those that are waiting for your invite don&#8217;t worry. I already sent out a few of mine and hopefully it won&#8217;t be too long until you get yours.</p>
<p>For now check out all the great previews <a href="http://lifehacker.com/5370738/google-wave-first-look">here</a>, <a href="http://arstechnica.com/web/news/2009/05/google-wave-mashes-communication-collaboration-together.ars">here</a>, and oh yea way over <a href="http://mashable.com/2009/05/28/google-wave-guide/">there</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/05/30/5-tips-for-new-flash-developers/" rel="bookmark" title="May 30, 2009">5 Tips for new Flash Developers</a></li>
<li><a href="http://blog.imperez.com/2009/04/04/devunity/" rel="bookmark" title="April 4, 2009">Devunity</a></li>
<li><a href="http://blog.imperez.com/2009/07/16/reflection-movieclip-reflectionclip/" rel="bookmark" title="July 16, 2009">Reflection + MovieClip = ReflectionClip</a></li>
<li><a href="http://blog.imperez.com/2010/01/03/i-know-flash-does-all-the-animation-for-you/" rel="bookmark" title="January 3, 2010">&ldquo;I know Flash does all the animation for you.&rdquo;</a></li>
<li><a href="http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/" rel="bookmark" title="October 17, 2009">Using Bit.ly from Flash</a></li>
</ul>
<p><!-- Similar Posts took 6.951 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/10/01/entering-google-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Tip: Copy To Clipboard</title>
		<link>http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/</link>
		<comments>http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 13:29:08 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[clipboard]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=153</guid>
		<description><![CDATA[Well, I was working a small project and I realized I needed to be able to copy content to the user’s clipboard. I know this is doable since I’ve seen it done in many, many flash sites and applications. So after a quick look through the Flash Help Docs I came across a little function [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I was working a small project and I realized I needed to be able to copy content to the user’s clipboard. I know this is doable since I’ve seen it done in many, many flash sites and applications. So after a quick look through the Flash Help Docs I came across a little function called <strong>System.setClipboard()</strong>. </p>
<p>Check out the example below to see it in action. All you have to do is type your own text and press copy. Simple and easy. </p>
<p>
<object width="300" height="400">
<param name="movie" value="http://blog.imperez.com/wp-content/uploads/2009/08/SetClipboardExample3.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="300" height="400" src="http://blog.imperez.com/wp-content/uploads/2009/08/SetClipboardExample3.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">System</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
&nbsp;
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">copyButton</span>.<span style="color: #006600;">mouseChildren</span> = <span style="color: #000000; font-weight: bold;">false</span>;
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">copyButton</span>.<span style="color: #006600;">buttonMode</span> = <span style="color: #000000; font-weight: bold;">true</span>;
<span style="color: #0066CC;">this</span>.<span style="color: #006600;">copyButton</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, <span style="color: #0066CC;">this</span>._click<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> _click<span style="color: #66cc66;">&#40;</span>event:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">System</span>.<span style="color: #0066CC;">setClipboard</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">copyField</span>.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">this</span>.<span style="color: #006600;">copyButton</span>.<span style="color: #006600;">labelField</span>.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Copied!!&quot;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>The way this code works is that after you&#8217;ve typed your text and press the copy button. System.setClipboard() is called and a string is passed as a parameter. And that&#8217;s really all of the grunt work. Nothing more or less. </p>
<p>I&#8217;ve uploaded a <a href="http://imperez.com/examples/SetClipboardExample.zip">zip file</a> containing all the source files for your viewing pleasure.</p>
<p>Hope you found this example useful!<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/" rel="bookmark" title="December 1, 2009">Flash Tip: Conditional Compiling</a></li>
<li><a href="http://blog.imperez.com/2009/10/17/using-bit-ly-from-flash/" rel="bookmark" title="October 17, 2009">Using Bit.ly from Flash</a></li>
<li><a href="http://blog.imperez.com/2010/03/22/a-simple-menu-in-jquery/" rel="bookmark" title="March 22, 2010">A Simple Menu in jQuery</a></li>
<li><a href="http://blog.imperez.com/2009/07/16/reflection-movieclip-reflectionclip/" rel="bookmark" title="July 16, 2009">Reflection + MovieClip = ReflectionClip</a></li>
<li><a href="http://blog.imperez.com/2009/04/04/devunity/" rel="bookmark" title="April 4, 2009">Devunity</a></li>
</ul>
<p><!-- Similar Posts took 7.280 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/08/29/flash-tip-copy-to-clipboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Flash Tip: Centering the Stage</title>
		<link>http://blog.imperez.com/2009/07/27/quick-flash-tip-centering-the-stage/</link>
		<comments>http://blog.imperez.com/2009/07/27/quick-flash-tip-centering-the-stage/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:29:42 +0000</pubDate>
		<dc:creator>imperez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.imperez.com/?p=150</guid>
		<description><![CDATA[Ok this is a quick tip that I figured to pass along. It&#8217;s nothing revolutionary but it has helped me a lot daily. 
So here&#8217;s the problem. You want to zoom into an object or multiple objects on the stage. What happens when you zoom in? Sometimes Flash will go to the area you expected [...]]]></description>
			<content:encoded><![CDATA[<p>Ok this is a quick tip that I figured to pass along. It&#8217;s nothing revolutionary but it has helped me a lot daily. </p>
<p>So here&#8217;s the problem. You want to zoom into an object or multiple objects on the stage. What happens when you zoom in? Sometimes Flash will go to the area you expected and other times it&#8217;ll just go over waaaaaay to the left or right or anywhere it feels like. Now, you&#8217;re stuck looking at a blank screen.</p>
<p>Here&#8217;s the solution. Instead of dragging your mouse over repeatedly desperately trying to find your objects just do this&#8230;. Press control/command + A. That will select all of your objects on the stage. Second, zoom in by pressing control/command + &#8220;+&#8221;. Now you&#8217;re back in business staring at your stage objects and it&#8217;s all centered. </p>
<p>That&#8217;s it. Again nothing special or ground breaking but very helpful.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blog.imperez.com/2009/10/17/i-love-inspiration/" rel="bookmark" title="October 17, 2009">I Love Inspiration</a></li>
<li><a href="http://blog.imperez.com/2009/05/26/custom-blend-modes-in-flash-10/" rel="bookmark" title="May 26, 2009">Custom Blend Modes in Flash 10</a></li>
<li><a href="http://blog.imperez.com/2009/12/01/flash-tip-conditional-compiling/" rel="bookmark" title="December 1, 2009">Flash Tip: Conditional Compiling</a></li>
<li><a href="http://blog.imperez.com/2009/07/16/reflection-movieclip-reflectionclip/" rel="bookmark" title="July 16, 2009">Reflection + MovieClip = ReflectionClip</a></li>
<li><a href="http://blog.imperez.com/2009/05/06/motion-tweens-in-flash-cs4/" rel="bookmark" title="May 6, 2009">Motion Tweens in Flash CS4</a></li>
</ul>
<p><!-- Similar Posts took 6.099 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.imperez.com/2009/07/27/quick-flash-tip-centering-the-stage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
