//how can I transform these MovieClips into Buttons dynamically
//so I wont be coding them 1 by 1 and reduce length of my script and time for editing?thanks
//pre-conditions: 100 MovieClips on the stage with an instance names of mc_bbg1, mc_bbg2, and so on..
// each MovieClip has 2 states a vector shape with white and Gray fill
for (var i:Number = 1; i<101; i++) {
var instance_name = ("mc_bbg"+i);
trace(instance_name);
instance_name.onRollOver = function() {
instance_name.gotoAndStop("on");
//trace("Hit!");
};
instance_name.onRollOut = function() {
instance_name.gotoAndStop("out");
};
instance_name.onRelease = function() {
instance_name.gotoAndStop("out");
};
}
//I also tried this code: "mc_mobbg"+i.onRollOver = function().. but still did not work. thanks again.
