Troubleshooting


Why is my date off by a month?

The Date object parameters start counting at zero, so January is represented by 0 and December by 11. Check that the number you used to represent the month is set correctly.

I'm trying to set a classpath, but the Settings button is faded and it doesn't respond.

Make sure you have the ActionScript version set as 1.0 or as 2.0. To set a classpath, you must be using ActionScript 2.0.

I get an error when I test my class, which defines a static property in the class constructor.

The class constructor is for setting up the properties that an instance of your class will have. Because a static property is called without an instance of its class, it cannot be defined in the class constructor. Instead, declare a static property where you declare all the variables in your class, but use the static keyword. You can also assign it a value in the same statement.

I called a method from the superclass of my subclass, but it's not executing.

Check that you placed an import statement at the beginning of your subclass and that you included the extends keyword in your class declaration. Additionally, make sure that you use the super keyword when calling the method from your subclass.



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