Saturday, April 3, 2010
Testing and Debugging
The last time I used trace to find a problem (in my main project anyway) was during the hitTest on the notes. Patrick helped me write an efficient and working code, but I needed to troubleshoot it later. Mostly because I didn't fully understand it when he wrote it in class, and I was working on my project outside of class. Anyway, I was having trouble calculating a hitTest between two different movieclips from within several instances of a single movieclip. I believe I eventually used global variables to get things working, but I used a trace command in my hitTest so that I could easily tell when I had things working properly. Then I just tweaked until my trace began running.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment