Sunday, March 21, 2010

ActionScript Error #2032: Stream Error. URL: http://localhost/sitename/swf/test.swf

Description:

This is an ActionScript Runtime Error, you will get if you are trying to load a swf file into Flash applications. The reason you will get this error is if you have targeted an swf or any file incorrectly. This can include ASP scripts and other external datasources.

Fix:
Make sure that you are giving the file correctly otherwise you will get Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.at SoundControl_fla::MainTimeline/frame1().

Wrong Code:
stream = new URLStream();
stream.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
stream.load( new URLRequest("http://localhost/sitename/swf/tst.swf"))
Correct Code:
stream = new URLStream();
stream.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
stream.load( new URLRequest("http://localhost/sitename/swf/test.swf"))

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

I hope this will resolve your AS3 stream error.

happy coding...

No comments: