I don't really know how difficult or easy this may be but instead of a specified value, how would I get this to work based on a percentage of the screen width.
onClipEvent (enterFrame) {
if (_root._xmouse < 50) {
setProperty("_root.sky", _x, _x+1);
}
if (_root._xmouse > 500) {
setProperty("_root.sky", _x, _x- 1);
}
xpos3 = math.floor(getProperty(_root.sky, _x));
if (xpos3 >=508) {
setProperty("_root.sky", _x, -630);
}
if (xpos3 <=-1210) {
setProperty("_root.sky", _x, -76);
}
}
-dimmech
onClipEvent (enterFrame) {
if (_root._xmouse < 50) {
setProperty("_root.sky", _x, _x+1);
}
if (_root._xmouse > 500) {
setProperty("_root.sky", _x, _x- 1);
}
xpos3 = math.floor(getProperty(_root.sky, _x));
if (xpos3 >=508) {
setProperty("_root.sky", _x, -630);
}
if (xpos3 <=-1210) {
setProperty("_root.sky", _x, -76);
}
}
-dimmech