Works great! Thanks!
On 5/10/06, Lewis, Chuck <[EMAIL PROTECTED]> wrote:
Try this:
//
this[mcName].onRelease = function() {
trace("Release = "+this);
}
//
this[mcName].onPress = function() {
trace("Press = "+this);
}
-- Chuck
--------
for (var i = 0; i < 3; i++) {
var myX = 150 * i;
var mcName = "myBox_mc" + i;
this.attachMovie("box_mc", mcName, i, {_width:100, _height:100,
_x:myX,
_y:100});
this[mcName].onMouseDown = function() {
trace(this);
}
}
stop();
The instances appear onstage correctly, but I get the same output when I
click on any of the three movieClips:
_level0.myBox_mc2
_level0.myBox_mc1
_level0.myBox_mc0
--------
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com