Hi,
I need to build a slide bar that controls the _x and _y positions of elements on an array.
As soon as you slide this bar mc[0] start moving and more you move the slide bar more mcs you move, yet all of them one by one.
Here it goes a code:
The array:
var ordered = ["mc","mc1","mc3","mc4","mc5","mc6","mc7","mc8","mc9","mc10"]
The slide bar:
but_mc.onPress = function() {
this.startDrag(false, 610, 367, 300, 367);
onEnterFrame = moveMe;
};
but_mc.onRelease = but_mc.onReleaseOutside=function () {
currentX = this._x;
currentY = this._y;
this.stopDrag();
delete onEnterFrame;
};
and inside this function should go the code:
function moveMe() {
}
anyone?