Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This issue is also showing up in a regular flash application. Basically, I have a helper class called UrlInfo.</p> <p>It's constructor looks like this</p> <pre><code>import flash.display.LoaderInfo; public class UrlInfo { private var _loaderInfo:LoaderInfo; public function UrlInfo():void { _loaderInfo = LoaderInfo.getLoaderInfoByDefinition(this); } } </code></pre> <p>In a fla file, I have this:</p> <pre><code>import my.namespace.UrlInfo; var ui:UrlInfo = new UrlInfo(); </code></pre> <hr> <p>I get the same error:</p> <pre><code>SecurityError: Error #2119: Security sandbox violation: caller file **SAMEFILE.swf** cannot access LoaderInfo.applicationDomain owned by **SAMEFILE.swf**. at flash.display::LoaderInfo$/getLoaderInfoByDefinition() at com.honda.ttd.content.as3.util::UrlInfo() at urlinfo_fla::MainTimeline/frame1() </code></pre> <hr> <p>Launching the .html that calls the swf does not trigger this. Launching the .swf does trigger this.</p> <p>I know that I can fix it by going to the flash settings and adding the location of the swf into the <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html" rel="nofollow noreferrer">Flash Security Settings Tab</a>.</p> <p>For instance, if the SAMEFILE.swf is on my Desktop, I can add C:/ to the list of trusted locations.</p> <hr> <p><strong>I AGREE THAT THIS IS ODD</strong> because the file is accessing itself, yet it is violating some security. I would like to know if there is any fix for this or if this is actually <em>expected</em> behavior.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload