Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var win = Ti.UI.createWindow();
- var view = Ti.UI.createImageView({
- image:"myimage.png",
- width:24,
- height:24
- });
- var button = Ti.UI.createButton({
- title:"Animate",
- width:80,
- height:40,
- bottom:10
- });
- button.addEventListener("click",function(){
- view.animate({top:0,duration:500});
- });
- win.add(view);
- win.add(button);
- win.open();
Add Comment
Please, Sign In to add comment