
| New Topic Reply Subscription Options |
|
| Forums: ActionScript: public static const | |||
|
|||
| eeg
Joined: 03/06/08 Posts: 4 |
public static const Posted Tuesday, February 10, 2009 at 7:37 PM Here's one for you...... inside a class i defined a couple of states using public static const. like: public static const IDLE:String = "IDLE"; when using these in an if or switch statement inside the same class everything works fine, BUT, when i try to access these (in if or switch) from an other class an error occures. 1119: Access of possibly undefined property IDLE through a reference with static type Class.
|
||
|
|||
| AvB
Joined: 06/10/08 Location: Veenendaal Posts: 11 |
RE: public static const Posted Tuesday, February 10, 2009 at 8:01 PM It all works fine here: Test function: import test.MyCLass; MyClass: public class MyCLass My only guess would be that the visibility of either your variables or your class isn't public Adobe Certified Instructor
|
||
|
|||
| New Topic Reply Subscription Options |
|
| Subscription Options |
| Subscription options are available after you log in. |
There are 3 active user sessions right now.