Hi!
Iv’e got a problem, when creating a movieclip inside a movieclip.
I create 5 movieclips dynamically…
I want a clickable tag/box on on each of these moviclips…
Code:
for(var i=0;i<5;i++){
MY_MC = _root.createEmptyMovieClip("my_mc"+i, i);
//do some ddrawing on MY_MC
//.....
//Create a Clickable "info" box/tag
Info = MY_MC.createEmptyMovieClip("Info", 200);
Info._y = 0;
Info._x = 0;
Info.createTextField("txt", 0, 0, 0, 100, 20);
Info.txt.text = "info";
Info.onRollOver = function() {
this.txt.textColor = 0xff9900;
};
Info.onRollOut = function() {
this.txt.textColor = 0x000000;
};
Info.onRelease = function() {
trace("clicked on: "+this);
};
}
This just wont work! ;( - Nothing happens when i move the mouse over the text og click on it…
Any help would be great!