Skip to main content
Known Participant
May 10, 2008
Question

Swf isn't playing online as on computer

  • May 10, 2008
  • 11 replies
  • 1425 views
Hi! Here's the deal. I am working on player for my band. On computer everything looks great, when I a song to play i loads and starts playing + visual spectrum analyzer starts "working". Everything great so far. The problems occur when I upload exported file (swf) on imageshack.us. The progress bar starts to glitch (preloader works great but visuali it starts to glitch), and that spectrum analyzer doesn''t even play. Does someone have the same problems (upload different from exported)?

Here's the player
PLAYER
This topic has been closed for replies.

11 replies

kglad
Community Expert
Community Expert
May 11, 2008
you're welcome.
Participant
December 1, 2009

hi kglad and everyone.

i have the same problem.

i've wrote a player and put it on my web site.

i'm streaming videos from youtube and my player have visualisation code using computespectrum.

when i'm running the page from localhost (my computer) it works perfectly, when i run from my website i get:

SecurityError: Error #2122: Security sandbox violation: SoundMixer.computeSpectrum: http://******.swf cannot access http://v3.lscache7.c.youtube.com/videoplayback..... A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
at flash.media::SoundMixer$/computeSpectrum()

obviously i can't edit crossdomain.xml on youtube's domain.

but it's frustrating to see that it works only from my computer, how come flash doesn't check youtube's crossdomain.xml when running from my computer?

does anyone know of a way to work around this?

Thanks!

Participant
June 1, 2010

I have the same issue (only in firefox NOT in IE lol)

http://forums.adobe.com/thread/650860

That  has some discussion about the issue.

Did you manage to  get yours working ?

CotealiAuthor
Known Participant
May 11, 2008
It didn't work. Nevermind thanks for your help. I guess I won't have visual eq
kglad
Community Expert
Community Expert
May 10, 2008
you have a time.start() line in your code. remove that and put it in a function that executes when your sound starts to open.
CotealiAuthor
Known Participant
May 10, 2008
How do you mean time.start? Please elaborate

Thanks for your time
kglad
Community Expert
Community Expert
May 10, 2008
no, you don't need a license. do you control the domain www.fileden.com?

if yes, you just need to upload a policy file to that server that allows imageshack to access fileden.com files.

on the other hand, it already appears you're loading those files so maybe this is a synchronous event issue. try adding time.start() to a function that executes when your sound instance opens.
CotealiAuthor
Known Participant
May 10, 2008
So what's the solution? License?


Thanks for answering

Edit:

I uploaded another swf (spectrum analyzer)
Music is playing but nothing appears on screen..

http://img103.imageshack.us/my.php?image=soundvisualizer2ek3.swf SWF">SWF

error is:

SecurityError: Error #2122: Security sandbox violation: SoundMixer.computeSpectrum: http://coteali.100webspace.net/player_s_pjesmama_as3+preloader_final.swf cannot access http://www.fileden.com/files/2006/11/26/423543/ACC_player/ACC%20-%20Intro.mp3. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
at flash.media::SoundMixer$/computeSpectrum()
at player_s_pjesmama_as3_fla::player2_6/timerHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
kglad
Community Expert
Community Expert
May 10, 2008
it's not going to be a coding problem if the code works locally and not when online. it's either going to be an asynchronous event issue (ie, something that takes appreciable time to load when online and not when run locally) and a security issue. we know you have a security issue.
kglad
Community Expert
Community Expert
May 10, 2008
you'll not longer have a security sandbox violation. whether there are any other problems that will appear after that problem disappears i, of course, am unable to say.
CotealiAuthor
Known Participant
May 10, 2008
The problem is my spectrum analyzer isn't working. Everything else does. Don't know what else to do....Is something in it's code capable of making such a problem

maybe it's a problem with byte array....

CotealiAuthor
Known Participant
May 10, 2008
thanks for your answer!

Can you be more specific? Are you saying that if I upload mp3 on host server that holds my web site, problem of spectrum analyzer would dissapear?
kglad
Community Expert
Community Expert
May 10, 2008
you need a policy file on www.fileden.com to allow loading of your mp3s by imageshack.