Professional Web Applications Themes

Shared libraries and security/domains - Macromedia Flash Data Integration

Hello !! My problem is the following : A.swf is on client side. It use ./content/__library.swf as shared library. B.swf is on server side. It use __library.swf too When I try to dynamically load B.swf in A.swf (via loadMovie), I encounted a sandbox security violation : Error opening URL "file:///E|/Projects/test/empty" *** security Sandbox violation *** connection interupted on file:///E|/Projects/test/./content/__library.swf - restricted operation from [url]http://127.0.0.1/remotings/test/loadExternalContent.php[/url] empty is the clip used to link library. loadExternalContent.php is the file who send the swf on the client-side, so consider it as B.swf I have tried some tests with System.security.allowDomain, but no good results... If ...

  1. #1

    Default Shared libraries and security/domains

    Hello !!

    My problem is the following :

    A.swf is on client side. It use ./content/__library.swf as shared library.

    B.swf is on server side. It use __library.swf too


    When I try to dynamically load B.swf in A.swf (via loadMovie), I encounted a
    sandbox security violation :

    Error opening URL "file:///E|/Projects/test/empty"
    *** security Sandbox violation ***
    connection interupted on file:///E|/Projects/test/./content/__library.swf -
    restricted operation from
    [url]http://127.0.0.1/remotings/test/loadExternalContent.php[/url]


    empty is the clip used to link library.
    loadExternalContent.php is the file who send the swf on the client-side, so
    consider it as B.swf


    I have tried some tests with System.security.allowDomain, but no good
    results... If anyone as a solution...

    Thanks for any response.

    panorezo Guest

  2. #2

    Default Re: Shared libraries and security/domains

    Hi there,

    there is an article on changes in security in Flash Player 8 by Deneb Meketa.
    I am quoting:

    Local sandboxes: By default, local SWFs can no longer contact the Internet,
    perform HTTP communication, or communicate with local HTML files. If SWFs of
    version 7 or earlier attempt to perform any of these actions, users will see a
    warning dialog box that informs them that it cannot be done. The appearance of
    the dialog box, and breakages in existing content, can be remedied either by
    end users or by Flash developers by putting appropriate permissions in place.

    Here is a link to that article:
    [url]http://www.macromedia.com/devnet/flash/articles/fplayer_security.html[/url]


    I hope you will find your answer there. There was also a whitepaper on
    security in Flash Player.

    Simon

    SimonTheSwift Guest

  3. #3

    Default Re: Dynamic Text

    Found the answer:

    In your ActionScript you need the following simple command in Frame 1:

    loadVariables(_root.textfile,"");

    where "textfile" is the name on the PARAM element:

    <param name="loadVars" value="textfile=A sample message">

    That's it -- easy once you see it :)

    Dr. DOT Guest

Similar Threads

  1. #8963 [Opn->Bgs]: using shared PHP libraries in safe_mode
    By rasmus@php.net in forum PHP Bugs
    Replies: 0
    Last Post: October 27th, 12:49 AM
  2. loading shared libraries
    By albert105 in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: February 24th, 10:34 AM
  3. onSoundComplete for sounds from Shared Libraries
    By HumanJHawkins in forum Macromedia Flash
    Replies: 2
    Last Post: October 20th, 09:09 PM
  4. Loading shared libraries from a setuid program
    By Joe Halpin in forum Sun Solaris
    Replies: 6
    Last Post: July 9th, 08:45 AM
  5. About shared libraries...
    By Kundan Nehete in forum Mac Programming
    Replies: 0
    Last Post: July 7th, 12:03 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139