This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| slide = new Slide(appModel.currentSlide); | |
| slide.x = slide.pivotX = slide.width * .5; | |
| slide.y = slide.pivotY = slide.height * .5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sleep(ms:int):void { | |
| var init:int = getTimer(); | |
| while(true) { | |
| if(getTimer() - init >= ms) { | |
| break; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| previousButton = new PreviousButton(); | |
| addChild(previousButton); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: wouter | |
| * Date: 09/10/12 | |
| * Time: 18:52 | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| package be.devine.cp3.photobooth { | |
| public class Library { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: WouterDS | |
| * Date: 19/11/12 | |
| * Time: 23:43 | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| package be.wouterds.cubetester.model { | |
| import flash.events.Event; | |
| import flash.events.EventDispatcher; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage.nativeWindow.x = (Screen.mainScreen.bounds.width - stage.nativeWindow.width) * .5; | |
| stage.nativeWindow.y = (Screen.mainScreen.bounds.height - stage.nativeWindow.height) * .5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Embedding | |
| [Embed(source="/../media/fonts/DINPro-Medium.otf", embedAsCFF="false", fontFamily="DinProMedium")] | |
| public static const DinProMedium:Class; | |
| [Embed(source="/../media/fonts/OpenSans-Regular.ttf", embedAsCFF="false", fontFamily="OpenSansRegular")] | |
| public static const OpenSansRegular:Class; | |
| [Embed(source="/../media/fonts/OpenSans-Semibold.ttf", embedAsCFF="false", fontFamily="OpenSansSemibold")] | |
| // Usage | |
| Config.OpenSansRegular; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $data = array( | |
| 'Author' => array( | |
| 'ip' => $ip, | |
| 'ua' => $ua | |
| ) | |
| ); | |
| if($this->Author->save($data)) | |
| debug('SAVED NEW AUTHOR'); | |
| else |
OlderNewer