Skip to main content
Participant
December 6, 2016
Answered

'sym' undefined

  • December 6, 2016
  • 1 reply
  • 898 views

Hi !

I'm trying to wrap my head around doing a couple of things with the Animate JS API and came across some posts detailing the use of the sym object to achieve certain things. However, when I try to do, say, sym.getSymbol() for a symbol name, inside an Action event, I'm told sym is undefined. Have things changed between when the docs / posts I've been reading were made and now, or am I just trying to use it in the wrong context ? Any pointers appreciated.

This topic has been closed for replies.
Correct answer ClayUUID

**facepalm**

Animate CC is a completely different product from Edge Animate. The only thing they have in common is the word "Animate" in their names. Yes, this naming was an inexplicably terrible decision on Adobe's part.

You cannot inject HTML into Animate Canvas objects because they're not HTML objects. They're CreateJS objects, which get painted to an HTML5 canvas element at runtime by the CreateJS library. I linked to the docs for this library in my first reply.

1 reply

Legend
December 6, 2016

I've never even heard of any "sym" object. Maybe you should explain what you're trying to do instead.

BTW, there is no "Animate JS" API. It's the CreateJS API.

CreateJS | A suite of JavaScript libraries and tools designed for working with HTML5

StephixAuthor
Participant
December 6, 2016

I guess it's just a disconnect between the resources I find online for earlier versions and what's available now.

As an example, what I wanted to do and was easily accomplished with the sym object was something like injecting some HTML into, seemingly, any "object" created in Animate, and was done something along the lines of sym.$("symbol name").html("html here") type of thing. More examples can be found here Adobe Edge Animate CC JavaScript API, for instance. Even the URL has "current" in it, though the "2014" in the title should give it away.

Either way, if you could point me in the right direction to achieve something like what I was wanting to do, I'd be grateful .

ClayUUIDCorrect answer
Legend
December 6, 2016

**facepalm**

Animate CC is a completely different product from Edge Animate. The only thing they have in common is the word "Animate" in their names. Yes, this naming was an inexplicably terrible decision on Adobe's part.

You cannot inject HTML into Animate Canvas objects because they're not HTML objects. They're CreateJS objects, which get painted to an HTML5 canvas element at runtime by the CreateJS library. I linked to the docs for this library in my first reply.