I made a custom component that is essentially a start/stop button. The only thing that really changes is the text when it is clicked on.
What I'm wondering is if I put the commands:
on(press){
_root.particle.startMoving();
}
on an instance of this component, will it override the on (press) function inside the component itself. Because at this moment it is not working. The command on the outermost layer will work, but the button text will not change from Start to Pause.
If the command is being overridden then is there a way in which I can bypass this so that it will work anyway?
Thanks
What I'm wondering is if I put the commands:
on(press){
_root.particle.startMoving();
}
on an instance of this component, will it override the on (press) function inside the component itself. Because at this moment it is not working. The command on the outermost layer will work, but the button text will not change from Start to Pause.
If the command is being overridden then is there a way in which I can bypass this so that it will work anyway?
Thanks