View Simulate Download

I think this is useful if we want to test project with preloader. I may want to see how preloader work.

In Flash Authoring Tool
- Press Ctrl + Enter or Click on Menu Control -> Test Movie.
- Once in Test Movie mode, you can watch a simulated download by enabling the Bandwidth Profiler , by Click on Test Movie Window: View -> Bandwidth Profiler
- Then click on View -> Simulate Download
- You can change the download setting by : View -> Download Setting , then choose the speed of internet.

In FireFox
Check out http://www.dallaway.com/sloppy/

p1

AS3 Multiple Field Array - Sort On

var records:Array = new Array();
records.push({name:"john", city:"omaha", zip:68144});
records.push({name:"john", city:"kansas city", zip:72345});
records.push({name:"bob", city:"omaha", zip:94010});

for(var i:uint = 0; i < records.length; i++) {
trace(records[i].name + ", " + records[i].city);
}
// Results:
// john, omaha
// john, kansas city
// bob, omaha

trace("records.sortOn('name', 'city');");
records.sortOn(["name", "city"]);
for(var i:uint = 0; i < records.length; i++) {
trace(records[i].name + ", " + records[i].city);
}
// Results:
// bob, omaha
// john, kansas city
// john, omaha

trace("records.sortOn('city', 'name');");
records.sortOn(["city", "name"]);
for(var i:uint = 0; i < records.length; i++) {
trace(records[i].name + ", " + records[i].city);
}
// Results:
// john, kansas city
// bob, omaha

// john, omaha


Source: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html#sortOn()

p1