Revision: 50817
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 4, 2011 17:59 by mediapoint
Initial Code
function compareArrays( a1:Array, a2:Array ) :Array { var a3:Array = new Array(); var len1:int = a1.length; var notFound:Boolean = false; for( var i:int = 0; i<len1; i++ ) { var len2:int = a2.length; for( var j:int = 0; j<len2; j++ ) { if( String(a1[i]) == String(a2[j]) ) { notFound = false; break; } else { notFound = true; } } if( notFound ) { a3.push( a1[i] ) notFound = false; } } return a3; }
Initial URL
www.mediapoint.gr
Initial Description
Initial Title
Compare Arrays and return the different values
Initial Tags
array
Initial Language
ActionScript 3