-
1. Re: hide and show
resdesign Jul 17, 2014 7:22 AM (in response to smenegassi)Here is a discussion about it:
-
2. Re: hide and show
smenegassi Jul 17, 2014 8:04 AM (in response to resdesign)Thank you resdesign,
but it is very confusing. You mean I have an address problem ?
My symbol is on the stage and I only want to hide it.
I don't know why it works when the command hide() is on compositionReady and it doesn't work when it in creationComplete
I still don't see the difference in between them. I don't find anything about it on the Edge Animate javascript API
-
3. Re: hide and show
resdesign Jul 17, 2014 8:14 AM (in response to smenegassi)To quote Elaine Finnell,
compositionReady is an event that is run once at the beginning of the composition's load phase. creationComplete is run when a symbol has completed loading. Since the Stage is a symbol, it has a creationComplete event as well.
or by same Elaine:
All symbols have a creationComplete event, including the Stage (which is itself just a big symbol). documentReady only fires when the page is loaded, but the Animate events (creationComplete, compositionReady) will only fire after the Animate runtime is loaded. If I were to hazard a semi-educated guess, I'd say that documentReady likely will fire before the Animate runtime events, though you might hit a race condition where both of them will fire at about the same time.
-
4. Re: hide and show
smenegassi Jul 17, 2014 8:30 AM (in response to resdesign)Thank you.
I still don't see why I couldn't hide my symbol. but thanks for your explanation. I'll have to dig a little more on the subject.
-
-
6. Re: hide and show
Joe Bowden Jul 18, 2014 12:38 PM (in response to resdesign)Hi all,
Actually, the Animate runtime is loaded before the compositionReady event fires - that's the difference between HTML document.ready and Animate compositionReady events.
Regarding the events mentioned in this thread, here's the order in which they are loaded in the browser:
- symbol creationComplete
- Stage creationComplete (because the Stage symbol contains all child symbols)
- Stage compositionReady
For tasks like styling or hide/show elements in the composition, compositionReady is the event to use as it fires after all symbols have been created.
hth,
Joe
-
7. Re: hide and show
smenegassi Jul 21, 2014 8:02 AM (in response to Joe Bowden)I just saw it now. Thank you all.
... I'am beginning to see the light ! :




