Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Error #2044 Unhandled IoError:. Text=Error #2032: Stream Error. URL:



Hey EveryoneCan someone explain this to me. I am using Go Live CS2 to upload my files and I 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 www.ii-designs.com/maybe then click on the works tab and where the bottom gray lines is where the images are suppose to beI get this errorError #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()please help this is driving me crazyThanks Ryan



Adobe > ActionScript 3
Posted on: 02/24/2008 11:58:56 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error. Cannot Be Caught
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/LocalWorkspace/Simulation%20Platform/sim/assets/conversations/14/Maria/NPC_104.MRK


Hi all, I'm getting this error, and I damn well know why. Its because I'm trying to load a file that doesn't exist. But the thing is, I'm wrapping the code in a try catch, and I'm still getting the error. Also, I'm being told that the error is on this line:


ActionScript Code:
var loader:URLLoader = new URLLoader();

I need to do it this way because i know that some of the files I'm trying to load do not yet exist.

But what could possibly be wrong with this line? And either way, it should be caught by the try, catch. So, whats the problem?



ActionScript Code:
try {
        var loader:URLLoader = new URLLoader();
        loader.addEventListener(Event.COMPLETE, completeHandler);
       
            loader.load(new URLRequest(_filename));
        } catch (error:Error) {
            trace("DATA: loadAnimData(): Error loading lip synch data.");
        }

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
I'm trying to open a new centred window with a javascript in AS3, the code is working in the browser but when tested in flash I got this error:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: javascript:void(newWin=window.open('http://www.actionscript.org','newWindow','width=500,heigh t=500,left=590,top=262.5'))"

This is the code that I'm using.

Code:
var resX:int = flash.system.Capabilities.screenResolutionX
var resY:int = flash.system.Capabilities.screenResolutionY

var winW:int = 500
var winH:int = 500

var winX:int = (resX/2) - (winW/2)
var winY:int = (resY/2) - (winY/2)

var jsCode:String = "javascript:void(newWin=window.open('http://www.actionscript.org'," + "'newWindow','width=" +winW + ",height=" + winH +"," +"left=" + winX +",top=" + (winY-winY/2) + "'))";


var urlLoader:URLLoader = new URLLoader()
urlLoader.load(new URLRequest(jsCode))
What is wrong becouse if you test a compiled .swf with this code in the browser a centred window opens.???

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.
Hi all I really need help. What I understand from this error is that Flash can't find the file which is a bit of confusing, because if I copy the code to other file it works. Is there something with that I have 2 urloaders in the code I load 2 different type of files one txt and one xml? This is the structure of my xml file
Code:
<xml>
<name>Some Name</name>
<address>Some Address</address>
<option>Some Option</option>
<other>Some Other</other>
<bank>Some Bank</bank>
<iban>12300 0000 0000 0000 0000 00</iban>
<bic>25500000</bic>
</xml>
Please help

Error #2044: Unhandled IoError:. Text=Error #2032: Stream Error.?
I get this message "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error." when I try to get parameters from a .asmx doc that looks like this:

.net:

flUser.Movie = string.Format(@"{3}?UID={0}&strUserName={1}&strWsUrl......


In as3:

var oParam:Object = LoaderInfo(root.loaderInfo).parameters;
strUserID = oParam.UID;

I get the parameters written into a textfield but it doesn't work? Anyone know what's wrong? Could it have something to do with Sandbox issue? Do a miss an "import.display"?

Error Message ? Error #2044: Unhandled IoError:. Text=Error #2032:
Can anyone give me any advise on why in safari 3 and firefox i am getting this error:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.nayomusic.com/music/1.mp3

URL: http://www.nayomusic.com/home

The error occurs when a any link is clicked on from within homepage

If anyone has got any idea why this error occurring then this would be much appreciated

Thanks

Jon

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error.
Hi all,

I created a simple streaming mp3 player and it works perfectly fine locally, but when i upload it i get the below error. I only get this error if i go to refresh or leave the page. The flash itself loads but does not function.

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at player.audio.actions::SoundLoader()
at player.audio.actions::Mp3Player()
at main_fla::MainTimeline/frame1()

The code that includes the url is below:


Code:
var songs:Array = ["believe.mp3", "newSong.mp3"];
the swf file is saved in the same directory as the mp3 files but i am still getting the stream error.

I have tried changing the path to a full url with no luck.

What is strange is that if i load the mp3 directly via the URL i have uploaded it to, and then go back to the player, it works. but only in firefox and IE. safari for windows does not work either way.

the class i used to load the url is below:


Code:
public function SoundLoader(songs:Array, player:Mp3Player)
{
songList = songs;
musicPlayer = player;
soundReq = new URLRequest(songList[songIndex]);
loader.load(soundReq);
loader.addEventListener(Event.COMPLETE, songLoaded);


}

Does anyone have any ideas? It's driving me nuts!

Much appreciated!

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
This is my code. (Even though this error occours, it doesnt affect my file in anyway, except when you look at it on a website a little error comes up (click it away) and everything is still exactly fine)

ANyway its annoying me now, so iw ont to get rid of it:

Heres my code:


ActionScript Code:
var s:Sound = new Sound(new URLRequest("Galactik_Football.mp3"));
s.play(0, 1000);

var ba:ByteArray = new ByteArray();

addEventListener(Event.ENTER_FRAME, loop);

var bmd:BitmapData = new BitmapData(700, 400, true, 0x000000);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);

var sp:Sprite = new Sprite();
addChild(sp);

var blur:BlurFilter = new BlurFilter(10,10,3);

var colorMatrix:ColorMatrixFilter = new ColorMatrixFilter([
    1, 0, 0, 0, 0,
     0, 1, 0, 0, 0,
     0, 0, 2, 0, 0,
     0, 0, 0, 0.99, 0
]);

