×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    12

    Network access and local file acces .....

    Hello,
    we are developing a nice small appli, where the UI would be in FL2.1, while the appli core is in native C++. We are using a Janus-based HTTP server and the communication between UI and core is then made using XML Socket, so far so good.
    However, because of the sockets, the UI needs to be published with "Network access" .. and then we have the following problem: if the core C++ sends to the UI the name of a video clip to play, then the FL UI needs to access it as "local file access" ... :-(

    We thought about using 2 swf's, while the "file access" one would grant access to the "network" one, as follows:

    System.security.allowDomain("*");

    So, one swf is getting the filename from Core C++, pass it to the othe swf to open it.
    It works correctly on emulator .. but unfortunately not on my N95 (which is FL3.0).
    However, as expected, if everything is put in the Trusted folder and accessed thru the FlashPlayer, it would work.
    This is not helping to much, because eventually, the swf needs to be launched using the Document API, so ...

    Has anybody ever succeedded to make this working ?

    Thanks,
    Jacques.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Network access and local file acces .....

    because eventually, the swf needs to be launched using the Document API,
    If u r launching main swf embedded into c++ stub then u have to use absolute paths in main swf to load other swf files.However, u can also upgrade Flash Lite 3.0 to 3.1 in ur phone to get rid of this security issue. Get a Flash Lite 3.1 sis package for your phone from here:
    Flash Lite 3.1

    Best Regards.
    SajiSoft

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    12

    Re: Network access and local file acces .....

    Hi,

    has FL3.1 finally allowed both network and file access at the same time ? Then it's great news, i will surely get this updated installed !

    u have to use absolute paths in main swf to load other swf files.
    however it does work when the main swf is launched from Flash Player, so does it mean that basically the main swf inherits the root path from the Player ?

    Thanks,
    Jacques.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Network access and local file acces .....

    Quote Originally Posted by jsamoun View Post
    Hi,

    has FL3.1 finally allowed both network and file access at the same time ? Then it's great news, i will surely get this updated installed !
    Yes! u can access both at same time in Flash Lite 3.1.


    however it does work when the main swf is launched from Flash Player, so does it mean that basically the main swf inherits the root path from the Player ?
    yeah.Simple observation of mine :
    1- if u launch swf in standalone flash player then the root path to load swf files is the same as of the swf path.
    2- if u launch swf embedded into C++ stub (document api) then the root path is no longer same as of the swf path . Thats why absolute path is required to load swf files like file:///e:/others/child.swf.
    Hope it helps

    Best Regards,
    SajiSoft

Similar Threads

  1. How can I access my local area network through Nokia N95
    By portalcoe in forum General Development Questions
    Replies: 1
    Last Post: 2008-09-15, 13:05
  2. JSR75-can't access text file on the local root
    By dimondat in forum Mobile Java General
    Replies: 8
    Last Post: 2008-04-14, 06:31
  3. How to access a local file on a S60 handset?
    By gloria799 in forum Symbian
    Replies: 4
    Last Post: 2007-11-21, 02:15

Posting Permissions

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