<?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>Flex-Flash-Air-ActionScript-JS &#187; ArrayUtils</title>
	<atom:link href="http://blog.totusinfo.com/tag/arrayutils/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.totusinfo.com</link>
	<description>totusinfo team</description>
	<lastBuildDate>Wed, 24 Feb 2010 09:38:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CS4 array map with action script</title>
		<link>http://blog.totusinfo.com/cs4-array-map-with-action-script/</link>
		<comments>http://blog.totusinfo.com/cs4-array-map-with-action-script/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 17:37:23 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[ArrayUtils]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=839</guid>
		<description><![CDATA[This code show how to use map with Array.

var originalArray:Array = new Array(1,2,3,4,5);

function getDouble(elem:*, i:int, a:Array):Number {
	return elem * 2;
}

var multipliedArray:Array = originalArray.map(getDouble);
trace('output: ', originalArray);
// output: 1,2,3,4,5
trace('output: ', multipliedArray);
// output: 1,4,6,8,10

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/cs4-array-map-with-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CS4 array filter with action script</title>
		<link>http://blog.totusinfo.com/cs4-array-filter-with-action-script/</link>
		<comments>http://blog.totusinfo.com/cs4-array-filter-with-action-script/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 17:24:54 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[ArrayUtils]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[forEach]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=835</guid>
		<description><![CDATA[This code show how to use Array, filter also works with cs3


var examResults:Array = [{lan:&#34;English&#34;, marks:50}, {lan:&#34;Science&#34;, marks:60}, {lan:&#34;Maths&#34;, marks:50}];

function filter_passedSubjects(elem:*, i:int, a:Array):Boolean {
	return (elem.marks) &#62;= 55;
}

function filter_failedSubjects(elem:*, i:int, a:Array):Boolean {
	return (elem.marks) &#60; 55;
}

function print_array(elem:*, i:int, a:Array) {
	trace(elem.lan, ' ', elem.marks);
}

var passedSubjects:Array = examResults.filter(filter_passedSubjects);
trace('passed subjects');
passedSubjects.forEach(print_array);

var failedSubjects:Array = examResults.filter(filter_failedSubjects);
trace('failed subjects');
failedSubjects.forEach(print_array);

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/cs4-array-filter-with-action-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Angle to Radians</title>
		<link>http://blog.totusinfo.com/convert-angle-to-radians/</link>
		<comments>http://blog.totusinfo.com/convert-angle-to-radians/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 20:05:38 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[utils]]></category>
		<category><![CDATA[ArrayUtils]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=627</guid>
		<description><![CDATA[use this class to Convert Angle to Radians

package druva{
	import flash.display.Sprite;

	public class NumberUtils extends Sprite {
		public function NumberUtils() {
		}

		//@ angle to radians
		public static function toRadians(angle) {
			return (angle/180*3.141593E+000);
		}

	}
}

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/convert-angle-to-radians/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove matched items from array</title>
		<link>http://blog.totusinfo.com/remove-matched-items-from-array/</link>
		<comments>http://blog.totusinfo.com/remove-matched-items-from-array/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 19:52:09 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ArrayUtils]]></category>
		<category><![CDATA[splice]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=620</guid>
		<description><![CDATA[Remove matched items from array
This is the sample script to show how to use the class

import druva.ArrayUtils;

trace(ArrayUtils.removeMatch(new Array(2,6,8,9,2,3,5,9), 2));

Actual Class

package druva{
	import flash.display.Sprite;

	public class ArrayUtils extends Sprite {
		public function ArrayUtils() {
		}

		//@ removes matched items from the array
		public static function removeMatch(array,symbol) {
			for (var i=0; i&#60;array.length; ++i) {
				if (array[i]==symbol) {
					array.splice(i,1);
					removeMatch(array,symbol);
					break;
				}
			}
			return array;
		}

	}
}

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/remove-matched-items-from-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove an array element from array in php</title>
		<link>http://blog.totusinfo.com/remove-an-array-element-from-array-in-php/</link>
		<comments>http://blog.totusinfo.com/remove-an-array-element-from-array-in-php/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 19:15:31 +0000</pubDate>
		<dc:creator>druva</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ArrayUtils]]></category>
		<category><![CDATA[array_search]]></category>
		<category><![CDATA[unset]]></category>

		<guid isPermaLink="false">http://blog.totusinfo.com/?p=672</guid>
		<description><![CDATA[While trying to delete any element from i am not able to find any function 

      unset($arr[array_search($element, $arr)]);

]]></description>
		<wfw:commentRss>http://blog.totusinfo.com/remove-an-array-element-from-array-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

