Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
FloPMT
Posts: 160
Registered: ‎03-12-2011
My Device: PlayBook♥
Accepted Solution

BlackBerry 10 and Flash: Opening a URL

Hi guys,

 

I'm working on an app for BB10 and PlayBook right now.

It's pretty much done and we'd be ready to release. But there's that 1 error we have to fix:

 

The html5 app has a flash app, embedded like this:

 

<embed src="game.swf" id="frame" allowfullscreen="false"></embed>

 

The problem is probably a permission problem:

This file, offline, won't open external URLs. Taking a .swf that's online opens the URLs just right.

I guess it's the same as in Chrome: as long as the flash file is local, I get a permission error:

 

Adobe Flash has stopped a possibly insecure action:

The following local file on your computer:

/Users/florianerlemann/Dropbox/Public/wyb/z10/game.swf

tried to communicate with this file:

/Users/florianerlemann/Dropbox/Public/wyb/z10/index.html

 

 

In chrome you can change the settings so that it works.

Is there a way for me to get this working?


Any answer is appreciated!! 

Flo

----------
Please give free Likes if I helped you out! :smileyhappy:
Developer
FloPMT
Posts: 160
Registered: ‎03-12-2011
My Device: PlayBook♥

Re: BlackBerry 10 and Flash: Opening a URL

I found the solution myself for BB10. But it doesn't work for PlayBook:

It's an Adobe security problem that doesn't allow the .swf to access the network. That can be solved by going into publish settings in Flash Pro and change the option "only access local files" to "only access network files".

Hope it helps the community!
Flo
----------
Please give free Likes if I helped you out! :smileyhappy: