I've put together a simple button, imported into a new MC and placed the MC on the stage. There is code inside the button that will change a status variable depending whether the user is rollingover or rollingout of the button.
On the timeline on the MC, I have code on frame 1 that initializes my variables. On frame 4 I have code that determines what the status of the button is. Depending on the status the code will either increase or decrease the size of the button. On frame 5 I have a "gotoandplay" command that goes back to frame 4 and creates a continuous loop.
When I test it, the button is displayed but does not do anything. When I put the button directly on the stage and place the code on the stage and not on a MC, I've had the button work perfectly.
Perhaps I'm missing some concept of how the movie executes by having the button inside an MC. Any suggestions or recommendations would be appreciated!
On the timeline on the MC, I have code on frame 1 that initializes my variables. On frame 4 I have code that determines what the status of the button is. Depending on the status the code will either increase or decrease the size of the button. On frame 5 I have a "gotoandplay" command that goes back to frame 4 and creates a continuous loop.
When I test it, the button is displayed but does not do anything. When I put the button directly on the stage and place the code on the stage and not on a MC, I've had the button work perfectly.
Perhaps I'm missing some concept of how the movie executes by having the button inside an MC. Any suggestions or recommendations would be appreciated!