Moving graphic x axis only threw mouse move code check

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??

Well, is it working?

im just wondering if the movieclip name was normalpic??? or is that the name of the Instance of the movie clip?

Probably the name of the instance, but the syntax looks a bit strange. Did you check in the AS dictionary?