Archive for August, 2007

ActionScript3: “for in” loop not in order…why!?

Thursday, August 23rd, 2007

var meat:Object = new Object();

var varx:String;

meat[”image1″] = 1;
meat[”image2″] = 2;
meat[”image3″] = 3;
meat[”image4″] = 4;
meat[”image5″] = 5;
meat[”image6″] = 6;
meat[”image7″] = 7;
meat[”image8″] = 8;

trace(typeof meat);

for(varx in meat)
{
trace(meat[varx]);
}

stop();

——————————

This outputs:

2
6
8
5
1
7
4
3

——————————

Why!!!

Kompoz.com featured in the LA Times

Sunday, August 19th, 2007

kompoz logoKompoz.com, a online music collaboration site that I help produce, is featured in the LA Times today! It is in both print and online.

How the hay hoo do you ’set’ a var in JavaScript

Friday, August 17th, 2007

I want to ’set’ a var using a dynamic name in JavaScript. Some other programing languages allow you to do this with commands like ‘Set’. You pass it to arguments: 1) the variable name as a string and 2) the value you want to set that variable:

set(’some_var_as_string’, 10);

 This will set the variable some_var_as_string to 10.

But JavaScript has nothing like this and I can find any documentation about it.

My work-around: use Window[’var_name’].

window[’var_name’] = 10

This will set the globale variable var_name to 10.

My b-day is Sep 6 and I want a hover craft!

Thursday, August 16th, 2007


More…

I’m going to Fort Fun and this is what I want to do

Tuesday, August 14th, 2007

This is what I want to do in Fort Fun

  1. Have 3 Margaritas in a row at the Rio
  2. Have a Punjabi Pale Ale and play a game of pool at Cooper Smiths
  3. See a band at the Star
  4. Spend $150 at the Hunt Club
  5. Get a REGULAR WHITE TORTILLA, MONTEREY JACK, BLACK BEANS, BEEF CARNE ASADA W/ POTATO, SOUR CREAM AND GUACAMOLE AT Big City Burrito
  6. Sara
  7. Camp and Hike at the ol’ camp ground: “stream and big’um rock” camp ground
  8. Bike on the Pooter Bike trail
  9. Get my hair cut at Sally’s new salon

Hello All! This is my new Website: runbadscott.com

Monday, August 13th, 2007

Welcome to my new website: runbadscott.com. I have not had a personal website in a long time. My old web site/domain, sawilliams.com, had been down for a few years. I bought this domain because its the same as my phone number: (RUN) BAD-SCOTT