Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Error #2044: Unhandled IOErrorEvent (Action Script 3.0)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jul 25, 2008 10:29 am    Post subject: Error #2044: Unhandled IOErrorEvent (Action Script 3.0) Reply with quote

I finally got my mp3 player working but if I upload it to the site it doesn't work. If I save it locally it works. I think Flash remembers where you save it so it's getting confused when I just copy/upload it to the site. So I tried instead making it an absolute path (www.domainname.com/foldername/*.mp3 but then I got this error:

Quote:

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at flashplayer_fla::MainTimeline/frame1()


I'm not really sure whats wrong considering it's not' really telling me what's wrong, but I'm assuming it's this line of code.

Code:

var music:Sound = new Sound(new URLRequest("www.domainname.com/foldername/mp3name.mp3"));


My full code is:

Code:

var music:Sound = new Sound(new URLRequest("www.domainname.com/foldername/mp3name.mp3"));
var sc:SoundChannel;
var IsPlaying:Boolean = false;

stop_btn.addEventListener(MouseEvent.CLICK, stopMusic);

function stopMusic(e:Event):void
{
   sc.stop();
   IsPlaying = false;
}

play_btn.addEventListener(MouseEvent.CLICK, playMusic);

function playMusic(e:Event):void
{
   if (!IsPlaying)
   {
      sc = music.play();
      IsPlaying = true;
   }
}


And I have to finish this today so help would be very helpful.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Fri Jul 25, 2008 10:51 am    Post subject: Reply with quote

Use a try and catch block to make sure it's that line. I'm not sure how finicky flash is about URLs, but you might want to try putting http:// in front of the URL.

http://www.actionscript.org/forums/showthread.php3?t=164936
Try splitting up the declaration and loading of the sound. And should it be a SoundChannel or just Sound?

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jul 25, 2008 11:28 am    Post subject: Reply with quote

HalfPrime wrote:
Use a try and catch block to make sure it's that line. I'm not sure how finicky flash is about URLs, but you might want to try putting http:// in front of the URL.

http://www.actionscript.org/forums/showthread.php3?t=164936
Try splitting up the declaration and loading of the sound. And should it be a SoundChannel or just Sound?


Thanks but I figured it out. It's because I was making it the path relative to the .swf file when really it's the path relative to the .asp file.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites