MovieClip instance names not available from .name property in HTML5 canvas
Hi all,
Our company has a privately designed Javascript plugin for Animate's HTML5 canvas export which allows it to communicate with Adobe Captivate. Many of the features were heavily dependant on being able to read a symbol's instance name. In previous versions this was no issue, a symbol's instance name was recorded in the .name property. However, this no longer seems to be the case.
As you can see in the example file attached below, if you...
Create a document
Draw a square
Convert the square to a MovieClip
Give the MovieClip instance on stage an instance name (in this example: 'foobar')
Go into the MovieClip
Add the framescript: alert(this.name);
Publish
An alert will appear saying 'null'
In fact, looking through the code, the only place the instance name appears to be used is as a property on the object's parent. That's fine if you're trying to access a child from the parent, but if the child wants to know what its own name is it becomes incredibly inefficient to work that out.
I do not believe there is a work around for this. I'd like to be proven wrong. But otherwise, someone please, please, please fix this.
Parent: So, Timmy. I'd like you to-
Timmy: Who's Timmy?