/ Published in: ActionScript 3
vLarger - Larger array
vSmaller - Smaller array
vSmaller - Smaller array
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function fDifference(vLarger : Array, vSmaller : Array) : Array { var i : int; var vList : Array = new Array(); for (i = 0; i < vLarger.length; i++) if (vSmaller.indexOf(vLarger[i]) == -1) vList.push(vLarger[i]) return vList; }