Error #2032

Software: Other

O_MEGA, Newbie
Posted: 09 September 2015 09:53 AM   Total Posts: 26

Dear readers , How can I fix “Error #2032: Stream Error. ”

I created an AIR project in FlashDevelop then I followed this “…er/tutorial-01/” tutorial’s instructions , the problem is that when I run my program FlashDevelop shoots an error !

I believe there is something wrong with this line of my code :

var Loader:Loader3D = new Loader3D();
Loader.load(new URLRequest(”../embeds/ebihead.AWD”));

but I really don’t know whats wrong with it

Do U have any Idea ?

would U give me hints so that I can solve my problem?



Fabrice Closier, Administrator
Posted: 09 September 2015 10:31 AM   Total Posts: 1265   [ # 1 ]

Make sure that the dependency is exactly located at this url relative to your swf file.


O_MEGA, Newbie
Posted: 09 September 2015 10:52 AM   Total Posts: 26   [ # 2 ]

It is really wired , It is exactly located in the mentioned url , I’ve also checked it’s spelling several times, there is no misspelling issue either.

What do U mean relative to swf file ? could U explain it more , cuz I guess FlashDevelop creates it after U press the run button not before that .

Dear Fabrice , I have to mention that I created the same project as an AS3 project (not an AIR mobile one) in FlashDevelop And it works like a Charm! no Error!


Fabrice Closier, Administrator
Posted: 09 September 2015 11:10 AM   Total Posts: 1265   [ # 3 ]

AIR works differently. in a way an app has an application directory, so if you provide the model, you have to make sure that the app directory actually holds this url (check your compile args).

short story to test: in your air app, make a file

var myModel:File = new File(theurl);
then check if valid
if(myModel.exists)—> then you know its correct
look for File on adobe doc


O_MEGA, Newbie
Posted: 12 September 2015 08:37 PM   Total Posts: 26   [ # 4 ]

Dear Fabrice It worked tanks for your help grin

Thanks for your helpful suggestion , This is how I changed my code :

  var myModel:File = new File(“C:\\Users\\NIMA\\Desktop\\Project\\Cube\\AwayTest\\AIRAWD4\\embeds\\ebihead.awd”);
  if (myModel.exists)
  Loader.load(new URLRequest(“C:\\Users\\NIMA\\Desktop\\Project\\Cube\\AwayTest\\AIRAWD4\\embeds\\ebihead.awd”));

Yet I am facing another Problem
I figured out it runs correctly when I use absolute address of my AWD file (C:\\Users\\NIMA\\Desktop\\Project\\Cube\\AwayTest\\AIRAWD4\\embeds\\ebihead.awd) , how can I deal with this problem, So, that I can run my app on my device?(How can I get rid of absolute address ? ). What is your suggestion?


Fabrice Closier, Administrator
Posted: 14 September 2015 09:10 AM   Total Posts: 1265   [ # 5 ]

embed files to load with app when packaging. then use app own url to compose full url on different machines.


O_MEGA, Newbie
Posted: 14 September 2015 09:19 PM   Total Posts: 26   [ # 6 ]

Tank You Fabrice grin My problem is solved .



Away3D Forum

Member Login