Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-12-2012 07:21 AM
I'm trying to use the JS sound library SoundManager2 which uses flash (or html audio) for the actual audio playback. JS I know, but I'm not a flash programmer I'm afraid. Unfortunetly I don't have an actual PB at the moment and the simulator doesn't seem to like the flash audio at all so I cannot test this aspect, nor get any console output from the simulator.
The SoundManager2 library uses a single swf file and it adds the html element itselfs when the page loads. The injected div looks as such:
<div id="sm2-container" class="movieContainer " style="z-index: 10000; position: absolute; width: 6px; height: 6px; top: -9999px; left: -9999px; "> <embed name="sm2movie" id="sm2movie" src="./swf/soundmanager2_flash9.swf" quality="high" allowscriptaccess="always" bgcolor="#ffffff" pluginspage="http://www.macromedia.com/go/getflashplayer" title="JS/Flash audio component (SoundManager 2)" type="application/x- shockwave-flash" haspriority="true"> </div>
The behaviour described to me when my App was rejected is the behaviour I observe when the app is run locally on a desktop browser *without* the directory it is run from being added as an local exception for flash's local execution security policy. SoundManager will output debug messages to the console, including a warning about security problems when flash, but as I said I can't test this on the simulator at present.
Could it be the use of <embed> instead of <object>? I can provide a very simple SoundManager example unpackaged/packaged if anyone would be kind enough to run it on an actual device? It's a really simple library to use.
04-17-2012 08:14 AM
Me and lcocea have been working together to test the issue. The SoundManager library's .swf does appear to not be allowed to execute locally by flash, contradicting the expected behaviour.
Is the local security execution exception for packaged apps only applied to <object> elements and not <embed>?
04-17-2012 10:27 AM
04-17-2012 11:10 AM
04-17-2012 11:25 AM
yup it works as a bar file (see http://forums.crackberry.com/attachments/playbook-