I have a mc named image_holder_mc behind a mask on frame 1. also on frame 1 is this code:
var start_x = 0;
var start_y = 0;
image_holder_mc.onPress = function(){
start_x = _root._xmouse;
start_y = _root._ymouse;
startDrag(this, false, -350, -350, 350, 350);
trace (“start x::” + start_x + ", " + start_y);
}
image_holder_mc.onRelease = function(){
if (_root._xmouse == start_x && _root._ymouse == start_y){
//they didn’t drag
gotoAndPlay(“second”);
}else{
stopDrag ();
}
}
I also have this code on frame 1:
loadMovie(filename, “image_holder_mc”);
stop();
The onPress and onRelease functions ONLY work if they are in the actions panel of the mc, not in the functions frame. Ideas?
Thanks!