Skip to main content
Known Participant
March 5, 2009
Question

Sandbox problem with computeSpectrum

  • March 5, 2009
  • 7 replies
  • 567 views
I'm playing with computeSpectrum, and I get the following error. I'm running everything locally, so I'm confused as to why this even shows up. The problem is also somewhat random. The error doesn't come up immediately when I test the swf, it takes about 30 seconds to show up, but sometimes shows up before then. I tried adding Security.allowDomain("*"); to my constructor function, but the error still came up. It also appears to only show up when testing the movie in Flash, and not when viewing the SWF in the desktop Flash Player. How can I get around this? I have no need for security with this project so I'm OK with allowing everything....only if it could actually work.
This topic has been closed for replies.

7 replies

kglad
Community Expert
Community Expert
March 6, 2009
i can't determine exactly what you're doing that causing your sound file to load from one sandbox into the another one when using the flash test environment. you can probably use the flash security settings panel to remove the problem but that still won't explain the sandbox issue.
Known Participant
March 6, 2009
I just tested the swf online, and as a projector file locally. Both worked fine. This is confusing, why would it only cause a problem inside of Flash? Usually Flash is the one spot that anything goes.
kglad
Community Expert
Community Expert
March 5, 2009
it's a fp 10 issue. adobe is becoming more and more strict about potential security issues with each flash player release and applications that worked at one time are breaking with newer fp releases.

if you're convinced it's a security sandbox issue, there's no need to test online.

so, this issue is resolved?
Known Participant
March 5, 2009
I'm not sure that would tell me much, because like I said in my original post I don't get the problem when running the SWF through the desktop Flash Player, I only get it when testing in flash (ctrl/command + enter). Is it still worth testing online?

Also, is this sandbox security for computeSpectrum new to CS4? I didn't have this problem in CS3.
kglad
Community Expert
Community Expert
March 5, 2009
put your swf and mp3 online in the same domain and retest to see if there's a sandbox issue.
Known Participant
March 5, 2009
That's strange, because everything is local. This is how I'm loading the song:
sound = new Sound(new URLRequest("clockwork.mp3"));

that mp3 is in the same folder as the swf and everything else. I did take this mp3 from my iTunes library, so it looks like it added some meta data to the file, but it never had any DRM on it. I don't see how it could be calling to the Internet or anything like that...any ideas?
kglad
Community Expert
Community Expert
March 5, 2009
that's usually caused by a sound file that's being loading from outside the local sandbox.