Try to add this in compositionReady instead.
Thanks, redesign, for the suggestion, but that did not work for me. Also, I am using this code with the Adaptive Layouts feature of EdgeCommons (though I did the simple test mentioned without it), so the code will actually be on the creationComplete of the loaded symbol. There is not a compositionReady option for a symbol, is there?
I was able to get it to work if I added the code to an action trigger to 0:00 on the timeline. However, I am a little bothered by the fact that it will not work on creationComplete. I really don't want to use the timeline for this particular project. Thanks!
1 person found this helpful
Fred Tacon wrote:
1. Create a div on the Stage, for example a circle named theCirc.
2. And then I set its display to "off". Effectively hiding it.
Did you notice what happened after step 2? A display Off keyframe gets set on the timeline.
The reason why using creationComplete or compositionReady to show the element won't work as expected is because both of those events actually occur before the timeline begins to play. And so creationComplete may show the element, but then the timeline plays and hides the element. Make sense?
So instead, hide your element in an event that occurs before your show action displays it again. Not sure how that would work for your composition, but as an example, creationComplete would run before compositionReady or the timeline play event.