by admin | Jun 10, 2006 | Uncategorized
Here is the sample code to shuffle the contents of an array [cc lang=”actionscript3″]// Here is a simple function for randomizing the array function randomsort(a, b) { return Math.random()>.5 ? -1 : 1; } //usage example var arr = [1, 2, 3, 4, 5];...
by admin | Jun 10, 2006 | Uncategorized
Generating Unique random number for Flash Lite 1.1 is tricky because of the Flash 4 style syntax. I’ve made a sample application which shows how this can be achieved. Here is the SWF showcasing this You can download the FLA from here
by admin | Jun 7, 2006 | Uncategorized
When we are including an AS1 file in an Fla which has to be published as AS2, we need to be careful in naming the include file. There shouldn’t be any object initialized in _global which has the same name as the include file. Say for example, I had a include...
by admin | Jun 3, 2006 | Uncategorized
When testing my application in IDE, I wanted to use some hard coded test data instead of Every time loading the dynamic data. System.capabilities.isDebugger is the boolean property which is true when we are testing in IDE or special Debug Player. Here is the sample...