Using edge animate, When I implement code for compositionReady action, it adds Symbol.bindElementAction to _edgeActions.js file.
However, it seems that the call to bindElementAction is added outside of - function(symbolName){})("stage"), causing error "symbolName" is not defined.
(Please refer to expected/actual code fragements pasted at the end of this question.)
* = Note that when I create a project locally from scratch the code is added at correct location.
When I work on the project sent by a colleague, and I try to add the compositionReady event, I run into this issue.
What might be the issue here?
Is there any setting that I can change so that the code placement is accurate?
Any help/pointers are appreciated.
Please let me know if I can provide more info, I am a very new to Edge.
EXPECTED result:
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName){Symbol.bindElementAction(compId,symbolName,"docu ment","compositionReady",function(sym,e){alert('test');});
//Edge binding end
})("stage");
//Edge symbol end:'stage'
})(jQuery,AdobeEdge,"EDGE-3148797428");
ACTUAL result:
(function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
//Edge symbol: 'stage'
Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
// insert code to be run when the composition is fully loaded here
alert('I am here');
});
//Edge binding end
------>>(function(symbolName){})("stage");<<------- code is expected to be added inside this function.
//Edge symbol end:'stage'
})(jQuery, AdobeEdge, "EDGE-10506555");