CompositionLoader EC no - drain but there is another way

I see many people who have used edges compositionLoader communities who are struggling to unload a loaded composition.

I am also desperate for a solution to this. I have a parent composition which, when you click on some buttons, load in one of five different external compositions in an empty symbol ("container"). But I also need them to unload so another click of the button - leaving my symbol ('container') on the empty stage and ready to receive another composition.

I use Edge 2014.1.1 and EdgeCommons to animate dashboard v1.4.0 incidentally.

Today I sent Simon to the animate everything for Adobe Edge, Edge and Edge Code reflow. EdgeDocks.com

and asked if there was a way to do it.

He said:

Hello, Allison, we currently do not have a unloadComposition() function. But you can implement it yourself easily. For example you can simply empty the symbols of code DOM element, so the symbol itself would remain, but it would not show any content (e.g., external composition).

We are already working on a new version of the loader of composition in our commercial extension called Uberflow library (not publicly published yet).


I hope that it will focus on the new version, but in the meantime, he made a suggestion on how to unload a composition but always leaving the symbol of the empty container on the stage:


Try something like this:

var theContainerSymbol = sym.getSymbol ('container'); The symbol that serves as the target for the charger of the composition

theContainerSymbol.getSymbolElement () .empty ();


I have not tried this yet - will post back and let you know how me.


The code above did not work for my composition, but I managed after a bit of trial and error to get it sorted.

I found the ID for my container displaying in Chrome and in using the developer tools > inspect element to find it is ID in the DOM.

It's #Stage_container

Then click one of the buttons and EC loadComposition load in an external composition in my symbol 'container', then when the user clicks the other button I got:

SYM.$("#Stage_container"). Empty();

This leaves my symbol on the stage, so I can load a composition in even once when the user clicks the appropriate button.

Tags: Edge Animate

Similar Questions

Maybe you are looking for