function loop(e:Event):void
{
    sp.graphics.clear();
    sp.graphics.lineStyle(2, 0xFFFFFF);
    sp.graphics.moveTo(-1, 150);
    SoundMixer.computeSpectrum(ba);
    for(var i:uint=0; i<256; i++)
    {
        var num:Number = -ba.readFloat()*200 + 150;
        sp.graphics.lineTo(i*2.75, num*1.3);
    }
    bmd.draw(sp);
    bmd.applyFilter(bmd,bmd.rect,new Point(),blur);
    bmd.applyFilter(bmd,bmd.rect,new Point(),colorMatrix);
    bmd.scroll(3,0);
}

Error #2044: Unhandled IOErrorEvent:. Text=Error #2032: Stream Error
Hi, i've written out some code that doesn't seem to want to work and im not too sure why. Basically i've imported a sound file in to flash and i have two buttons to play and pause. I've set up a custom class thing in the linkage properties of the sound file.


ActionScript Code:
var audio:Sound = new Sound(new URLRequest("Phil.mp3"));
var audioChannel:SoundChannel = audio.play();

pauseBtn.addEventListener(MouseEvent.MOUSE_UP, pauseSound);
playBtn.addEventListener(MouseEvent.MOUSE_UP, playSound);

function pauseSound(e:MouseEvent):void
{
    audioChannel.stop();
}

function playSound(e:MouseEvent):void
{
    audioChannel = audio.play(audioChannel.position);
}

When i try and run the code, it comes up with this message

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

if anyone can give any assistance as to why this doesn't work - it'd be super.

Error #2044: IoError / Text=Error #2032 When Loading Xml
Hi guys,

I am still experimenting with the whole concept of use of packages. I did Victors tut and now wanted to apply the same concept of loading button code externally to loading an external xml. But the output window greeted me with this error.

Error #2044: ioError unverarbeitet. text=Error #2032: Stream-Fehler. URL: file:///C|/Projects/GettingStartedWithAS3/Kopie%20von%20Dev%5FDevelop/testxml.xml

the structure is:
// a main.swf has the movieclip Loadxml in its library with com.company.xmltxt.Loadxml as a base class
//the main.swf loads the document class "Documentclass" in the external .as file with the same name
//which imports com.company.xmltxt.*
//the Loadxml.as file is accessed through the directory xmltxt.
//it loads its function Loadxml(), which I can tell from the trace statement but when trying to access the xml the error occurs.


I checked for similar cases and solutions...to no avail. Now I try as a last resort to upload the files here.

Error #2044: Unhandled IoError:. Text=Error #2035: URL Not Found. URL:
The error i am getting is:
Quote:




Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///C|/flashing/photos/




Im new at flash and as3 i dont know if this is severe or not. it seems to be happening when loading the XML data. What is making me mad is that it says it cant find the url but everything loads perfectly. The pictures load and fade in and out like supposed to.


file structure is: C:(folder)flashingbanner.fla
banner.swf
bar.xml
(folder)photosbar1.gif
bar2.gif
bar3.gif



ANY ideas? thanks,


PHP Code:



import fl.transitions.Tween;import fl.transitions.easing.*;var xmlLoader:URLLoader = new URLLoader();var barURL:URLRequest = new URLRequest("bar.xml");xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);xmlLoader.load(barURL); var barXML:XML = new XML();barXML.ignoreWhitespace = true;function xmlLoaded(evt:Event):void { barXML = XML(xmlLoader.data);  ldImage.source = "photos/"+barXML.bar[0].photo;}var dropF:DropShadowFilter = new DropShadowFilter;dropF.blurX = 8;dropF.blurY = 8;dropF.alpha = 1;dropF.distance = 2;dropF.strength = .75;dropF.color = 0xFFAF00;bt1.addEventListener(MouseEvent.CLICK, slideOne);bt2.addEventListener(MouseEvent.CLICK, slideTwo);bt3.addEventListener(MouseEvent.CLICK, slideThree);function slideOne(Event:MouseEvent):void { trace("button clicked 1"); ldImage.source = "photos/"+barXML.bar[0].photo; //bt1.filters = [dropF];}function slideTwo(Event:MouseEvent):void { trace("button clicked 2"); ldImage.source = "photos/"+barXML.bar[1].photo;}function slideThree(Event:MouseEvent):void { trace("button clicked 3"); ldImage.source = "photos/"+barXML.bar[2].photo;}/* Creates Timer and Picture Index. Timer is in milliseconds. Flash loads picture 0 so we will tell timer to load picture 1 */var fadeInTimer:Timer = new Timer(5000);var fadeOutTimer1:Timer = new Timer(4000,1);var fadeOutTimer2:Timer = new Timer(5000);var picIndex:int = 1;var timerSelecter:int = 1; //Start Rotator coding// Listens to timer and starts function when timer hits amount pickedfadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);fadeOutTimer1.addEventListener(TimerEvent.TIMER, fadeOut);fadeOutTimer2.addEventListener(TimerEvent.TIMER, fadeOut);// Tells Flash what to dofunction fadeIn(event:TimerEvent):void { ldImage.source = "photos/"+barXML.bar[picIndex].photo; var textFade = new Tween(ldImage,"alpha",None.easeNone,.5,1,1,true);//fade in picIndex ++; //set it to zero when it reaches your maximum index which currently is 3 if (picIndex == 3) {  picIndex =0; }} function fadeOut(event:TimerEvent):void { var textFade = new Tween(ldImage, "alpha",None.easeNone,1,.5,1,true);//fades out if (timerSelecter == 1) {  trace("timer 1");  textFade;  fadeOutTimer2.start(); } else {  trace("timer 2");  textFade; } timerSelecter ++;}// Start the timerfadeInTimer.start();fadeOutTimer1.start();//Rotation End //Below will navigate to a url when (ldImage) is clicked/*ldImage.addEventListener(MouseEvent.CLICK, changeUrl);function changeUrl(event:MouseEvent):void {var request:URLRequest = new URLRequest("http://www.hybridlifts.com/new/index.html");navigateToURL(request,"_self");}*/ 

Why "Error #2044: Unhandled IoError:. Text=Error #2035: URL Not Found." Appears
hi to all
i am using AS3 and trying to work on a image_gallery application using AS3 and xml. every things works really fine but the only problem is the images are not loading to UILoaders and this error appears:

Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///D|/miniProjects/photo%5Fgallery/pics/img_2.jpeg

there is no problem with image url i check it carefully img_i.jpeg (where i is 1,2,3 and so on 10 images are there with names img_1.jpeg, img_2.jpeg, img_3.jpeg and so on) are present at "D:/miniProjects/photo_gallery/pics/"

what can be the problem?

any positive responce in this regard will be highly appreaciated.

regards
maani

Error #2044: Unhandled IOErrorEvent:. Text=Error #2038: File I/O Error.
Gday guys,

im making a lil flex app to upload images for guys on my forum.. problem is, it works fine in opera and firefox im told now also, but in internet explorer.. im getting this error..

"Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at uploadd$iinit()
at _uploadd_mx_managers_SystemManager/create()
at mx.managers::SystemManager/::initializeTopLevelWindow()
at mx.managers::SystemManager/::docFrameHandler()"

this is my code? its str8 off the adobe site itself. from what i gather, its the way the scipt is handling the error itself? its terminating itself bcos of it.?


Code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.events.DataEvent;


public var fileRef:FileReference = new FileReference();

public function upload():void {
// listen for the file selected event
// listen for the upload complete event
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA , uploadCompleteHandler);


// browse for the file to upload
// when user selects a file the select handler is called
try {
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
var allTypes:Array = new Array(imageTypes);
var success:Boolean = fileRef.browse(allTypes);

}
catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);

}



}

