Hi, I’m new to the forum & have been using flash mx for a couple of days. I’m working on a game which I need to develop further but firstly I’m starting off with basic things & then making them more complex.
I’ve made a movie clip of a dart which I moves across the stage and hits a target. Now, when it hits the target ( a movie clip of a circle which is red), the circle changes to blue. However, I know the dart movie clip needs some code along the lines of
on (event) {
[color=#000087]if[/color] ([color=#000087]this[/color].[color=#000087]_droptarget[/color] == “[color=blue]/circle[/color]”) {
[color=#000087]_root[/color].circle.[color=#000087]gotoAndStop/color;
}
}
What would the event be? I tried on (rollover) but that didn’t work. Any suggestions?
The code on the circle is in the circle’s first frame which is:
stop();
(so it doesnt play the second frame until the dart hits it)
I’d be so grateful for any help, as it’s for my uni coursework