hello! :) i've to write a simple method, wich allow me to move a movieclip inside another one, like in http://www.cballestimenti.it/ (i've to move it in vertical, instead of horizontal).
i've write this simple code but it seems to not work properly...can anyone help me? thanks a lot in advance!
public function factor():void
{
thumbs.addEventListener(MouseEvent.MOUSE_MOVE, moveSlide);
factor = ((content.height)/container.height);
}
private function moveSlide(e:MouseEvent):void
{
if (container.mouseX>=0 && container.mouseX<=container.width && container.mouseY>=0 && container.mouseY<=container.height)
{
TweenMax.to(content, 0.3, { y:(-(container.mouseY)*factor) });
}
}