// when a file is selected you upload the file to the upload script on the server
public function selectHandler(event:Event):void {
var request:URLRequest = new URLRequest("upload.php")
try {
// upload file
fileRef.upload(request);
textarea1.text = "uploading " + fileRef.name + "...";
}

catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);

}



}

// dispatched when file has been given to the server script. does not receive a response from the server
public function completeHandler(event:Event):void {
trace("file uploaded complete");


}

// dispatched when file has been uploaded to the server script and a response is returned from the server
// event.data contains the response returned by your server script
public function uploadCompleteHandler(event:DataEvent):void {
trace("uploaded... response from server:
" + String(event.data));
textarea1.text += event.data as String;
}

]]>
</mx:Script>
Also id like to be able to directly have the link traced into the message box itself, so people dont have to copy n paste.. is there an easy solution in the php code?

Heres the link, the upload is on the left of the main reply box.. heres a direct link to the forum, use

User: Ryann
Pass: temp

http://www.weride.net/ThrashedMinis/phpBB2/

, and press a reply or new topic sumwere to view it.. thanks for anyone taking a look..

Ryann.

Error #2044: Unhandled IoError
why does this code throw the runtime error:
"Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/NO/xyz.css"

note that xyz.css does *not* exist. But I have surrounded the load() call with a try/catch

I've also tried--> catch (ioe:Error) {

and even--> catch (ioe:Object) {

What does it want? Thanks.







Attach Code

var req:URLRequest = new URLRequest("xyz.css");
var loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, cssLoaded);
try {
loader.load(req);
} catch (ioe:IOError) {
trace(ioe);
}

[CS3] Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
hi,

i have a parent swf with images that when clicked loads another swf. the problems is that the child swf is not loading the images that correspond to the scrolling nav neither loads the other swfs. now, when i try the child alond it has no problem loading the images or the swfs.

the child swf is inside a folder called, "swfIndex"- inside such folder is the child and the folders holding the images and the swf for the child. bellow is the code.

parent swf load code:

PHP Code:



var image1URL:String = "swfIndex/" + basename1 + id1 + ".swf"var image1Ldr:Loader = new Loader (); var image1URLReq:URLRequest = new URLRequest ( thumb1URL );image1Ldr.load ( image1URLReq );image1Ldr.contentLoaderInfo.addEventListener ( Event.COMPLETE, image1Loader );function image1Loader ( event:Event ):void{    load1Target.addChild ( image1Ldr.content );        var image1Ldr2:Loader = new Loader ();    var image1URLReq:URLRequest = new URLRequest ( thumb1URL );    image1Ldr2.load ( image1URLReq );    image1Ldr2.contentLoaderInfo.addEventListener ( Event.COMPLETE, image1Loader2 );    function image1Loader2 ( event:Event ):void    {        load1Target2.addChild ( image1Ldr2.content );        }}




child swf load code:

PHP Code:



var imageURL:String = "images/" + basename + id + ".swf"var imageLdr:Loader = new Loader (); var imageURLReq:URLRequest = new URLRequest ( thumbURL );imageLdr.load ( imageURLReq );imageLdr.contentLoaderInfo.addEventListener ( Event.COMPLETE, imageLoader );function imageLoader ( event:Event ):void{    loadTarget.addChild ( imageLdr.content );        var imageLdr2:Loader = new Loader ();     var imageURLReq:URLRequest = new URLRequest ( thumbURL );    imageLdr2.load ( imageURLReq );    imageLdr2.contentLoaderInfo.addEventListener ( Event.COMPLETE, imageLoader2 );    function imageLoader2 ( event:Event ):void    {        loadTarget2.addChild ( imageLdr2.content );        }}

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
hi guys,
i am trying to import into 2 pages website 2 swift files (one for each of the pages) but I am getting the following error message

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

The two swift are in the same directory as the parent.
I imported the directory into my .as file and the Url are spelled correctly.
Do you know why do i get the message?
thanks for your help

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
Hi everyone,

I have a gallery and it works perfectly fine when I run the gallery.swf. The problem happens when I run the index.swf which is where I'm loading my gallery.

It gives me the following error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

Here's some of the code:


Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("gallery.swf");

loader.load(request);
addChild(loader);

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
I am getting this error i am trying to load images into an xml document here i my code


ActionScript Code:
//Load the XML on this Frame use the button provided

stop();

pb_mc.bar.scaleX = 0;


var files:String = ' images/'

var img:Loader;

