this is difficult to explain, i will attempt to be clear.
simple slide show
here is the code and the problem
function moveObject (objecttoMove, newPosition){
objecttoMove.onEnterFrame=function(){
this._x-=(this._x-newPosition)*.5
}
}
function indexUp(){
_root.oldIndex=_root.currentIndex+1;
_root.newIndex=_root.currentIndex;
_root.moveObject(_root["h"+_root.oldIndex], -341);
_root.moveObject(_root["h"+_root.newIndex], 0); <<< **problem lies here**
_root.currentIndex=_root.currentIndex-1;
_root.right.gotoAndStop(2);
_root.gotoAndPlay(4);
}
stop();
*note: indexUp() is called from the "next" button ( on(release) ).
on the first part of the indexUp() function, i take the picture currently being displayed on the stage and slide left, works like a charm. at this point, it moves the MC holder "_root.h3" (value of _root.oldIndex being 3)
the value of _root.newIndex is 2, the MC holder i want to move is "_root.h2", but it does not move.
any thoughts?
cheers
simple slide show
here is the code and the problem
function moveObject (objecttoMove, newPosition){
objecttoMove.onEnterFrame=function(){
this._x-=(this._x-newPosition)*.5
}
}
function indexUp(){
_root.oldIndex=_root.currentIndex+1;
_root.newIndex=_root.currentIndex;
_root.moveObject(_root["h"+_root.oldIndex], -341);
_root.moveObject(_root["h"+_root.newIndex], 0); <<< **problem lies here**
_root.currentIndex=_root.currentIndex-1;
_root.right.gotoAndStop(2);
_root.gotoAndPlay(4);
}
stop();
*note: indexUp() is called from the "next" button ( on(release) ).
on the first part of the indexUp() function, i take the picture currently being displayed on the stage and slide left, works like a charm. at this point, it moves the MC holder "_root.h3" (value of _root.oldIndex being 3)
the value of _root.newIndex is 2, the MC holder i want to move is "_root.h2", but it does not move.
any thoughts?
cheers