×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Flash Lite 3.1 security sandbox problems (FL in WRT)

    Prior to the release of Flash Lite 3.1 I worked on a Flash-based WRT widget which loads external data. Adding a crossdomain policy file and publishing as 'access network only' was enough to work around the security sandbox. I'm now working on a similar widget but I'm having more difficulty with the security sandbox in the 3.1 player.

    My SWF is embedded in a WRT widget wrapper, so it runs locally. Publish settings are set to Flash Lite 3.0 (widget needs to work with 3.0 and 3.1), ActionScript 2.0, access network only. I made a simple test file loading data via SWX on our test server. It works fine with Flash Lite player v3.0, but not with 3.1. I get a connection prompt, and the logs show a request to SWX and a response is sent, but I'm seeing a timeout event instead of a successful result. If I run the SWF from a trusted folder it receives the response from SWX no problem. This was enough to convince me that the sandbox is the problem.

    I made a second test file to see whether I can load some external XML with the 3.1 player. I added a call to System.security.allowDomain passing "*" to allow all, and a call to System.security.loadPolicyFile passing the URL of the crossdomain file on the root. The SWF works when I run it from the messaging inbox (e.g. if I bluetooth the SWF to the device directly), however when embedded in the widget it displays without triggering a connection prompt. The AllowNetworkAccess key in the widget plist file is set to true, and I've set the allowNetworking parameter to "all" and allowScriptAccess to "always" in the embed code.

    Can anyone see what I'm doing wrong here? I didn't expect to have this much difficulty just loading XML.

    Thanks,

    Stuart

  2. #2
    Registered User
    Join Date
    Aug 2007
    Posts
    1

    Re: Flash Lite 3.1 security sandbox problems (FL in WRT)

    I'm having the exact same problem.
    ...
    solved, need to select "Access network only" when publishing .swf
    Last edited by pedrofernandes; 2010-06-04 at 19:27. Reason: problem solved

  3. #3
    Registered User
    Join Date
    Nov 2006
    Location
    Recife, Brazil
    Posts
    79

    Re: Flash Lite 3.1 security sandbox problems (FL in WRT)

    Hi, set the allowScriptAccess="always" parameter inside the PARAM or EMBED tag. The AllowScriptAccess parameter in the HTML code that loads a SWF file controls the ability to perform outbound URL access from within the SWF file.

Similar Threads

  1. Embed Flash Lite within a WRT widget?
    By bryanrieger in forum Symbian
    Replies: 10
    Last Post: 2010-04-18, 17:42
  2. N97 + Flash Lite + Cookie = WRT problems
    By batuhan.altun in forum Symbian
    Replies: 4
    Last Post: 2009-08-12, 14:23
  3. Petition: Nokia Flash Lite packaging on all future Nokia
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 22
    Last Post: 2009-05-10, 01:21
  4. Flash Lite handsets poll
    By ilyadanilov in forum Series 40 & S60 Platform Feedback Archive
    Replies: 11
    Last Post: 2006-07-04, 23:17
  5. S60 2nd FP3 and 3rd - Flash Lite frustration
    By ilyadanilov in forum General Development Questions
    Replies: 7
    Last Post: 2006-02-08, 19:07

Posting Permissions

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