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
| define("SECOND", 1); | |
| define("MINUTE", 60 * SECOND); | |
| define("HOUR", 60 * MINUTE); | |
| define("DAY", 24 * HOUR); | |
| define("MONTH", 30 * DAY); | |
| /** | |
| * Returns the human readable timespan from now to a date/time | |
| */ | |
| function human_readable( $time ) { |
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
| public function loadVideo(): void { | |
| // create the video related variables | |
| _netConnection = new NetConnection(); | |
| _netConnection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); | |
| _netConnection.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler); | |
| _netConnection.connect( null ); | |
| } | |
| /** | |
| * Connect to the video stream |
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
| public class MockModuleDelegate implements IModuleDelegate { | |
| public function getTranslation( name: String, defaultValue: String = "" ): String { | |
| if ( name == "title" ) { | |
| return "Moduel Title"; | |
| } else if ( name = "currency" ) { | |
| return "EUR"; | |
| } | |
| // more resource strings here |
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
| var types: Array = [ "slide" ]; | |
| var myXML: XML = <schedules> | |
| <schedule> | |
| <item type="{types[0]}"><![CDATA[An example to be displayed.]]></item> | |
| </schedule> | |
| </schedules>; |
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
| package tests | |
| { | |
| import assets.MainButton_Symbol; | |
| import assets.dialogs.HelpDialog_Symbol; | |
| import ch.nothing.flare.display.screens.ScreenManager; | |
| import ch.nothing.flare.events.ScreenEvent; | |
| import ch.nothing.flare.ui.Button; | |
| import ch.nothing.flare.ui.inExistingViewOf; | |
NewerOlder