<?xml version="1.0" encoding="UTF-8"?>
<codes type="array">
  <code>
    <code>String.prototype.explode = function(separator:String) {
	var string = this;
	var list = new Array();

	if (separator == null) return false;
	if (string == null) return false;

	var currentStringPosition = 0;
	while (currentStringPosition&lt;string.length) {
		var nextIndex = string.indexOf(separator, currentStringPosition);
		if (nextIndex == -1) break;
		var word = string.slice(currentStringPosition, nextIndex);
		list.push(word);
		currentStringPosition = nextIndex+1;
	}
	if (list.length&lt;1) {
		list.push(string);
	} else {
		list.push(string.slice(currentStringPosition, string.length));
	}
	return list;
}

var mystring = &quot;test1 - test2&quot;;
exploded = mystring.explode(&quot; - &quot;);
trace (exploded[0]); // returns 'test1'</code>
    <created-at type="datetime">2008-12-09T17:45:13Z</created-at>
    <description></description>
    <id type="integer">128</id>
    <language-id type="integer">1</language-id>
    <privated type="boolean">false</privated>
    <title>explode function like php</title>
    <updated-at type="datetime">2008-12-09T17:45:13Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;images/banner.swf&quot; width=&quot;288&quot; height=&quot;128&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;images/banner.swf&quot; /&gt;
&lt;img src=&quot;banner.gif&quot; width=&quot;288&quot; height=&quot;128&quot; alt=&quot;banner&quot; /&gt;
&lt;/object&gt;</code>
    <created-at type="datetime">2008-07-21T19:52:55Z</created-at>
    <description></description>
    <id type="integer">41</id>
    <language-id type="integer">16</language-id>
    <privated type="boolean">false</privated>
    <title>valid Flash example for XHTML 1.0 Strict (XHTML 1.1)</title>
    <updated-at type="datetime">2008-07-21T19:52:55Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>// 3 solutions

for (var i in holder) {
    if(typeof(holder[i])==&quot;movieclip&quot; &amp;&amp; holder[i]._name.substr(0,4)==&quot;foo_&quot;) {
           holder[i].removeMovieClip();
    }
}

for (var i=0;i&lt;noOfclips;i++) {
    var clip=_root[&quot;mc&quot;+i];
    clip.removeMovieClip();
}

for (var n in this) { 
    removeMovieClip(this[n]); 
}</code>
    <created-at type="datetime">2008-07-04T00:37:30Z</created-at>
    <description>a simple sample</description>
    <id type="integer">14</id>
    <language-id type="integer">1</language-id>
    <privated type="boolean">false</privated>
    <title>remove all movieclips </title>
    <updated-at type="datetime">2008-07-04T00:37:30Z</updated-at>
    <user-id type="integer">1</user-id>
  </code>
</codes>
