A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: WM - FlashLite 2.1 - Write text file

  1. #1
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831

    WM - FlashLite 2.1 - Write text file

    Hey guys,

    This is what I am working on:

    Mobile Device: Windows Mobiles 5+
    FlashLite version: FlashLite 2.1

    Requirement:
    Need to write some data to text file or need to write some data to a database on mobile (preferable SQL Lite). I am aware of the fact that FlashLite on its alone cannot do this and it will need some 3rd party script to do so....what ever language this script follows is not an issue...it may be JAVA, C++, VB scripts, DOT.NET etc anything.....

    Can somebody 1st tell me is this possible ? If 'Yes' then how ?
    As ever,
    Vinayak Kadam

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    historically developers create a native application that acts like a server to receive data from flash and send data back to flash. After receiving the data the native application can do whatever it needs on the OS then send a result or confirmation back to flash.

    You can try to set up an xml socket server in your native code or a http server, depending upon the data transfer protocol supported by the Flash player you are using.

  3. #3
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Thanks hp3 for your reply!

    I was advised the same from those who I asked this question. You gave a little more description about it (XML socket....) which will help me a lot!
    As ever,
    Vinayak Kadam

  4. #4
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    there is an example of how to write a xml socket server using .net in the book Flash the Future which you can buy used (very cheap).

  5. #5
    Member
    Join Date
    Nov 2000
    Location
    South East UK
    Posts
    91
    Janus is what you need for this, it gives you OS level control - as otherwise you're limited to Adobe's security sandbox limitations. Janus compiles your .swf app with additional controls that Flash Lite ignores. This compilation process gives you extra functionality.

    I'm pretty sure Janus will enable you to work with local files, e.g. text files. In the past I've done something similar on desktop apps using a similar tool called zinc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center