<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Rcube9's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Tue, 30 Sep 2008 10:16:05 GMT</pubDate>
    <description>DZone Snippets: Rcube9's Code Snippets</description>
    <item>
      <title>_Currentframe</title>
      <link>http://snippets.dzone.com/posts/show/5340</link>
      <description>var mCircle:MovieClip = mCircle;&lt;br /&gt;&lt;br /&gt;trace(mCircle._currentframe); // Displays: 1&lt;br /&gt;mCircle._currentframe = 6; // Will not take&lt;br /&gt;trace(mCircle._currentframe); // Displays: 1</description>
      <pubDate>Wed, 09 Apr 2008 00:56:23 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5340</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>instanceof</title>
      <link>http://snippets.dzone.com/posts/show/5339</link>
      <description>var oFirstObject:Object = new Object();&lt;br /&gt;var sStr:String = new String("Hai");&lt;br /&gt;trace(oFirstObject instanceof Object);&lt;br /&gt;trace(sStr instanceof String);</description>
      <pubDate>Wed, 09 Apr 2008 00:41:41 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5339</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Dynamicaly placed buttons - duplicate movie clip</title>
      <link>http://snippets.dzone.com/posts/show/5319</link>
      <description>var myMC:MovieClip;&lt;br /&gt;var i = 1;&lt;br /&gt;var pad = 5;&lt;br /&gt;while (i&lt;6) {&lt;br /&gt;	trace(" i : "+i);&lt;br /&gt;	myMC.duplicateMovieClip("myMC"+i, i);&lt;br /&gt;	myMC.removeMovieClip();&lt;br /&gt;	this["myMC"+i]._x = this["myMC"+(i-1)]._x+(this["myMC"+(i-1)]._width)+pad;&lt;br /&gt;	this["myMC"+i].onRollOver = function() {&lt;br /&gt;		trace(this);&lt;br /&gt;	};&lt;br /&gt;	i++;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 02 Apr 2008 18:30:00 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5319</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Set Time out function</title>
      <link>http://snippets.dzone.com/posts/show/5318</link>
      <description>function testMe() {&lt;br /&gt; trace("callback: "+getTimer()+" ms.");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;var intervalID:Number = setTimeout(testMe, 1000);&lt;br /&gt;&lt;br /&gt;// clearTimeout(intervalID) // for clear the timeout&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Wed, 02 Apr 2008 18:25:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5318</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Check Internet Connected or not</title>
      <link>http://snippets.dzone.com/posts/show/5317</link>
      <description>var connected:Boolean = false;&lt;br /&gt;&lt;br /&gt;function checkConnection():Void {&lt;br /&gt;	var myLoadVars:LoadVars = new LoadVars();&lt;br /&gt;	&lt;br /&gt;	myLoadVars.onHTTPStatus = function(httpStatus:Number) {&lt;br /&gt;	&lt;br /&gt;	if (httpStatus != 0) {&lt;br /&gt;		connected = true;&lt;br /&gt;		trace(connected);&lt;br /&gt;	} else {&lt;br /&gt;		connected = false;&lt;br /&gt;		trace(connected);&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	delete this;&lt;br /&gt;	};&lt;br /&gt;&lt;br /&gt;	myLoadVars.load("http://www.apple.com");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;checkConnection();</description>
      <pubDate>Wed, 02 Apr 2008 18:23:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5317</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Random Number</title>
      <link>http://snippets.dzone.com/posts/show/5316</link>
      <description>function randRange(min:Number, max:Number):Number {&lt;br /&gt;    var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;&lt;br /&gt;    return randomNum;&lt;br /&gt;}</description>
      <pubDate>Wed, 02 Apr 2008 18:13:06 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5316</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>collapseWhiteSpace</title>
      <link>http://snippets.dzone.com/posts/show/5315</link>
      <description>function collapseWhiteSpace(theString:String):String &lt;br /&gt;{&lt;br /&gt;	theString =  theString.split("\r").join("");&lt;br /&gt;	theString =  theString.split("\t").join("");&lt;br /&gt;	while ( theString.indexOf("  " ) != -1 ) {&lt;br /&gt;		theString= theString.split("  ").join(" ");&lt;br /&gt;	}&lt;br /&gt;	if (theString.substr(0,1) == " ") {&lt;br /&gt;		theString = theString.substr( 1 );&lt;br /&gt;	}&lt;br /&gt;	if (theString.substr( theString.length-1, 1 ) == " ") {&lt;br /&gt;		theString = theString.substr( 0, theString.length - 1 );&lt;br /&gt;	}&lt;br /&gt;	return(theString);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;trace(collapseWhiteSpace("hai rajesh how are you"));</description>
      <pubDate>Wed, 02 Apr 2008 18:05:47 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5315</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Concat two array</title>
      <link>http://snippets.dzone.com/posts/show/5312</link>
      <description>var sNames:Array = ["Rajesh","Buvanesh","Latha","Ramesh"];&lt;br /&gt;var sPhones:Array = ["9940350708","00000000","044-42151184","9841026070"];&lt;br /&gt;&lt;br /&gt;for (var i=0;i&lt;sNames.length;i++){&lt;br /&gt;	trace(sNames[i]);&lt;br /&gt;	trace(sPhones[i]);&lt;br /&gt;}</description>
      <pubDate>Wed, 02 Apr 2008 03:03:45 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5312</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>Array.push</title>
      <link>http://snippets.dzone.com/posts/show/5311</link>
      <description>var sEmployees:Array = [];&lt;br /&gt;sEmployees.push(["Ramesh","9841026070"]);&lt;br /&gt;sEmployees.push(["Rajesh","9940350708"]);&lt;br /&gt;sEmployees.push(["Latha","044-42151184"]);&lt;br /&gt;sEmployees.push(["Buvanesh","000-0000000"]);&lt;br /&gt;&lt;br /&gt;for (var i:Number=0; i&lt;sEmployees.length; i++){&lt;br /&gt;	trace("Name:" + sEmployees[i][0]);&lt;br /&gt;	trace("Phone:" + sEmployees[i][1]);&lt;br /&gt;}</description>
      <pubDate>Wed, 02 Apr 2008 03:03:06 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5311</guid>
      <author>rcube9 (rajesh)</author>
    </item>
    <item>
      <title>String to Array</title>
      <link>http://snippets.dzone.com/posts/show/5310</link>
      <description>var sEmployees:String =  "Rajesh,Buvanesh,Latha,Ramesh";&lt;br /&gt;var aEmployees:Array = sEmployees.split(",");&lt;br /&gt;trace(aEmployees.toString());</description>
      <pubDate>Wed, 02 Apr 2008 03:00:44 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5310</guid>
      <author>rcube9 (rajesh)</author>
    </item>
  </channel>
</rss>
