Hi all,
I’ve made a movie in MX where so far I have a group of movie clips that are loaded to random locations on the stage.
What I’m trying to do now its make it so that when 1 of the movie clips is clicked, and then a 2nd is clicked a line will be draw between them (to connect them).
I’ve become stuck when trying to figure out how to achieve this and was hoping someone might be able to point me in the right direction?
Here’s what i’m working with:
[AS]
for (var i = 0; i<5; i++) {
this.attachMovie(“test”, “test”+i, this.getNextHighestDepth());
var mc:MovieClip = this[“test”+i];
mc._x = Math.round(Math.random()*300);
mc._y = Math.round(Math.random()*200);
mc.onPress = function() {
//?
};
mc.onRelease = function() {
//?
};
}
[/AS]
Cheers.