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.DLL; | |
import mdm.System; | |
public class Kernel32 | |
{ | |
/* The drive type cannot be determined. */ | |
public static const DRIVE_UNKNOWN:int = 0; | |
/* The root path is invalid; for example, there is no volume mounted at the specified 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
<?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="800" height="600" | |
applicationComplete="mdm.Application.init(this);"> | |
<fx:Script> | |
<![CDATA[ | |
import mdm.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.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.events.ProgressEvent; | |
import flash.net.URLRequest; | |
import flash.net.URLStream; | |
import flash.utils.ByteArray; | |
import mdm.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
protected function printHandler(event:MouseEvent):void | |
{ | |
if(browser) | |
{ | |
if(flash.system.Capabilities.os.toLowerCase().substr(0, 1) == "w") | |
{ | |
browser.print(); | |
} else | |
{ | |
browser.goto("javascript:window.print();"); |
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
protected function sendRequestHandler(event:MouseEvent):void | |
{ | |
var request:URLRequest = new URLRequest("http://www.multidmedia.com/downloads/exchange/files/Simple_Applescript_Sample_042011.zip"); | |
sendHeadRequest(request); | |
request = null; | |
} | |
// | |
private var socket:Socket = null; | |
private var httpRequest:String = null; | |
private var httpServer:String = null; |
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:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx"> | |
<fx:Script> | |
<![CDATA[ | |
protected function zoomInHandler(event:MouseEvent):void | |
{ | |
html.htmlLoader.window.document.body.style.zoom = 1.5; |
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:WindowedApplication 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="800" height="600" | |
backgroundAlpha="0.90" backgroundColor="#000000" | |
initialize="visible = false" | |
creationComplete="setupStage();" > | |
<!-- --> | |
<fx:Script> |
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 | |
// |