Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-06-2012, 08:35 PM   #1
Darksydaz
Senior Member
 
Join Date: Dec 2008
Location: The land that never was
Posts: 113
Send a message via AIM to Darksydaz Send a message via MSN to Darksydaz Send a message via Yahoo to Darksydaz
Default Error #2000 on Sound Streaming

Hello,

I am working on a project and i am attempting to introduce streaming music to reduce load times on the Project. So i searched online and I read about this script for the streaming...

ActionScript Code:
package scripts{     import flash.media.Sound;     import flash.events.Event;     import flash.media.SoundLoaderContext;     import flash.net.URLRequest;     import flash.display.MovieClip;     public class musicStream extends MovieClip {         private var s:Sound = new Sound();         private var req:URLRequest = new URLRequest("music/Soul.mp3");         private var context:SoundLoaderContext = new SoundLoaderContext(8000,true);         public function musicStream() {             try {             s.load(req, context);             } catch (error:SecurityError)  {             trace("Loaded")         }                 s.play();             //s.addEventListener(Event.SOUND_COMPLETE, repeatMusic);         }         private function repeatMusic(e:Event) {             trace("loaded");         }     } }

Now the problem

Code:
SecurityError: Error #2000: No active security context.
This is in my output window, and i can't figure it out to save my life. I tried adding the Try/catch method and still nothing. Eventually i want to add a feature for it to repeat, but i cannot do that since it's calling this security error...

Please and thank you...
Darksydaz is offline   Reply With Quote
Old 08-06-2012, 09:19 PM   #2
thawfeek_yahya
Senior Member
 
thawfeek_yahya's Avatar
 
Join Date: Oct 2009
Location: India
Posts: 145
Send a message via Yahoo to thawfeek_yahya Send a message via Skype™ to thawfeek_yahya
Default

check the url you are trying to load is correct

Quote:
SecurityError: Error #2000: No active security context.
Error occurs in broken urls
thawfeek_yahya is offline   Reply With Quote
Old 08-08-2012, 03:07 PM   #3
Darksydaz
Senior Member
 
Join Date: Dec 2008
Location: The land that never was
Posts: 113
Send a message via AIM to Darksydaz Send a message via MSN to Darksydaz Send a message via Yahoo to Darksydaz
Default

Well it loads and plays. But after about 10 seconds or so i get Error 2000 on that... But is there a way to trace it?
Darksydaz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.