var xml:XML = <Pictures>
                  <main_img>
                                     <description>'This is a really cool I mac '</description>
                                           <image>images/black.jpg</image>
                            </main_img>
                           
                                <main_img>
                            <description>'This is a really cool Sony HD TV '</description>
                            <image>images/Sony.jpg</image>
                                </main_img>
                               
                               
                                <main_img>
                            <description>'This is a really cool I pod touch '</description>
                            <image>images/Ipod.jpg</image>
                                </main_img>
                               
                               
                                <main_img>
                            <description>'This is a really cool Playstation 3 '</description>
                            <image>images/Ps3.jpg</image>
                                </main_img>
                               
                        </Pictures>


ActionScript Code:
img = new Loader();
                            img.load(new URLRequest(files))
                            addChild(img);
                       
                       
                         for (var i:Number = 0; i < xml.main_img.length(); i ++){
                         trace("Image:"+xml.main_img.image[i]);
               
                         trace('---------')
                        
                          
                        
                         xml_txt.htmlText +="<b>image</b>"+xml.main_img.description.image[i];

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found
Hi,
When I run my html locally theres no problem. But when I run it online I keep getting this error.
I'm aware that the most probable thing is that my image folder path is wrong, but I've checked and double checked and it is correct.

I'm pulling my hair with this one. Should be a simple thing and I can't make it right :X

I'm loading the images path from a XML with GreenSocks's xml manager class.
This is the XML portion where the images path are.


Code:
<recentes nome="Ed. Vista Carnaxide" local="Nova Carnaxide" foto="imagens/recentes/EdCarnaxide.jpg" />
<recentes nome="Ed. Residência dos Principes" local="Telheiras" foto="imagens/recentes/EdResPrincipes.jpg" />
<recentes nome="Ed. Salacia/Portus Cale" local="Alto dos MoÃ*nhos" foto="imagens/recentes/EdPortusCale.jpg" />
<recentes nome="Ed. Principes I" local="Parque dos Principes" foto="imagens/recentes/EdCarnaxide.jpg" />
I have the html on the root, then I have a folder named "imagens" containing another folder called "recentes" and the images inside "recentes".

Why isn't it working? does anyone have a clue? please help me before I go bald :X

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
Hey guys, new to the site but I'm hoping you can be of some assistance.

I'm trying to load an external swf onto my stage. The thing is, the swf I'm loading is not in the same folder as the main swf. I've tried every combination to try and find the correct path, but I'm having no luck. Please help, I'm starting to pull out hair!

The folder my main swf is in is: ../Arrangements/main.swf
And the one I'm trying to load is: ../Arrangements/News/news.swf

Here is my code that I am trying to use:
var externalSWF:URLRequest = new URLRequest("News
ews.swf");

Should I be using forward slashes instead of back slashes?
Should I be doing something else?

Any Help will be greatly appreciated

Error #2044: Unhandled IOErrorEvent:. Text=Error #2035: URL Not Found.
hi all,

dispatcher: i am using code posted by someone here, corrected the typos though - so thanks, forgot who it was ...

anyways, here my problem - the code below throws error
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

i guess, it's easy to understand what it says, but I just don't get my head around which URL it means - the URLLoader is pointed to a valid XML in the same directory ... i try to figure this out since yesterday night ... please help!


package {

import flash.display.*
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLRequest;

public class NettoTestXMLMain extends Sprite {

public var _data:XML;
public var _images:Array;
public var leftBtn:LeftBtn = new LeftBtn();
public var rightBtn:RightBtn = new RightBtn();
public var container_MC:ContainerClass = new ContainerClass();

public function NettoTestXMLMain():void {

init();

function init():void
{
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, dataLoaded, false, 0, true);
urlLoader.load(new URLRequest("NettoTestXML.xml"));


}

function dataLoaded(e:Event):void
{
_data = new XML(e.currentTarget.data);
_images = new Array(_data.photos.length());

build();
}

function build():void
{
leftBtn.addEventListener(MouseEvent.CLICK, traverseImage, false, 0, true);
rightBtn.addEventListener(MouseEvent.CLICK, traverseImage, false, 0, true);

loadImage(0);
}

function loadImage(index:int):void
{
if(_images[index])
{
replaceImage(_images[index]);
return;
}
else
{
var loader:Loader = new Loader();
loader.load(new URLRequest(_data.photos[index].img));
_images[index] = loader;
replaceImage(loader);
}
}

function replaceImage(objisplayObject):void
{
while(container_MC.numChildren)
{container_MC.removeChildAt(0);}

container_MC.addChild(obj);
}

function traverseImage(e:MouseEvent):void
{
var index:int = _images.indexOf(container_MC.getChildAt(0));

if(e.currentTarget == leftBtn)
{index--;}
else if(e.currentTarget == rightBtn)
{index++;}

index %= _images.length;

if(index<0)
{index = _images.length - 1;}

loadImage(index);
}
}
}
}

Error #2044: Unhandled SecurityError:. Text=Error #2048: Security Sandbox Violation
I've recently created a flash blog application and locally it works perfectly. However when I upload it to my web server it throws this error at me.

'Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation'

I've searched around it people have been saying that it's to do with loading in files from servers that are external to the one the flash file is hosted one. But my flash file only loads two XML files, both of which are on my server, albeit in a different directory.

If anyone has any ideas I'd appreciate the help

Error #2044: Unhandled SkinError:. Text=Error #1034
Hi, I followed this link to learn customize the video skin,
http://www.adobe.com/devnet/flash/articles/flv_tutorial_pt2_03.html

after I went throught the steps, and compiled err free, than I created a new flash file and load the flash playback component, but when I choose the skin I just created above, I got an error as follows:

Error #2044: Unhandled skinError:. text=Error #1034: Type Coercion failed: cannot convert flash.display::AVM1Movie@354a9e9 to flash.display.Sprite.

FF Throws Unhandled IoError And Stream Error
Hi,
I get this error only when opening the page in Firefox, it is ok in IE and GC.

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.
at xb001_contentPanel_TXT/::frame1()

It happens when I click on a dynamically generated button, which is supposed to load an external .xml text into TextField, it throws an error and doesn't do what it is supposed to do after the click.

Do you know of any work around for FF? Maybe FF doesn't like .xml files formated in a certain way, or .xml files that are to big, but this one is only 36KB.

Of course it plays fine in flash cs3 flash player - no errors.
cheers!

FF Throws Unhandled IoError And Stream Error
Hi,
I get this error only when opening the page in Firefox, it is ok in IE and GC.

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error.
at xb001_contentPanel_TXT/::frame1()

It happens when I click on a dynamically generated button, which is supposed to load an external .xml text into TextField, it throws an error and doesn't do what it is supposed to do after the click.

Do you know of any work around for FF? Maybe FF doesn't like .xml files formated in a certain way, or .xml files that are to big, but this one is only 36KB.

Of course it plays fine in flash cs3 flash player - no errors.
cheers!

Error #2044: Unhandled Error:. Text=
What is this error message telling me? Here is the code I'm using where I think the error is, but I can't recreate the error outside of my class structure.

ActionScript Code:
public function sendVars(url:String, method:String=URLRequestMethod.POST):void
{
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onComplete);
    loader.addEventListener(ErrorEvent.ERROR, onError);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
   
    var request:URLRequest = new URLRequest(url);
    request.method = method;
   
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    request.data = urlVars;
    loader.load( request );
   
    dispatchEvent( new Event(Event.INIT) );
}
       
