Loading...
Flash Player 9 (or above) is needed to view slideshows. We have detected that you do not have it on your computer.To install it, go here
-
Added to the group Flash Mobile and Device Presentations by scottjanousek
Slideshow Transcript
- Slide 1: Spaghetti Sort presents Janus: the ultimate professional tool for Flash/Flash Lite/Flex developers! Presenters: • Daniele Cerolini (Janus Lead Director, Flash Platform developer) • Leonardo Risuleo (Janus Symbian Developer, Mobile developer/designer) A Boston Adobe Mobile and Devices User Group event: http://www.flashmobilegroup.org/ 9 November 2007
- Slide 2: Content’s Overview: 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. 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
- Slide 3: Janus Symbian version 2.0.2 Janus Symbian Lite (free) key features: • Professional SIS Maker and SWF Launcher tool • Flash Lite 1.1, 2.0 and 2.1 (3.0 embedded) compatible • Symbian S60 platform editions 1st, 2nd & 3rd • Auto sign SIS installer (with custom certificates) • Lets you embed external files (ie images, texts, videos, sounds…) • Lets you specify required capabilities • Lets you embed additional SIS file with yours (es. Flash Lite Player, Python…) Janus Symbian Full (149 €): •Lets you modify the source file for your SIS in order to fine-tune and tweak your SIS • Extends Flash Lite functionalities with a full set of extra methods (native c++)
- Slide 4: Janus Symbian Diagrams Compiled and signed SIS file Desktop Janus IDE SIDE Symbian SDKs, Java RE, Active Perl, .NET Windows XP, Vista SWF application Flash Lite Player Symbian http 1.0 / 1.1 protocol Janus Symbian Launcher SIDE C++ engine Symbian OS
- Slide 5: Interface: Symbian TAB
- Slide 6: Symbian Resources TAB
- Slide 7: Capabilities TAB
- Slide 8: SIS file TAB
- Slide 9: Extending Flash Lite capabilities with Janus Janus Symbian Edition lets you expand the power of Flash Lite for Smartphone beyond your imagination, providing a “growing up” set of additional custom functions: Additional methods - displayNote (display Symbian Global notes: information, error, warning, confirmation) - writeFile (write txt or xml files on the device’s file system) - screenShot (takes a full or partial screenshot in jpg format ) - findFiles (search the file system for a specified content)* - getDrive (let us know the drive we’re working on) - Close (close the engine to free memory) - More to come… * Xml output
- Slide 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 = \"\\\\Others\\\\myScreen.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,\"P OST\");
- Slide 11: Janus Pocket PC version Janus Pocket PC key features (199 €): • Professional CAB Maker and SWF Launcher tool using the industry leading \"Janus Engine” • Supports Flash Lite 2.1 and Flash Player 7 for Pocket PC • You have access to the device file system • You can access SQL Server Mobile or SQLite3 databases • You can manipulate images • You can send SMS messages and Emails • You have full WiFi management • You can read GPS data • You can check a variety of device status properties · Lets you embed external files (ie images, texts and sounds) to be deployed with your application Designed and built in order to be easily updated and future proof - more and more Janus Pocket PC methods are in the works!
- Slide 12: Janus Pocket PC Diagrams Compiled EXE - CAB file - ActiveSync installer Desktop Janus IDE SIDE .NET Windows XP, Vista SWF application / Compact .Net2 Form Flash Lite / Flash 7 Pocket PC XMLSocket Janus Pocket PC Launcher SIDE C# engine Windows Mobile OS
- Slide 13: Interface: Application TAB
- Slide 14: Main Form TAB
- Slide 15: Libraries TAB
- Slide 16: Resources TAB
- Slide 17: Compile TAB
- Slide 18: Cab File TAB
- Slide 19: PPC Installer TAB
- Slide 20: Extending Flash capabilities with Janus Janus Pocket PC lets you expand the power of Flash Lite for Smartphone beyond your imagination, providing a “growing up” set of additional custom functions: Some Classes - SQLite3, SQLServer - System, Status - File, FTP - GPS - WIFI - OutLook - SMS (interceptor) - Registry
- Slide 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(); }
- Slide 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 + \"\\r\"; result_txt.text += \"From: \" + mySMS.from + \"\\r\" } }
- Slide 23: Code Sample - How to intercept an SMS message 2/3 listener.initialize = function(e) { if(e instanceof SSPError) { result_txt.text =\"Initialization Error: \" + e.message; } else { result_txt.text = \"Is Initialized: \" + e.toString() + \"\\r\"; } } listener.setAction = function(e) { if(e instanceof SSPError) { result_txt.text =\"Set action Error: \" + e.message; } else { result_txt.text = \"Action set: \" + e.toString() + \"\\r\"; } }
- Slide 24: Code Sample - How to intercept an SMS message 3/3 listener.setCriteria = function(e) { if(e instanceof SSPError) { result_txt.text =\"Set criteria Error: \" + e.message; } else { result_txt.text = \"Criteria set: \" + e.toString() + \"\\r\"; } } MessageInterceptor.addListener(listener); button1.onRelease = function() { MessageInterceptor.setAction(\"notifydelete\"); MessageInterceptor.setCriteria(\"body\", \"contains\", \"janus\", false); MessageInterceptor.initialize(); }
- Slide 25: Resources: Adobe Mobile & Devices Developer Center www.adobe.com/go/mobiledeveloper Symbian & Nokia http://www.symbian.com/ http://developer.symbian.com/ https://www.symbiansigned.com/ http://community.forum.nokia.com/ Spaghetti Sort http://www.spaghettisort.com/ http://www.spaghettisort.com/help (help) http://www.spaghettisort.com/forum (forum) Questions daniele.cerolini@spaghettisort.com leonardo.risuleo@spaghettisort.com http://www.scriptamanentgroup.net/byte/
- Slide 26: Thanks!


