Color Changes – add or remove tint, random color
Posted by thornyeternity in ActionScript 3 Snippets on 30. Mar, 2009 | 0 Comments
Add or remove a color tint, plus random color code.
Array – randomly re-arrange array
Posted by thornyeternity in ActionScript 3 Snippets on 27. Mar, 2009 | 0 Comments
Someone simplified code, found somewhere; sorry whoever: var arrayA:Array = new Array(“A”,”B”,”C”,”D”,”E”); //var randomPage:Number = Math.round(Math.random()*(arrayA.length-1)); //trace(arrayA[randomPage]); for(var i:Number = 0; i < arrayA.length; i++){ arrayA.push(arrayA.splice(Math.floor(Math.random()*arrayA.length), 1)); } trace(arrayA);