protected function onComplete(e:Event):void
{
    trace("onComplete");
   
    try
    {
        trace("onComplete try");
        var loader:URLLoader = URLLoader(e.target);
        var variables:URLVariables = new URLVariables(loader.data);
        response = variables.echo;
       
        dispatchEvent( new Event(Event.COMPLETE) );
    }
    catch(e:Error)
    {
        trace("onComplete catch");
        dispatchEvent( new ErrorEvent(ErrorEvent.ERROR) );
    }
}

protected function onError(e:ErrorEvent):void
{
    dispatchEvent( new ErrorEvent(ErrorEvent.ERROR) );
}

Any ideas? It traces "onComplete" but not the try or catch.

Error #2044: Unhandled StatusEvent:. Level=error, Code=
Receiving message: Error #2044: Unhandled StatusEvent:. level=error, code=

I have just added these three lines to a previously working fla:

import flash.net.LocalConnection;

var sender:LocalConnection = new LocalConnection();
sender.send("_exampleChannel", "example", "a string", 6.5, true);

My intent is to test passing data back to another fla. Right now the data I'm sending is nonsense. I'm just trying to test the connection and get it working. Any help is appreciated.

Here is the entire block of code:

import fl.controls.RadioButton;
import flash.net.LocalConnection;

var seqNum:Number = new Number();
var question:String = new String();
var actual_answer;
var submit_answer;

var end_result:uint = new uint();

function setVariable(quext:String) {
trace("Quext = "+quext);
Question_display.text = quext;
}

//*************** from the parent program ***************************
seqNum = 1;
//question = "New York is the capitol of the USA."
actual_answer = "FALSE";
//*******************************************************************

Question_display.backgroundColor = 0x0000FF;


//********* EventListeners for the buttons **************************
Answer_a.addEventListener(MouseEvent.CLICK, clickHandler);
addChild(Answer_a);
Answer_b.addEventListener(MouseEvent.CLICK, clickHandler);
addChild(Answer_b);
//*******************************************************************
//********* Radio button Handler Function ***************************
function clickHandler(event:MouseEvent):void {
submit_answer = event.currentTarget.label;
}
//*******************************************************************
function sub_answer(event:MouseEvent):void
{
trace("The submitted answer is "+submit_answer+", and the actual answer is "+actual_answer+".");
if (actual_answer == submit_answer) {
end_result = 1;
}
else {
end_result = 0;
}
//*************** send to the parent program ********************
trace("Your conclusions are "+end_result+".");
//*************** send to the parent program ********************
var sender:LocalConnection = new LocalConnection();
sender.send("_exampleChannel", "example", "a string", 6.5, true);

}

Submit_btn.addEventListener(MouseEvent.CLICK, sub_answer);

Error #2044: And Error #2032
I have the following problem.

I have an swf file that loads different resources from its own domain. Everything works fine if have the calling html file in the same domain. But if put the calling html on a different server I get the following error.


Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: mediaplayerconfig.xml

Witch to me would indicate an access error due to not having a cross domain policy file. Which is strange because I do have one setup. And I thought that you only needed that if the swf and the recourses was on different domains. it is only the html file witch loads the swf that is on a another domain. Anyone got any clues to what the problem could be or hove I can circumvent it.

Error #2044: And Error #2032
I have the following problem.

I have an swf file that loads different resources from its own domain. Everything works fine if have the calling html file in the same domain. But if put the calling html on a different server I get the following error.


Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: mediaplayerconfig.xml

Witch to me would indicate an access error due to not having a cross domain policy file. Which is strange because I do have one setup. And I thought that you only needed that if the swf and the recourses was on different domains. it is only the html file witch loads the swf that is on a another domain. Anyone got any clues to what the problem could be or hove I can circumvent it.

Webservice Error #2032: Stream Error
Hi

I am trying to access a webservice.When i try calling the service without passing parameters i get the following error
Required parameter '########' not found in input arguments.

But when i pass the parameter required this is the error i get
Error #2032: Stream Error

Is it because of crossdomain.xml which i am not using ?

Please give some useful suggestions

Error #2032: Stream Error
I keep getting the #2032: Stream Error no matter what I do.

The swf that is getting published is running locally on my machine and I'm using URLLoader to target a script on a remote server. My Fla has local playback security set to: Access Network only, as it should. Even if I try to call various scripts from various servers it never works. I have tried several differrent implementations copied directly from "Flash help" with the same results.

Also I can call of the scripts I have tested using the same URLRequest string thru a browser and they all work as expected.

