Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

How do I place javascript code after layer initialization

$
0
0

Hello all,

 

I am giving the HTML5 Canvas thing a try in Flash CC, but all instance references to items on the stage are coming up undefined when I try to reference them in JavaScript code sitting on the layers panel.

 

When I open the generated output, I notice that all of my code is placed before the layers are even initialized. I tried placing the code layers at the bottom, but this had no affect on the output.  Is there an easy way to have code in the layers panel run after initialization, or do I just need to add an extra frame to all of my projects so I can get the code in the correct place?

 

 

Thank you for your time!


Viewing all articles
Browse latest Browse all 13519

Trending Articles