I’m using Adobe Animate HTML5 Canvas. EaselJS would also apply. How can I check if a symbol/MC is a child of another symbol/MC? So a symbol/MC is added as a child of lensParentLeft in the following. I then want to check if it is a child of that parent in a later function: The later function being the following, probably
Tag: createjs
Playing soundfile when hovering over specific object
Can anyone understand what I’m doing wrong? This code returns the error that “songs is not a function”. Regards, Shape of Mustard Answer The problem was how you access to your object https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object Object properties must be accessed in the following ways songs.song1, or songs[‘song1’], the latter is useful in cases where the first character of the property is a