An important principle to grasp is that symbols (and the stage is one of them) lies in parallel, despite the fact of instances of different symbols being nested one in another (and all in fine nested in the stage).
The consequence is that from inside your nested symbol you have no direct visibility of the function defined inside the stage symbol !
Inside the Stage symbol, in the document.compositionReady event handler :
sym.yourGlobalFunction = function( firstParameter)
// your stuff
Inside another symbol, in one of its events handlers :
Thx for the quick reply!
I never saw the compositionReady part of the stage, which made what I want to do alot easier.
So instead of putting functions inside symbols, it is better to put them in the compositionReady event handler? (I can imagine this would be best practice most places, but I'm just so used to dividing it all up in parts in Flash)
So instead of putting functions inside symbols, it is better to put them in the compositionReady event handler?
When they are of general interest, and susceptible to be called from different locations : yes.
I'm just so used to dividing it all up in parts in Flash
I would leave inside a symbol a function that is not used outside, to get things more properly encapsulated.