Troubleshooting


I've used the / * comment * / notation, and I'm getting a weird result. Why is some of the text commented out, and some isn't?

/* style comments cannot be nested. If you've already used them in your code, you cannot enclose them in another set. As soon as a closing */ is encountered, the comment is considered closed.

My conditional statement doesn't seem to be working. Why doesn't it catch when my variable equals the test?

Check to make sure you've used the correct operator for the conditional statement. An equivalence conditional requires two equal signs (==), whereas a value assignment requires one equal sign (=). Also check for typos in the variable name and the condition.

I've written a function that is called when the user clicks on a button on the stage. Why doesn't anything happen when I click on it while testing?

There are two main things to check for. First, make sure that the instance has an instance name in the Property inspector. Second, make sure that you've used the correct path and that it's spelled the same way as it is in the Property inspector when you attach the function to the button. To make sure that the function is actually being called, put a trace command at the beginning. If the test message is traced when you click on the button, you know that the problem is internal to the function and not with the calling of the function.



Special Edition Using Macromedia Studio 8
Special Edition Using Macromedia Studio 8
ISBN: 0789733854
EAN: 2147483647
Year: 2003
Pages: 337

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net