Highlighted

Getting child by instance name behaviour has changed?

Community Beginner ,
Jan 29, 2019

Copy link to clipboard

Copied

I'm not sure if I'm doing something wrong or what, I only use actionscript for very basic stuff. However, how I've always referenced child movieclips is simply like this:

parentMovie.childMovie.secondChild

Since fresh installing and updating to the newest Animate, when I create a new document and try to use this method, it no longer works, I get the error:

A term is undefined and has no properties.

If I trace the parentMovie movieclip, I'll now get output, something like: [object parentMovie_2] BUT if I trace the same thing in my old file I get: [object MovieClip]. Tracing any children of parentMovie in the new file will return "undefined" or "null".

So, if I open a file I created before the update, this method still works as it used to, any new files I create this method does not work. I've looked through all of my properties for the two files and can't see any differences. Any ideas? I've spent hours trying to figure this out without any progress.

Thanks!

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

disable advanced layers (modify>document>untick 'use advanced layers') or learn how to use layer names in your references.

info about advanced layers: https://helpx.adobe.com/animate/using/timeline-layers.html#advanced-layers

Views

62

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

Getting child by instance name behaviour has changed?

Community Beginner ,
Jan 29, 2019

Copy link to clipboard

Copied

I'm not sure if I'm doing something wrong or what, I only use actionscript for very basic stuff. However, how I've always referenced child movieclips is simply like this:

parentMovie.childMovie.secondChild

Since fresh installing and updating to the newest Animate, when I create a new document and try to use this method, it no longer works, I get the error:

A term is undefined and has no properties.

If I trace the parentMovie movieclip, I'll now get output, something like: [object parentMovie_2] BUT if I trace the same thing in my old file I get: [object MovieClip]. Tracing any children of parentMovie in the new file will return "undefined" or "null".

So, if I open a file I created before the update, this method still works as it used to, any new files I create this method does not work. I've looked through all of my properties for the two files and can't see any differences. Any ideas? I've spent hours trying to figure this out without any progress.

Thanks!

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

disable advanced layers (modify>document>untick 'use advanced layers') or learn how to use layer names in your references.

info about advanced layers: https://helpx.adobe.com/animate/using/timeline-layers.html#advanced-layers

Views

63

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
Jan 29, 2019 0
Adobe Community Professional ,
Jan 29, 2019

Copy link to clipboard

Copied

disable advanced layers (modify>document>untick 'use advanced layers') or learn how to use layer names in your references.

info about advanced layers: https://helpx.adobe.com/animate/using/timeline-layers.html#advanced-layers

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...
Jan 29, 2019 1
Community Beginner ,
Jan 29, 2019

Copy link to clipboard

Copied

Ah ha! Thank you SO much, I'll look into advanced layers

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...
Jan 29, 2019 0
kglad LATEST
Adobe Community Professional ,
Jan 29, 2019

Copy link to clipboard

Copied

you're welcome.

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...
Jan 29, 2019 0