This file contains 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
javascript:document.body.style.overflow = 'hidden' | |
javascript:document.body.style.overflowX = 'hidden' |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
width="320" height="480" | |
applicationComplete="mdm.Application.init(this);" | |
creationComplete="Controller.instance.model.existingDataObj.existingDataXML = xml;"> | |
<fx:Declarations> | |
<fx:XML format="e4x" id="xml" xmlns=""> |
This file contains 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
import mdm.Application; | |
import mx.controls.Alert; | |
import mx.events.CloseEvent; | |
// | |
// when application starts | |
// enable exit handler | |
// and route exit event to custom handler | |
// to get user action | |
// |
This file contains 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 | |
{ | |
import mdm.System; | |
import spark.components.Application; | |
public class MyApplication extends Application | |
{ | |
[Bindable] | |
public var txt:String = ""; |
This file contains 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 | |
{ | |
import mdm.HTTP; | |
import mx.controls.ProgressBar; | |
import spark.components.Application; | |
import spark.components.Image; | |
public class MyApplication extends Application |
This file contains 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 | |
{ | |
import flash.display.DisplayObject; | |
import flash.events.MouseEvent; | |
import flash.geom.Rectangle; | |
import mdm.Application; | |
import mdm.Browser; | |
import spark.components.Application; |
This file contains 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 exitButtonClickHandler(event:MouseEvent):void | |
{ | |
// do runtime check for presence of "filename" | |
if(mdm.Application && mdm.Application.filename.length) | |
{ | |
mdm.Application.exit(); | |
} else | |
{ | |
flash.system.fscommand("quit"); | |
}; |
This file contains 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 pathForFlash(path:String):String | |
{ | |
// in ZINC runtime convert paths to URI FIle protocol | |
// for content loading via Flash native features | |
if(mdm.Application && mdm.Application.filename.length) | |
{ | |
return "file://"+mdm.Application.path.split("\\").join("/")+path; | |
}; | |
return path; | |
} |
This file contains 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
// machine host name required for uri | |
var host:String = mdm.System.Registry.loadString(3, | |
"SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName", | |
"ComputerName"); | |
// share name | |
var share:String = "myfolder"; | |
// folder absolute path converted to URI path (strip volume root) | |
var folderPath:String = mdm.Application.path.substr(3); | |
// construct full path | |
var uriPath:String = "\\\\"+host+"\\"+share+"\\"+folderPath; |
This file contains 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
NSString *appPath = [[NSWorkspace sharedWorkspace] fullPathForApplication:@"TourDeFlex.app"]; | |
if(!appPath) return; | |
NSURL *url = [NSURL URLWithString:appPath]; | |
NSArray *args = [NSArray arrayWithObjects:@"-show", @"exampleName", nil]; | |
NSDictionary *options = [NSDictionary dictionaryWithObject:args | |
forKey:NSWorkspaceLaunchConfigurationArguments]; | |
NSError *launchError = nil; | |
[[NSWorkspace sharedWorkspace] launchApplicationAtURL:url | |
options:NSWorkspaceLaunchDefault | |
configuration:options |