我正在尝试用Adobe edge编写一些代码。
目前,我可以获取鼠标位置,并使用x值控制时间线。
mousemove:
this.onMove(posX, posY);
compositionready:
this.onMove=function(posX, posY){
timelinecontrol = Number(posX)*80;
console.log(timelinecontrol);
sym.stop(timelinecontrol);
}如何获得页面顶部的滚动距离并使用它而不是posX?
发布于 2013-07-03 23:17:48
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);
}https://stackoverflow.com/questions/17042520
复制相似问题