Para la barrita use este código:
----------------------------
onClipEvent (enterFrame) {
this._x = _root._xmouse;
}
Para la pelotita este código:
----------------------------
onClipEvent (load) {
xvelo = 15;
yvelo = 15;
radio = _width/2;
_root.x_limite = 700;
_root.y_limite = 400;
}
onClipEvent (enterFrame) {
_x = _x+xvelo;
_y = _y+yvelo;
if ((_x+radio)>=_root.x_limite) {
xvelo = -xvelo;
}
if ((_x-radio)<=0) {
xvelo = -xvelo;
}
if ((_y+radio)>=_root.y_limite) {
yvelo = -yvelo;
}
if ((_y-radio)<=0) {
yvelo = -yvelo;
}
//suponiendo que la barra se llame "barrita"
if(this.hitTest(barrita)) {
yvelo = -yvelo;
};
}
El problema hasta hora es que la pelota no toca la barrita.
No se que hacer
gracias

