diff --git a/src/ui/parts/LibraryPart.as b/src/ui/parts/LibraryPart.as index 3f04a8d..8626492 100644 --- a/src/ui/parts/LibraryPart.as +++ b/src/ui/parts/LibraryPart.as @@ -374,7 +374,6 @@ public class LibraryPart extends UIPart { if (spr.costumes.length > 1) spr.costumes.shift(); // remove default costume spr.showCostumeNamed(list[0].costumeName); app.addNewSprite(spr); - } } var lib:MediaLibrary = new MediaLibrary(app, 'sprite', addSprite); @@ -385,7 +384,7 @@ public class LibraryPart extends UIPart { // ----------------------------- // New Backdrop Operations //------------------------------ - + private function backdropFromCamera(b:IconButton):void { function savePhoto(photo:BitmapData):void { addBackdrop(new ScratchCostume(Translator.map('photo1'), photo)); @@ -393,7 +392,7 @@ public class LibraryPart extends UIPart { } app.openCameraDialog(savePhoto); } - + private function backdropFromComputer(b:IconButton):void { var lib:MediaLibrary = new MediaLibrary(app, 'backdrop', addBackdrop); lib.importFromDisk(); @@ -407,7 +406,7 @@ public class LibraryPart extends UIPart { private function paintBackdrop(b:IconButton):void { addBackdrop(ScratchCostume.emptyBitmapCostume(Translator.map('backdrop1'), true)); } - + private function addBackdrop(costumeOrList:*):void { var c:ScratchCostume = costumeOrList as ScratchCostume; if (c) {