<?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>toDeBlog &#187; Contribution</title>
	<atom:link href="http://todepoint.com/blog/category/contribution/feed/" rel="self" type="application/rss+xml" />
	<link>http://todepoint.com/blog</link>
	<description>A blog about User Interface, User Experience, Design, Flash, Product management and all that goes in between.</description>
	<lastBuildDate>Tue, 20 Dec 2011 12:54:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Random number without repeat as3</title>
		<link>http://todepoint.com/blog/2011/01/15/random-number-without-repeat/</link>
		<comments>http://todepoint.com/blog/2011/01/15/random-number-without-repeat/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 11:52:25 +0000</pubDate>
		<dc:creator>adi</dc:creator>
				<category><![CDATA[action script]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[Contribution]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://todepoint.com/blog/?p=341</guid>
		<description><![CDATA[We're using the random object for many things, by its nature it may repeat a number, but sometimes we don't want to get the same number more than once, for example when showing a random image out of an array of images, or jumping to a random frame in a MovieClip. Currently there is no [...]]]></description>
			<content:encoded><![CDATA[<p>We're using the <a href="http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/Math.html#random()" target="_blank" title="random object">random</a> object for many things, by its nature it may repeat a number, but sometimes we don't want to get the same number more than once, for example when showing a random image out of an array of images, or jumping to a random frame in a MovieClip. Currently there is no 'unique' function in Actionscript, you have to write your own solution.<br />
<br />
Here is my class for generating random numbers:</p>
<div id="randomPlace" style="border:1px solid #e0e0e0; width:490px; height:400px;"><img src="http://www.todepoint.com/adi/as_examples/randomPlus/randomPlus.gif" width="490" height="400" alt="randomPlus" /></div>
<p><script type="text/javascript">
// <![CDATA[
var rndfsso = new SWFObject("http://www.todepoint.com/adi/as_examples/randomPlus/random_test.swf", "my_random", "500", "400", "9", "#FFFFFF");
rndfsso.addParam("allowFullscreen", "false");
rndfsso.write("randomPlace");
// ]]&gt;
</script><br />
<br />
<strong>Download:</strong> <a href="http://www.todepoint.com/adi/as_examples/randomPlus/RandomPlus.as" title="random numbers generator class" target="_blank">RandomPlus.as</a>. </p>
<p><strong>Usage:</strong><br />
Create an instance of RandomPlus, defining the numbers scope (start &#038; end numbers), including negative values. in case only one parameter is passed the RandomPlus object will assume it is the end number and that the start number is zero:<br />
<code>var rp:RandomPlus = new RandomPlus( end:Number, start:Number = 0 );</code></p>
<p>After that you can use 'getNum' public function that will return a random number within the scope:<br />
<code>rp.getNum(); // returns a Number</code></p>
<p>You can use public var 'len' to retrieve the length of the scope in case you want to use it for your function:<br />
<code>rp.len; // returns a Number</code></p>
<p>*The object will return unlimited amount of numbers, each time the entire scope was returned it will reshuffle the items so it will continue to return random numbers within the scope, in an ever-changing order.<br />
<br />
Let me know if you liked it (or if you have suggestions), enjoy :)</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://todepoint.com/blog/2011/01/15/random-number-without-repeat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pure code AS3 spinning loading animation</title>
		<link>http://todepoint.com/blog/2010/07/22/spinning_animation-as3/</link>
		<comments>http://todepoint.com/blog/2010/07/22/spinning_animation-as3/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 08:35:26 +0000</pubDate>
		<dc:creator>adi</dc:creator>
				<category><![CDATA[action script]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[Contribution]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://todepoint.com/blog/?p=104</guid>
		<description><![CDATA[While working on the video player, I wanted to show spinning loading animation while buffering, and since I decided that the whole thing will be pure code, with no library assets, I had to code this animation &#8211; just the kind of things I like. It didn&#8217;t take long, and I decided to share it [...]]]></description>
			<content:encoded><![CDATA[<p>While working on the video player, I wanted to show spinning loading animation while buffering, and since I decided that the whole thing will be pure code, with no library assets, I had to code this animation &#8211; just the kind of things I like.<br />
It didn&#8217;t take long, and I decided to share it &#8211; why not?
</p>
<p>So here it is:</p>
<div id="loadAnimPlace" style="border:1px solid #e0e0e0; text-align:center;"><img src="http://www.todepoint.com/adi/as_examples/loadAnimation/loader_place.jpg" width="450" height="100" border="0" alt="loader animation with action script 3 code" /></div>
<p><script type="text/javascript">
// <![CDATA[
var ldAnim = new SWFObject("http://www.todepoint.com/adi/as_examples/loadAnimation/loader_anim.swf", "loadAnimSwf", "450", "100", "9", "#ffffff");
ldAnim.write("loadAnimPlace");
// ]]&gt;
</script></p>
<p>What you need to do in order to use it is add two functions:</p>
<p><code><br />
import LoadAnim;<br />
...<br />
private var myAnim	:LoadAnim;<br />
...</p>
<p>public function showAnim():void<br />
{<br />
	myAnim = new LoadAnim(0x333333);  // animation color<br />
	myAnim.x = stage.stageWidth / 2;<br />
	myAnim.y = stage.stageHeight / 2;<br />
	addChild(myAnim);<br />
}</p>
<p>public function hideAnim():void<br />
{<br />
	myAnim.stopAnim();<br />
	removeChildAt(1);<br />
}<br />
</code><br />
Download the class <a href="http://www.todepoint.com/adi/as_examples/loadAnimation/LoadAnim.as" title="download my pure code spinning loading animation class">here</a>, enjoy : )</p>
]]></content:encoded>
			<wfw:commentRss>http://todepoint.com/blog/2010/07/22/spinning_animation-as3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flash &#8211; Highlighting a string in a textfield</title>
		<link>http://todepoint.com/blog/2007/08/09/flash-highlighting-a-string-in-a-textfield/</link>
		<comments>http://todepoint.com/blog/2007/08/09/flash-highlighting-a-string-in-a-textfield/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 22:12:41 +0000</pubDate>
		<dc:creator>adi</dc:creator>
				<category><![CDATA[action script]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[Contribution]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://todepoint.com/blog/?p=30</guid>
		<description><![CDATA[Jack Doyle at greensock shared a really cool AS2 class he calls &#8216;TextMetrics&#8217; &#8211; sounds promising ha?The class calculates x/y coordinates of a string in a textfield, allowing highlighting it or calculating rows width.. nice.Check out his example. Thanks Jack!]]></description>
			<content:encoded><![CDATA[<p>Jack Doyle at <a href="http://blog.greensock.com/" target="_blank">greensock</a> shared a really cool AS2 class he calls &#8216;TextMetrics&#8217; &#8211; sounds promising ha?The class calculates x/y coordinates of a string in a textfield, allowing highlighting it or calculating rows width.. nice.Check out his <a href="http://blog.greensock.com/textmetrics/" target="_blank">example</a>. Thanks Jack!</p>
]]></content:encoded>
			<wfw:commentRss>http://todepoint.com/blog/2007/08/09/flash-highlighting-a-string-in-a-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenOffice for Mac &#8211; great news!</title>
		<link>http://todepoint.com/blog/2007/05/09/openoffice-for-mac-great-news/</link>
		<comments>http://todepoint.com/blog/2007/05/09/openoffice-for-mac-great-news/#comments</comments>
		<pubDate>Wed, 09 May 2007 22:12:33 +0000</pubDate>
		<dc:creator>adi</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Contribution]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://todepoint.com/blog/?p=26</guid>
		<description><![CDATA[According to Philipp Lohmann, Sun Microsystems joins porting effort for OpenOffice.org for Mac. I&#8217;ve been using NeoOffice for a while now, and even though it got better (it should with the amount of patches they release), it is still kinda slow. But the current OpenOffice Mac port uses X11, and performs even worse, it been [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://blogs.sun.com/GullFOSS/entry/sun_microsystems_engineering_joins_porting" target="_blank">Philipp Lohmann</a>, Sun Microsystems joins porting effort for OpenOffice.org for Mac. I&#8217;ve been using <a href="http://www.neooffice.org" target="_blank">NeoOffice</a> for a while now, and even though it got better (it should with the amount of patches they release), it is still kinda slow. But the current OpenOffice Mac port uses X11, and performs even worse, it been years this way.<br />
Better late than never.</p>
]]></content:encoded>
			<wfw:commentRss>http://todepoint.com/blog/2007/05/09/openoffice-for-mac-great-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cyberduck your files &#8211; ftp for mac</title>
		<link>http://todepoint.com/blog/2007/01/13/cyberduck-your-files-ftp-for-mac/</link>
		<comments>http://todepoint.com/blog/2007/01/13/cyberduck-your-files-ftp-for-mac/#comments</comments>
		<pubDate>Sat, 13 Jan 2007 16:43:30 +0000</pubDate>
		<dc:creator>adi</dc:creator>
				<category><![CDATA[Contribution]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://todepoint.com/blog/?p=9</guid>
		<description><![CDATA[I was using all kind of FTP clients along the years, mainlly on PC&#8217;s, and my Mac was always neglected because there was no decent client to work with. when I found this great free application &#8211; Cyberduck &#8211; I was surprized how well it works and how intuitive the interface is. I contacted David [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/adi_liat/355913750/" title="Cyberduck"><img src="http://farm1.static.flickr.com/136/355913750_73afac7404_o.jpg" alt="cyberduck2.jpg" height="150" width="450" /></a><br />
I was using all kind of FTP clients along the years, mainlly on PC&#8217;s, and my Mac was always neglected because there was no decent client to work with. when I found this great free application &#8211; <a href="http://cyberduck.ch/">Cyberduck</a> &#8211; I was surprized how well it works and how intuitive the interface is.<br />
I contacted <a href="http://sudo.ch/~dkocher/">David</a> the auther and joined him to translate cyberduck to Hebrew.<br />
If you use FTP on a Mac &#8211; it&#8217;s a <strong>must-have</strong> application, Cyberduck 2.7.2 is to be released within the next two days,</p>
]]></content:encoded>
			<wfw:commentRss>http://todepoint.com/blog/2007/01/13/cyberduck-your-files-ftp-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