Here's my full errror report

Code:
openHandler: [Event type="open" bubbles=false cancelable=false eventPhase=2]
Error opening URL 'http://www.simplecircle.net/tests/test.php'
httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=0]
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.simplecircle.net/tests/test.php"]
Thanks for the help.

Error #2032: Stream Error?
I've looked this error up and it says that it's usually a problem when it can't find a location when using send or load. Here are the relevant functions I'm trying to use... I had to use the adobe docs with this one, so I'm not 100% sure it's all set up correctly, but aside from saving the picture to the server (though I'd prefer it to send to a php script) it works just how I'd like...


ActionScript Code:
var fileName:String = "test.jpg";
var uploadPath:String = "file:///Macintosh%20HD/Users/dh/Desktop/test/";

function takePicture (e:MouseEvent):void {
   
    var mySprite:Sprite = new Sprite();
    bitmapData.draw(bg);
   
    mySprite.graphics.beginBitmapFill(bitmapData);
    mySprite.graphics.drawRect(0, 0, imgW, imgH);
    mySprite.graphics.endFill();
   
    bg.addChild(mySprite);
   
    // Change out the buttons
    this.gotoAndPlay('Retake Picture');
   
}

function sendPicture (e:MouseEvent):void {
   
    var byteArray:ByteArray = new JPGEncoder().encode(bitmapData);
    var imgServer:URLRequest = new URLRequest();
    imgServer.url = uploadPath;
    imgServer.contentType = "multipart/form-data; boundary=" + UploadPostHelper.getBoundary();
    imgServer.method = URLRequestMethod.POST;
    imgServer.data = UploadPostHelper.getPostData(fileName, byteArray);
    imgServer.requestHeaders.push(new URLRequestHeader('Cache-Control', 'no-cache'));
   
    var imgLoader:URLLoader = new URLLoader();
    imgLoader.dataFormat = URLLoaderDataFormat.BINARY;
    imgLoader.addEventListener(Event.COMPLETE, onComplete);
    imgLoader.addEventListener(IOErrorEvent.IO_ERROR, onError);
    imgLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
    imgLoader.load(imgServer);
   
}


You press the take picture button and it freeze frames the picture then loads the Retake Picture and Save picture button. If you press retake, it reloads to webcam and goes back, if you click save it runs the sendPicture() function. If anyone can see what I'm doing wrong, I'd really appreciate the help! Thanks.

Error #2032: Stream Error
Hi

I am trying to access a webservice.When i try calling the service without passing parameters i get the following error
Required parameter '########' not found in input arguments.

But when i pass the parameter required this is the error i get
Error #2032: Stream Error

Is it because of crossdomain.xml which i am not using ?

Please give some useful suggestions

Error #2044: Unhandled AsyncErrorEvent: - Please Help :(
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=ReferenceError: Error #1069: Property onMetaData not found on flash.net.NetStream and there is no default value.
at videoplayer_fla::MainTimeline/frame1()





Code:
stop();

var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var stream_ns:NetStream = new NetStream(connect_nc);
myVideo.attachNetStream (stream_ns);
stream_ns.play("Dillard479.flv");

I'm trying to get the video file to play and it does, I just get this compiling error which isn't good. What am I doing wrong? Thanks

Error #2044: Unhandled AsyncErrorEvent:.
Hi

I am using NetConnection and NetStream class stream video to FMS .But I am getting the following error message.After showing this message it functioning properly.Can any body tell me the reason for this message.


Code:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.NetConnection was unable to invoke
callback onBWDone. error=ReferenceError: Error #1069: Property
onBWDone not found on flash.net.NetConnection and there is no
default value.
thanks in advance

Another Error #2044: Unhandled IOErrorEvent:
Still getting the 2044 and local debugger popup.
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
test.swf is in the same folder as main clip.
contentLoaded executes if i press continue or Dismiss in local debugger.
Where else to catch the 2044?

Here is the code


Code:
public static function loadContent ():void {
debug("Loading content");
setMessage("
Loading content
Please wait");
Content = new MovieClip ();
Content.name = "ContentHolder";
Content.visible = false;
root.addChildAt (Content, 1);
trace (Content);
trace (root.getChildAt (1).name);
//load doc
var mcLoader:Loader = new Loader();
mcLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, contentLoaded);
mcLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, contentLoadProgress);
mcLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, contentLoadError);
//mcLoader.addEventListener(IOErrorEvent.IO_ERROR, contentLoadError);
var fileRef:URLRequest = new URLRequest("test.swf")
mcLoader.load (fileRef);
Content.addChild(mcLoader);
}
}

