AS Switch/case problem

Out of context: Reply #7

  • Started
  • Last post
  • 7 Responses
  • enjine0

    just got back in and saw this.
    yeah, making sure the data is loaded before you parse it helps ;)

    but also, just wanted to note that if you did do that myVar thing, as you did in the second version, in order to stick properties on it on the fly as you did, you'd have to first instantiate myVar as a new object--

    var myVar = new Object();

    otherwise, those property/value pairs won't get added anyway.

    glad you got it fixed though.
    word out.

View thread