0

I have faced this issue when I trying to load swf file from my application directory ?

What can i do to avoid that.....

FlexiDev
  • 1
  • 2

2 Answers2

0

Right click on your swf in the browser, go to Global settings. In the last tab, add this SWF file as trusted. Reload the page once you are done.

Nikhil Baliga
  • 1,339
  • 12
  • 18
  • I cant find this add this "SWF file as trusted".Is it possible to avoid at runtime or programatically? – FlexiDev May 23 '12 at 06:57
  • Go to Global Settings >> Advanced >> Trusted Location Settings. Click on Add file and locate your SWF file locally. – Nikhil Baliga May 23 '12 at 07:00
  • Also, while embedding the swf file in your html file, use allowScriptAccess as always. I am guessing that you would have done this already. This Global settings change is only while testing your file locally. When you put it up on a site, it will work fine. – Nikhil Baliga May 23 '12 at 07:03
  • This is a desktop application.Can i possible this at run time in as3? – FlexiDev May 23 '12 at 11:46
0

Visit the Global Security Settings Panel.

Then click edit locations, add location, browse for folder and select the drive containing your flash project.

Click OK and then select the radio button always allow.

Marty
  • 39,033
  • 19
  • 93
  • 162