private static function contentLoadProgress (event:ProgressEvent):void {
trace("progressHandler: bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
}
private static function contentLoadError (event:IOErrorEvent):void {
trace ("Load error: " + event);
setMessage ("
Error loading content
Please try again later");
}
Thx,
Wesp

Error #2044: Unhandled SecurityError
I have uploaded my files to my server and I can view them all except when I'm attempting to load the html file into my index page. Then I get this error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.angelfire.com/in/HansonArtGallery/22038.swf cannot load data from 22038_main.xml.
at tm.as3::Main$iinit()


I have gone back and changed the settings to network settings instead of local, but that still doesn't help. What can fix this?

Regards,
Tseyigai

Error #2044: Unhandled SkinError:
Hi everyone,

I just started getting this error: "Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2036: Load Never Completed. URL:

Sound - Error #2044: Unhandled IOErrorEvent
I have mc in the main timeline.
this mc has 85 frames with a stop action at frame 45
In this mc i want a event sound event to play at frame 2 and on frames 83

But first I´ve done some test and only execute the sound at frame 1.

Here´s the code at frame 1:

var soundReq:URLRequest = new URLRequest("plask.mp3");
var sound:Sound = new Sound();
sound.load(soundReq);

sound.addEventListener(Event.COMPLETE, onComplete);

function onComplete(event:Event):void
{
sound.play();
}
stop();


Here´s the error message from the output:

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


Do anyone know what the problem is?

AS3 - Error #2044: IOErrorEvent No Controlado: Text=Error #2036: No Se Completó La Carga
I have to write some html code that calls to javascript and the error keeps popping up.
Any idea?
Example at:
http://www.telefonica.net/web2/odm/prueba_flash.html

Which probably means:
Error #2044: Un handled IOErrorEvent: text=Error #2036: Loaded not completed

My AS:


Code:
import flash.external.*;

//ExternalInterface.call("alert", "foo");

ExternalInterface.call("function(){document.write('<h2>HOOOLA</h2>');}");

Loading Xml To Flash Help Error #2044: Unhandled IOErrorEven
when i tried to load xml from php file to flash i got the error
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Stroop_fla::MainTimeline/frame1()
although i managed to get all the data from xml

flash side
xmlLoader.load(new URLRequest('http://127.0.0.1/stroop/xmlstroop.php'));


heres my xml output that will appear on localhost/stroop/xmlstroop.php (only if i use IE7 to run it, opera and firefox gave me error)

Quote:




<?xml version="1.0" encoding="utf-8" ?>
- <input>
<experimentid>1</experimentid>
<username>somename</username>
<trials>12</trials>
<blocks>3</blocks>
<intertrialsinterval>1.50</intertrialsinterval>
<errortone>0.50</errortone>
<stimcueinterval>0.50</stimcueinterval>
<maxresponsetime>1.50</maxresponsetime>
</input>




xml is generated from php and mysql

when im using flash ill get this on the output box

Quote:




Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Stroop_fla::MainTimeline/frame1()
somename
1
12
3
1.50
0.50
0.50
1.5




// the variables above is from the xml(php) file

and when i tried to debug it (ctrl+shift+enter)
i got a pop up telling me to enable domain trusting , i enabled but i still get the same thing, and btw the pop up came with :

Quote:




Attemping to launch and connect to Player using URL C:wampwwwStroopStroop.swf
[SWF] C:wampwwwStroopStroop.swf - 16457 bytes after decompression
*** Security Sandbox Violation ***
Connection to http://127.0.0.1/stroop/xmlstroop.php halted - not permitted from file:///C|/wamp/www/Stroop/Stroop.swf
-- Untrusted local SWFs may not contact the Internet.
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/wamp/www/Stroop/Stroop.swf cannot access Internet URL http://127.0.0.1/stroop/xmlstroop.php.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at Stroop_fla::MainTimeline/frame1()[Stroop_fla.MainTimeline::frame1:10]




and i thought it was ok as long as i got the variables from xml, but when i publish it and put the swf into my server (same folder with the xml fille) i got this

Quote:




Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Stroop_fla::MainTimeline/frame1()[Stroop_fla.MainTimeline::frame1:70]

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost/stroop/Stroop.swf cannot load data from http://127.0.0.1/stroop/xmlstroop.php.
at Stroop_fla::MainTimeline/frame1()[Stroop_fla.MainTimeline::frame1:5]






help !, tried searching the answer for days but cant get a solution that work and help would be greatly appreciated

Stream Error #2032 In IE6 Only
Hello, I'm developing a flash game (my first) that's been working great in firefox. I recently went live with the app and found that users with IE6 couldn't connect to my game server from the flash client. Opera, IE7 and Firefox all work just fine.

Here's my app if you're interested

http://www.guessasketch.com

The first thing it does is pop up a connection browser to show live games. On IE6 I get an I/O error of type #2032 (stream error).. I've searched around and found many posts on the subject but haven't found a fix for me. Most of the time it seems due to typo's in the url address, but since mine works for all other browsers that would seem odd (unless ie6 expects them formatted differently?). Btw, IE5.5 works just fine with it, odd stuff.

Here's all I'm doing, very simple:


Code:
this._baseUrl = "/server/?";
this._loader = new URLLoader();
this._request = new URLRequest;
this._loader.addEventListener(Event.COMPLETE, completeHandler);
this._loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
this._loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
this._loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
private function sendToServer(msg:String):void
{
this._request.url = this._baseUrl + msg
try
{
this._loader.load(this._request);
}
catch (error:Error)
{
trace("Unable to send data to server.");
}
}

private function completeHandler(event:Event):void
{

var loader:URLLoader = URLLoader(event.target);
this._loaderData = StringUtil.trim(loader.data);
//Alert.show("Got " + this._loaderData)
parseData();
}


In IE6 I get an I/O error. The url is relative to the server my swf lives on and I figured that may be it. I tried a full non-relative path but that didn't help. Any help would be appreciated.

Thanks,
Daniel

Stream Error #2044 Funky LoadXML?
I'm publishing some swf's on a couple websites and I get a really weird ioError in fp9 when I view those pages. The HTML is generated by Flash CS3's published html pages, it's totally weird. Here's the error I'm getting in FireFox:

Code:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: en/main_en.xml
at fl.lang::Locale$/private::loadXML()
at fl.lang::Locale$/initialize()
at main_fla::MainTimeline()
at [execute-queued]
at [io]
The thing that gets me is that I never called loadXML() in my project and of course my program can't find en/main_en.xml - it doesn't exist! Why is it looking for xml? Why is it calling loadXML()?

[preload - Simulate Download] Error #2044/Error #2036
Hi! Well, strange little problem.
I made a small class to preload external assets (swf/jpg/xml..). It works really well for me on-line.

BUT, every time I test it locally (in the flash) with test movie > simulate download, I works properly (it correctly loads the assets), but I always get this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

But I repeat: files load correctly. So, what's going on? NOTE that in my code there's also the IOErrorEvent listener, that, when I for exemple I pass a wrong path, it is dispatched (this mean it works). But It doesn't get dispatched here, just because the asset in fact loads.

a piece of code:


Code:
public function loadExtDisplay(file){

loader = new Loader();

loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.INIT, onLoadInit, false, 0, true);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onIOError);

loader.load(new URLRequest(file));
dispatchEvent(new Event(FileLoader.LOAD_START));
busy = true;

return loader;
}

