Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Display Uplaoded Picture
- */
- displayLabel = function () {
- var image = new Image();
- // Invoked when the picture is loaded
- image.onload = function (event) {
- // Display Uplaoded Picture
- var upload = new createjs.Bitmap(event.target);
- upload.y = 100;
- upload.x = 100;
- upload.height = 150;
- upload.width = 150;
- stage.addChild(upload);
- stage.update();
- // Enable drag'n'drop on Picture
- enableDrag(upload)
- }
- image.src = "images/sample.jpg";
- }
- function left() {
- upload.x += 5; // move image by 5px
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement