02.08.08
ActionScript Error #2032
ActionScript Error #2032: Stream Error. URL: /Sound/Amazing.mp3
Description:
This is an ActionScript Runtime Error that you will get if you purposefully trap errors (which I highly recommend you do) while trying to load a file into Flash/Flex. One very simple reason you will get this error is if you have targeted an mp3 or any file incorrectly. This can include php scripts and other external datasources.
Fix:
Make sure that you are targeting the file correctly. In the 'Bad Code' example below I am missing just one letter. Without trapping the errors like I do you will also get AS3 Error #2044: Unhandled IOError Event
Bad Code:
private var snd:Sound = new Sound();
snd.load(new URLRequest("Amzing.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onSoundIOError, false, 0, true);function onSoundIOError (e:IOErrorEvent)
{
trace("An Error Occured and it looked like this.", e.text);
}
snd.play();
Good Code:
private var snd:Sound = new Sound();
snd.load(new URLRequest("Amazing.mp3"));
snd.addEventListener(IOErrorEvent.IO_ERROR, onSoundIOError, false, 0, true);function onSoundIOError (e:IOErrorEvent)
{
trace("An Error Occured and it looked like this.", e.text);
}
snd.play();
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at SoundControl_fla::MainTimeline/frame1()
Related ActionScript Errors - AS3 Error 2044 Unhandled IOError Event
This ActionScript Error is a quick one. I hope this helps you solve it.
As always Happy Flashing
Ryan K said,
February 24, 2008 at 7:42 pm
what about when you only get the Error (below) when I upload my files to the internet. I have one FLA file and inside the FLA I have a request to a .xml doc to load in my images. The images appear when I test the file in FLash, and when I test my published html page. But as soon as I upload the files to the internet I get the error below. The flash file runs correctly but the images do not appear.
my page http://www.ii-designs.com/maybe then click on the works tab and where the bottom gray lines is where the images are suppose to be
I get this error
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///private/var/tmp/folders.501/TemporaryItems/AdapterTemp/Server_1/public_html/maybe/data/photoImages.xml at _photoImages/frame1()
Curtis J. Morley said,
February 28, 2008 at 6:16 am
Ryan,
I went to your site and saw what you are talking about. I actually get AS3 Error # 2044 and then AS3 text=Error #2035. This is most likely a problem with your targeting. Make sure that everything is in the exact same situation that it is on your local machine. If you need to change the directory structure then double check all of your references. The last error you posted seems to think that what you are referencing is on a file system rather than on the web. Check your paths and make sure that everything is referenced either with “http://” or locally with a relative path.
Thanks,
Curtis J. Morley
Scott said,
March 28, 2008 at 2:21 pm
I’ve been having a nightmare trying to make this little project work. I’m trying to use a component called “Accordion Tree Menu V3″ located here: http://www.jumpeyecomponents.com/Flash-Components/Flash-Menus/Accordion-Tree-Menu-V3-36/
http://www3.meijer.com/petadvisor/petadvisor.html
This will be viewable here as of Sunday 3/30/2008 at 12:00am EST:
http://www.meijer.com/catalog/section.jsp?categoryId=222&N=3129&Ns=PRODUCT_HAS_IMAGE|1||PRODUCT_SALE_PRICE|1
With this menu I’m trying to have the xml file that drives the Tree Menu to load an external text file, render it as HTML and apply CSS styling all while rendering in an easing scrolling text window. I get this error message in the Output window everytime I test the movie in flash. Only about 3 people (out of 20 that have tested it so far have recieved this same error message when the page loads for them. We’ve tested IE6, IE7 FireFox 2, FireFox3 Beta 2, and I think FireFox 3 Beta 4. Again only 3 people have seen this error message. Any input or helpu would be OUTSTANDING and GREATLY APPRECIATED!
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Documents%20and%20Settings/1889718/Desktop/Pet%20Advisor/
at Copyofpetadvisor_fla::MainTimeline/frame1()
Caleb Griffin said,
April 19, 2008 at 9:48 am
I have the simplest code in the world. It’s a play button and a stop button, which play and stop a song on the Media page. The code works but when I leave the page (staying on the site) in Firefox, I get the following …
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at player_fla::MainTimeline/player_fla::frame1()
As I said, the buttons work in all browsers. The error pops up only in Firefox . Is there a way to use your trick to suppress this error or to fix it? I don’t know ActionScript at all. I got the code from a tutorial. I’m willing to pay for help if this requires a difficult solution.
Here is the code, which works …
var music:Sound = new Sound(new URLRequest(”music/01ILikeGuys.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;
}
}
sankar.G said,
July 23, 2008 at 12:23 pm
i am also have same problem just i read the text from a text file in local but i cant able to done that
b1_btn.addEventListener(MouseEvent.CLICK,g);
function g(e1:Event)
{
var textRequest:URLRequest = new URLRequest(”e:\sample.txt”);
var textLoader:URLLoader = new URLLoader();
textLoader.load(textRequest);
textLoader.addEventListener(Event.COMPLETE,B);
}
function B(ev:Event)
{
t1_txt.text=ev.target.data;
}
i got this error message
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///e:sample.txt
if any one know the answer send it to me please
george said,
August 26, 2008 at 1:00 pm
i was getting this error. i was trying to get httpservice to work.
i was proxying data from a database with php trying to create xml for AS3 to use. the php file was not producing anything because i had a new install of php and mysql. mysql was not enabled in php (couldn’t see anything about mysql with phpinfo();)
resolution: had to make changes to the installation of php to add support for the mysql extension.
Horst said,
September 18, 2008 at 12:14 pm
Hi
i get the same (#2044) error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Documents%20and%20Settings/Bryony/Desktop/Horst%27s%20Folder/Central%20Europe%20v2.5/en/Central Europe v2_en.xml
at fl.lang::Locale$/::loadXML()
at fl.lang::Locale$/initialize()
at PageHandler$iinit()
and i understand that this is as a result of my FLA not being able to find the file “en/Central Europe v2_en.xml” but nowhere in my code do i make that request. This error started happening when I added a dynamic text object to FLA app. I’m guessing a need this file for the text rendering but the app runs fine without it so i don’t know whats going on!
any help would be greatly appreciated!
adam said,
October 7, 2008 at 9:49 am
I’m getting the error in this code…i suspect that when i push the buttons from the for loop into the array that the correct name isn’t being passed somehow…i want it to pass “i”, which would be 0, 1, 2, 3, 4 etc. so that I can reference the clicked button to display the correct image in slideLoader.load….specifically this is what i’m trying to get to be a number that corresponds with the correct image… slideBtns.indexOf(e.target.name)
for (var i:int = 0; i < intSlideCount; i++) {
var newThumb = this.addChild(new Thumb());
newThumb.name = i;
newThumb.x = X + (SPACE * i);
newThumb.y = Y;
newThumb.theNum.text = i + 1;
slideBtns.push(newThumb);
newThumb.addEventListener(MouseEvent.CLICK, onClick);
}
}
private function onClick(e:MouseEvent):void {
if(slideTimer.running) {
slideTimer.stop();
}
slideLoader = new Loader();
slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
slideLoader.load(new URLRequest(xmlSlideshow..image[slideBtns.indexOf(e.target.name)].@src));
}