View Single Post
  #3 (permalink)  
Old 06-10-2007, 05:22 PM
Joey
Posts: n/a
Quick note without testing....

Can you just do a hitTest with the image and what u want.

for example object A and object B are on the root timeline- ur image is inside object B. make ur image be inside a movie clip which in turn is inside object B. then do a hit test with onjectB.image instead of just object B. Hope that makes sense.

heres some dirty code for ya:

box_mc.onPress = function() {
startDrag(this);
};
this.onEnterFrame = function() {
if (box_mc.hitTest(circle_mc.circle2_mc)) {
trace("you hit the circle");
}
};

there are 2 objects on the stage. box_mc and circle_mc, then circle2_mc (which is inside circle2_mc- where ur image would be.)

send em a note if u have questions and please forgive any yahoo formatting to the code.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!