2013-06-11 2 views
0

Adobe 가장자리에서 코드를 작성하려고합니다.Adobe 가장자리 - 스크롤 위치 값 가져 오기

현재 마우스 위치를 얻고 x 값을 사용하여 타임 라인을 제어 할 수 있습니다.

mousemove: 
this.onMove(posX, posY); 

compositionready: 
this.onMove=function(posX, posY){ 
timelinecontrol = Number(posX)*80; 
console.log(timelinecontrol); 
sym.stop(timelinecontrol); 
} 

어떻게 페이지 상단에서 스크롤 거리를 가져 와서 posX 대신 사용할 수 있습니까?

+0

제 개인적인 의견을 모두 편집 해 주셔서 감사합니다. 나는 로봇이 아니야. 너는 내가 마치 한 것처럼 말할 필요가 없어. 내가 말한 것은 - 페이지 상단에서 스크롤 거리를 얻고 posX 대신 그것을 사용하는 방법을 연습 할 수 없다. 내 깊이가 지금 .... 고맙습니다. – user2010470

답변

0
this.onMove(e.pageX, e.pageY); 

// insert code to be run when the composition is fully loaded here 
this.onMove=function(posX, posY) { 
    timelinecontrol = Number(posX)*2; 
    console.log(timelinecontrol); 
    sym.stop(timelinecontrol); 


    sym.$("lblX").html("X:"+posX); 
    sym.$("lblY").html("Y:"+posY); 

}