Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Jun 28, 2013

Handling Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error

I've been coding Actionscript 3 for 5 - 6 years. But, somehow I'm still getting this error especially when I'm working with sound and in many times I'm still confuse to solve this error and always searching for the answer. Actually, there isn't one absolute answer, but you can make flash player to show more detailed error and from there you will have the right solution. The solution is simple, add listener for IOErrorEvent :
var s:Sound = new Sound();
s.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
function onIOErrorHandler(e:IOErrorEvent):void {
    trace("Sound Error: " + e.text);
}
In many case you'll see error like this one :
Error #2032: Stream Error. URL: file: file_name 
Simple error but so likely to happen. Hope this help :)

Mar 3, 2011

Set FlashDevelop to Use FlashPlayer 11 and Away3D v4 "Broomstick"

>untuk versi bahasa Indonesia bisa dibaca di : http://bit.ly/fd1xLA<

Intro:
As we know that Adobe just released Flash Player 11 (Incubator Build) and one of the features is Molehill API. Molehill is the codename for the set of 3D GPU accelerated API that will be exposed Actionscript 3. Molehill will rely on DirectX9 in Windows and OpenGL in MacOS and Linux, it’s mean that high-end 3D rendering is built inside Flash Player, ensuring smooth and fast 3D content. This API is very low-level programming, so that people without knowledge of OpenGL/DirectX sometimes will find some difficulty to implement. Fortunately, there’s already many famous flash 3D framework (e.g, Away3D, Flare3D and Alternativa) that support Molehill API. In this post I’ll cover about how to work with Away3D and FlashDevelop IDE.

Previously, I assume that you already have FlashDevelop installed and know how to compile Actionscript project with FD.