Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Inspectable parameters in Flash CC do not acquire value

New Here ,
Dec 16, 2014 Dec 16, 2014

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?

TOPICS
ActionScript
292
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation