Home » questions » Flash==> need help?

Flash==> need help?

2006-08-19 22:42:27, Category: Programming & Design
I have 2 movie clips in the root level. inside one of the movie clips i have this button and this is the script for the button: on (release) { this.gotoAndStop(2); _root.asd1.gotoAndStop(1); } the first part works and the current movie clip goes to the 2nd frame. but the second part doesnt work and the other movie clip on the root level doesnt go from the 2nd frame to the 1st frame. anybody knows y? (this is like radio button so when i click on the other goes off but it diesnt work and all the buttons can be on at the same time.

Answers

  1. Michael T

    On 2006-08-20 00:05:38


    When the button is clicked the first statement this.gotoAndStop(2), moves the timeline to that point (which is frame 2) and doesn't execute your second command _root.asd1.gotoAndStop(1); You could place _root.asd1.gotoAndStop(1) in frame 2 of that movie clip or switch the order of your commands.