Reply
EJ
Contributor
EJ
Posts: 14
Registered: ‎02-11-2009
0 Kudos
Accepted Solution

SecurityError: Error 3207 in FLEX 3 AIR Application

Hello,

 

I am currently getting this error message when trying to run my Flex 3 Air Application:

 

SecurityError: Error #3207: Application-sandbox content cannot access this feature.
    at flash.system::Security$/allowDomain()
    at BrightcovePlayer/init()[/Users/user/Documents/Flex Builder 3/BrightcoveDesktop/src/BrightcovePlayer.as:51]

 

On line 51 of the BrightcovePlayer.as file:

Security.allowDomain("http://admin.brightcove.com");

 

I'm wondering if anyone has seen this error before, and has any solution.

 

I have run app, as a regular FLEX file with no problems at all, it only occurs when using the code in a FLEX 3 AIR application 

Visitor
BC-Eric-A
Posts: 9
Registered: ‎12-10-2008
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

[ Edited ]

Have you added:

 

 

Security.allowDomain(”*”);

 

to your base AIR class?

 

 

 

Message Edited by BC-Bob on 02-16-2009 09:33 AM
EJ
Contributor
EJ
Posts: 14
Registered: ‎02-11-2009
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

[ Edited ]

Thanks Eric, Although in all honesty I am just starting to get my feet wet with Flex 3 and have no idea where this should go. I do have this line howerever in my BrightcovePlayer.as:

 

 

Security.allowDomain("http://admin.brightcove.com");

 

 

is there somewhere else this should go, another file possible.

 

Thanks again for the help. 

Message Edited by BC-Bob on 02-16-2009 09:34 AM
Brightcove Team
BC-Oscar
Posts: 503
Registered: ‎12-11-2008
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

Hi EJ,

 

The security sandbox in AIR works different than the Flash Player one and Security.allowDomain() is expected to thrown the error you are getting when loading external content in AIR. You would need to use a sandbox bridge in AIR to load external content.

 

However if you are getting started with Flex 3, I would suggest to take a look at our example on how to embbed the BC player in Flex 3 (no AIR). This should allow you to start getting familiar with the Player API

 

Embedding Brightcove Players in Flex 3

Regular Contributor
digi-alex
Posts: 77
Registered: ‎02-26-2009
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

I ran into the same problem trying to embed a Brightcove player to work in an AIR application. I tried messing around with a sandbox bridge but got stuck, so I instead used the Media API to access the FLV URLs directly (using the special FLVURL token), and just played them through a standard Flex VideoDisplay control.

 

In the future, it would be nice to be able to embed Brightcove players directly in an AIR application. Has anyone seen a good demo or tutorial for creating a sandbox bridge? There's one in Adobe's AIR documentation, but I couldn't get the code to work.

Alex Kieft
DigiNovations/KnowledgeVision
http://www.diginovations.com, http://www.knowledgevision.com
New Member
jstander
Posts: 3
Registered: ‎03-28-2009
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

It looks like the property that needs bridging is the stage reference itself. How is the code within the SWF we are loading access the stage? Does it use its own internal reference to stage? If so, how could we successfully bridge that property?
New Member
Justin_Buser
Posts: 1
Registered: ‎09-12-2011
0 Kudos

Re: SecurityError: Error 3207 in FLEX 3 AIR Application

@digi-alex

No you didn't