When moving to Flash CC, the following problem occurred in my flash project.
Consider this class definition:
public class Test extends MovieClip {
[Inspectable(type="String", defaultValue="val")]
public var param :String;
public function Test() {
trace(param);
}
}
I have a symbol "Symbol 1" which (via the Library panels Properties) is linked to the class Test and (via the Component Definition) is also set to the class Test, and this dialog box displays the parameter "param" with value "val". I have an instance of Symbol 1 on the Scene. The parameter "param" appears in the properties of this instance, with the value "val", as expected.
The only problem is that during runtime, the value of the parameter "param" is equal to null, as confirmed during the execution of the classes constructor, which outputs "null".
Does anyone know why this is happening?