程序如下:
Screen.backgroundColor="#28AFFA"
constraints=new Layer
width: 300
height:150
x: Align.center
y:Align.center
backgroundColor:"rgba(255,255,255,0.2)"
LayerDrag=new Layer
width: 150
height:150
x: Align.center(-75)
y:Align.center
backgroundColor: "#FFF"
borderRadius: 4
LayerDrag.draggable.enable=true
LayerDrag.draggable.vertical=false
LayerDrag.draggable.overdrag=true
LayerDrag.draggable.bounce=true
LayerDrag.draggable.monmentum=true
LayerDrag.draggable.constraints=constraints.frame
网友评论