Image

Imageasmor wrote in Imagejavascript

These are the kinds of problems that haunt my dreams...

I'm updating a program of mine, a dice roller, to add in some more functionality. I'm having a problem, though. Firefox keeps saying that theRoll (a string I use to store the current roll that I'm working on decoding) has no properties on the starred line:

theRoller=new String()
my function() {
  theRoll=something
  alert(theRoll.length) (correctly alerts that length is 3)
* while(theRoll.length>0) {
  }
}


Any ideas? The annoying thing is, I know I've encountered similar problems in the past but I don't remember what I've done to remedy them. I can provide the full source code if neccessary, but it ain't pretty.