Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Janus Mobile e-Seminar
1.
2. Content’s Overview: Who’s Janus? Janus is the name of an ancient Roman god who had two faces looking into different directions. These faces are symbols for the two sides of a Janus compiled application. The swf side, written in ActionScript and the .exe side, written in a .NET or C++ language. Janus Symbian: - Features - Sis creation - Extending Flash Lite Janus Pocket PC: - Features - Cab creation - Extending Flash / Flash Lite What’s Janus? Janus is a tool for Flash developers that let’s you create and deploy applications for Windows, Pocket PC, Symbian out of your SWF files. It also expands actionscript functionalities with the Janus framework.
3.
4. Janus Symbian Diagrams Symbian OS Janus Symbian Launcher C++ engine http 1.0 / 1.1 protocol Flash Lite Player SWF application Desktop SIDE Symbian SIDE Windows XP, Vista Symbian SDKs, Java RE, Active Perl, .NET Janus IDE Compiled and signed SIS file
10. Code sample: how to take a screenshot var sendVar:LoadVars = new LoadVars(); var receiveVar:LoadVars = new LoadVars(); sendVar.area = "0,0,100,100"; // 100x100 px shot sendVar.path = "OthersmyScreen.jpg"; sendVar.qualityfactor = "100"; receiveVar.onLoad = function(){ if(this.err == "none") { trace("ok"); msgText.text = "DONE"; } else { trace("error"); msgText.text = this.msg; //diplay error } } sendVar.sendAndLoad("http://127.0.0.1:1080/screenShot",receiveVar,"POST");
11.
12. Janus Pocket PC Diagrams Windows Mobile OS Janus Pocket PC Launcher C# engine XMLSocket Flash Lite / Flash 7 SWF application / Compact .Net2 Form Desktop SIDE Pocket PC SIDE Windows XP, Vista .NET Janus IDE Compiled EXE - CAB file - ActiveSync installer
21. Code Sample - Show a Message Box How to show a message box and retrieve the button clicked: import ssp.dialogs.*; //Add the event listener for the 'show' event var listener:Object = new Object(); listener.show = function(e:String) { result_txt.text = e; } //MessageBox button1.onRelease = function() { MessageBox.addListener(listener); MessageBox.message = "Hello World"; MessageBox.caption = "Information"; MessageBox.buttons = "YesNoCancel"; MessageBox.icon = "None"; MessageBox.show(); }
22. Code Sample - How to intercept an SMS message 1/3 This code sample shows the usage of the MessageInterceptor class. This class allows to get notifications if a new SMS has been received. You can set the action which can be either 'notify' or 'notifydelete'. Notify will pass the notification down to the next application waiting for SMS messages while notifydelete will delete the message afterwards and block the notification chain. import ssp.utils.*; import ssp.error.*; import ssp.phone.*; var listener:Object = new Object(); listener.EVENT_messageReceived = function(e) { if(e instanceof SSPError) { result_txt.text ="Error: " + e.message; } else { var mySMS:SMS = new SMS(e); result_txt.text = "SMS: " + mySMS.body + ""; result_txt.text += "From: " + mySMS.from + "" } }