Code:
public function onIOError(e:IOErrorEvent):void{
e.text = 'I/O ERROR';
}
What's the problem?

Using CS3 - Security Errors: Error #2148 And Error #2044
I am using Flash CS3. I'm doing everything by the book by creating and inserting a video into my web page.
When I use Dreamweaver CS3 I can get the video to display on the web page. However, when using Flash CS3 I get
the Security Errors: Error #2148 and Error #2044, and the video will not show up.

If the code would help to help me with this, it is below. I have two videos showing:
- the top one inserted by Dreamweaver, which works.
- the one below it, inserted by Flash and is doesn't.

When I view the Flash inserted video on an .html page it works fine, but when I try to view
it on our .asp page it will not. The paths to the files are the same, (but the file names are different) so that should not be the issue.

Any help out there?

Thanks.

Michael

<!--flash 1 insert begin -->
<tr>
<td valign="middle" align="center" style="background:url(../../images/video_bg2.gif) no-repeat" width="278" height="237">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','261','height','194','id','FLVPlayer','align','middle','src','Flash_Video/YMCA/FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=/flash_video/ymca/Clear_Skin_1&streamName=/flash_video/ymca/ymca3&autoPlay=true&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','LT','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Flash_Video/YMCA/FLVPlayer_Progressive','bgcolor','#000066' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="

Actionscript 3 Problem "Error #2044: Unhandled IOErrorEvent:"
hello there,

I am currently having some problems with actionscript 3.0. i have created an equalizer using the soundMixer and this worked. to extend my knowledge furthur i have tried to creating it using an XML document to import songs and this is where i am having problems.

i will post the actions below they are all on the first frame of the file (I have left out the actions for the equalizer as i do not think this is where the problem is, however if you would like to see them please let me know and i will post it all):


ActionScript Code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
lb.addEventListener(Event.CHANGE, itemChange);
function itemChange(e:Event):void {
 var s:Sound = new Sound(new URLRequest(lb.selectedItem.data));
 s.play()
}
var xml:XML
function onLoaded(e:Event):void{
 xml = new XML(e.target.data);
 //trace(xml)
 var il:XMLList = xml.song;
 for(var i:uint = 0; i<il.length(); i++){
  lb.addItem({data:il.url.text()[i],
     label:il.title.text()[i]});
 }
loader.load(new URLRequest("songs.xml"));

the error i get in the output window in this:

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at Soundspectrumxml_fla::MainTimeline/itemChange()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.controls::SelectableList/handleCellRendererClick()

Any help or advice you have will be useful and very appreciated.

thankyou in advance

Darren.

**Error** TempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax Error: Expecti
Hi,

I'm trying to convert my AS2 project to AS3. I got rid of all errors but one :

**Error** tempInit : Line 1, Column 5 : [Compiler] Error #1084: Syntax error: expecting identifier before 45.
var 45:MovieClip;

I got no idea what tempInit is, and no where do I declare a variable called 45...

After searching the web for hours I am tired and thus asking for your help.

Thank you,

Loading External Text File Returns Error: #2032 ..but On One Server It Works.
Hello, it has been a while before i did something with actionscript again, but
does anyone know if there has been some changes about loading external text files in Flash?

I tried loading an external text file from a online webserver that worked fine. But now i wanted
to move the text file to a different webserver and i got this error:

Error opening URL 'http://wwww.uniqwebdesign.com/mailform_test/dataformcs.txt'
httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=401]

and:
status: 401
ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:

Err # 2044: IOErrorEvent Uncontrolled Type: Text = Error # 2036: Not Completed Loadin
Since using a preloader I get this error in IE

Bug # 2044: IOErrorEvent uncontrolled Type: text = Error # 2036: Not completed loading.

(p.s. its translated from Spanish as Im working in Colombia)

Error #2032: - What Does This Mean?
Hi,

Im trying to load in some HTML text which is formatted by CSS (both are external) and i get this message:

"The following file could not be loaded: Error #2032: Stream Error. URL: file:///C|/Users/Ben/Documents/Productivity/sites/mySite/welcome.html"

I've been searching about this for a few hours but cant make any sense of it. The path to the html file is correct, i've never seen this before. Can anyone explain whats happening or how to get around this??

here is the code i am using...


Code:

public function LoadHTMLCSS() {
_cssFile = new URLLoader();
_cssFile.addEventListener(Event.COMPLETE, onLoadCSS, false, 0, true);
_cssFile.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true);
_cssFile.load(new URLRequest("welcome.css"));
}

private function onLoadCSS(evt:Event):void {
_css = new StyleSheet();
_css.parseCSS(evt.target.data);
_htmlFile = new URLLoader();
_htmlFile.addEventListener(Event.COMPLETE, onLoadHTML, false, 0, true);
_htmlFile.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true);
_htmlFile.load(new URLRequest("demo.html"));
}

private function onLoadHTML(evt:Event):void {
_html = evt.target.data;
initTextField();
}

private function initTextField():void {
_txtFld = new TextField();
_txtFld.x = _txtFld.y = 20;
_txtFld.width = 500;
_txtFld.multiline = true;
_txtFld.wordWrap = true;
_txtFld.autoSize = TextFieldAutoSize.LEFT;
_txtFld.selectable = false;
_txtFld.styleSheet = _css;
_txtFld.htmlText = _html;
_txtFld.addEventListener(TextEvent.LINK, onTextEvent);
addChild(_txtFld);

_cssFile.removeEventListener(Event.COMPLETE, onLoadCSS);
_cssFile.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_htmlFile.removeEventListener(Event.COMPLETE, onLoadHTML);
_htmlFile.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}

private function onTextEvent(evt:TextEvent):void {
trace(evt.text);
}

private function ioErrorHandler(evt:IOErrorEvent):void {
trace("The following file could not be loaded: " + evt.text);
}
}
}
Thanks for any help (this is killing me!!)

Copyright © 2005-08 www.BigResource.com, All rights reserved