PDA

View Full Version : moving graphic x axis only threw mouse move code check



pares101
June 2nd, 2003, 01:24 PM
basically this is the code i got from a kirupa tutorial and i just want the graphic to be moved on the x axis

onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
//get the limits of the normal pic movie
if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && _root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
this._x = _root._xmouse;
}
}

is this the correct code??

pom
June 2nd, 2003, 03:27 PM
Well, is it working?

pares101
June 2nd, 2003, 04:02 PM
im just wondering if the movieclip name was normalpic??? or is that the name of the Instance of the movie clip?

pom
June 2nd, 2003, 05:02 PM
Probably the name of the instance, but the syntax looks a bit strange. Did you check in the AS dictionary?