[FMX] Check this, it's hilarious

so some of you might have noticed my earlier thread:
http://www.kirupaforum.com/forums/showthread.php?t=69034

I finally solved the problem which had stymied me for a week. The problem was the NAME of my array. the array was name theSounds. changing the name to puppies fixed it. The real irony here is that I had already changed the name from sounds to theSounds, because I had had a similar problem a while ago.

Somebody should make a list of all the names you aren’t allowed to use. And when I say somebody, I mean Macromedia. **** their eyes.

Strange - I would have guessed that, since, theSounds was not colored in a blue/dark-blue color in the AS code, it was safe to use. Glad you got it solved though :slight_smile:

Yea I hear ya K-man, I bet it was something else as well. One thing that comes to mind is the stopAllSounds(). Notice the word Sounds is used just like you were doing with theSounds.

My 2 cents :slight_smile:

actually I just realized that I was wrong about the fix… the actual problem was the line for (sound in this.theSounds). the problem was the creation of a variable named sound which for obvious reasons (well reason obvious to an experienced Actionscript programmer, tho perhaps not to somebody who uses a real language) broke the Sound object. The reason I thought it had to do with the theSounds array was that until theSounds was populated, the object sound didn’t get created. when I changed theSounds to puppies, I also changed sound to puppy, which fixed the problem.

well I’ll be seeing you guys next time I have a problem I can’t fix, hope I helped some ppl out in the meantime!