This content has been marked as final. Show 5 replies
have you tried loader.content.myfunction();???
These attemps always result on compile errors: flash keeps saying that "myfunction" does not exist...
I managed now to avoid this problem by using this:
but this seems so "ugly" to me...
the code i gave is the "correct" way to do it, but i don't think it's necessarily less ugly.
I as well was only able to access an external function using ---- loader.content["externalFunction"]();
If --- Sprite(loader.content).externalFunction(); this is the correct way I feel it needs more explanation.