Highlighted

Cant change text field inside movie clip

New Here ,
Oct 24, 2019

Copy link to clipboard

Copied

I have a movie clip symbol that I converted from a dynamic text field with the instance name "text2". When I try to add it as a child and then try to access the text field, the compiler throws:

Error #1009: Cannot access a property or method of a null object reference.

var test = new Qwe(); //Qwe is the movie clip converted from dynamic text field
addChild(test);

test.text2.text ="535";  /instance name of the text field was text2.

 

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

You don't have Advanced Layers enabled, do you?

Views

45

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Cant change text field inside movie clip

New Here ,
Oct 24, 2019

Copy link to clipboard

Copied

I have a movie clip symbol that I converted from a dynamic text field with the instance name "text2". When I try to add it as a child and then try to access the text field, the compiler throws:

Error #1009: Cannot access a property or method of a null object reference.

var test = new Qwe(); //Qwe is the movie clip converted from dynamic text field
addChild(test);

test.text2.text ="535";  /instance name of the text field was text2.

 

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

You don't have Advanced Layers enabled, do you?

Views

46

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 24, 2019 0
Adobe Community Professional ,
Oct 24, 2019

Copy link to clipboard

Copied

You don't have Advanced Layers enabled, do you?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 24, 2019 0
New Here ,
Oct 24, 2019

Copy link to clipboard

Copied

That's first time I ever even heard of it.  How do I check it?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 24, 2019 0
New Here ,
Oct 24, 2019

Copy link to clipboard

Copied

Ok, the culprit was it. I lost a whole day because of this.

Thank you for your help.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 24, 2019 0