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.
ActionScript.org Forums > Flash General Questions > Flash 9 General Questions
Posted on: 07-25-2007, 06:19 PM
View Complete Forum Thread with Replies
Sponsored Links:
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.");
}
View Replies !
View Related
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
View Replies !
View Related
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.???
View Replies !
View Related
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!
View Replies !
View Related
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);
}
View Replies !
View Related
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.
View Replies !
View Related
Error #2044 Unhandled IoError:. Text=Error #2032: Stream Error. URL:
Hey Everyone
Can 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 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()
please help this is driving me crazy
Thanks
Ryan
View Replies !
View Related
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
View Replies !
View Related
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"?
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
[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 ); }}
View Replies !
View Related
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
View Replies !
View Related
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);
View Replies !
View Related
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];
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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");}*/
View Replies !
View Related
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);
}
}
}
}
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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);
View Replies !
View Related
[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?
View Replies !
View Related
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="
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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!!)
View Replies !
View Related
Error #2032 Only In IE
Hi,
I'm testing with my streaming web radio app and ran into this problem.
The radio plays perfectly fine in FireFox, but throws an error when I use IE(7).
I have flash communicating with php (which serves as a proxy) to get the streaming audio.
According to a blog entry on ammonlauritzen.com I should add "pragma: " to the header of the returned file in php. I tried it and it worked once, but now it doesn't work anymore.
The first thing I do in my php script is to create the header like this:
PHP Code:
header("HTTP/1.0 200 OK");header("Pragma: ");header("Content-Type: audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3");header("Content-Transfer-Encoding: binary");// Content-Length is required for Internet Explorer:// - Set to a rediculous number// = I think the limit is somewhere around 420 MBheader("Content-Length: 1000000000000");
After that I open the socket connection and start streaming. As I said, all works well under FF, but not IE, does anyone know why?
Thanks,
- FB
PS: for completeness sake, see it happening at http://ansuz.nl/bla/radio_02.swf
View Replies !
View Related
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
View Replies !
View Related
Error #2044
I,im building a carousel 3d but the code gives me that error...Any ideas?
Error:
Code:
ReferenceError: Error #1056: Cannot create property onConnect on flash.net.XMLSocket.
at Carrocel_3D_Processing_fla::MainTimeline/frame1()
Fla code:
Code:
import teste;
var xc;
var yc;
var speed;
var parts;
var posx_txt;
var posy_txt;
var serialServer = new XMLSocket();
serialServer.connect("127.0.0.1",9001);
serialServer.onConnect = function(success)
{
trace("the client connected to the server");
}
serialServer.onData = gotSomething;
trace(gotSomething);
function gotSomething(datar)
{
parts = datar.split(",");
xc = parts[0];
yc = parts[1];
trace(parts);
posx_txt.text = xc;
posy_txt.text = yc;
xc=320-xc;
xc=xc*800/320;
speed = (xc-centerX)/9500;
trace("xc:"+xc);
}
Tks in advance
View Replies !
View Related
[CS3] Error # 2044
Hello folks,
I am new to the site but have a quick question. I have a flash file that I have created that loads and scrolls about 54 .jpg images using action script 3.0. when I try to load the page only a few of the images will actually load to scroll and then continually repeats the same one. When I attempt to open the .swf file when the images load I counted that about 29 of them load and the I receive the following error, "Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found".
Can any one help me figure out what's going on???
Thank you very much, and I am excited to be a new member of the forum. What did we do without them??
Thanks,
Cort
View Replies !
View Related
Error #2044 - What Can I Do?
I have a flash file on a HTML page. One of the things it does is receive some XML.
It works fine when I run it off my hard drive or whatever.
But when I tested it on my localhost and to it through my browser like - localhost/flashtest.htm rather than file:///C:/inetpub/flashtest.htm is doesn't work.
In Firefox it just doesn't appear. In IE it comes up with an error:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost/flashTest.swf cannot load data from http://......
It seems like more of a Flash Player bug but I can't find out how to fix it. Any help, much appreciated as i'm stuck!?
View Replies !
View Related
Error #2044
hi.i have error while seeking to unloaded parts of the video i want to make the player like youtube.i have nginx server and not to seek to unloaded parts of the video.
which listeners should i use?
the error is like that:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Seek.InvalidTime
at VIDEOPLAYER_fla::MainTimeline/VIDEOPLAYER_fla::frame1()
Code:
var loaderBg:Sprite = new Sprite();
loaderBg.graphics.beginFill(0xc78f8e);
loaderBg.graphics.drawRect(205,378,429,5);
loaderBg.graphics.endFill();
addChild(loaderBg);
this.addEventListener(Event.ENTER_FRAME, fileLoaded);
var loaderBar:Sprite = new Sprite();
addChild(loaderBar);
var percent:Number = (netStr.bytesLoaded * 100 ) / netStr.bytesTotal;
function fileLoaded(e:Event) {
var percent:Number = (netStr.bytesLoaded * 100 ) / netStr.bytesTotal;
loaderBar.graphics.clear();
loaderBar.graphics.beginFill(0xDE2C18);
loaderBar.graphics.drawRect(205,378,percent * 4.33,5);
loaderBar.graphics.endFill();
if (percent==100) {
this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
}
}
----------
var drag:Boolean = false;
this.addEventListener(Event.ENTER_FRAME, setDragBar);
function setDragBar(e:Event) {
if (!drag) {
dragBar.x = ((netStr.time / lengthOfVideo) * 429) + 201;
}
}
this.addEventListener(Event.ENTER_FRAME, reSetVideo);
function reSetVideo(e:Event) {
if (drag) {
if( (dragBar.x-201) > percent * 4.33){
this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
netStr.pause();
}
netStr.seek(Math.floor(((dragBar.x-201) / 429) * lengthOfVideo ));
}
}
View Replies !
View Related
Error #2044
hi.i have error while seeking to unloaded parts of the videoi want to make the player like youtube.i have nginx server and not to seek to unloaded parts of the video.
the error is like that:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Seek.InvalidTime
at VIDEOPLAYER_fla::MainTimeline/VIDEOPLAYER_fla::frame1()
[CODE]
var loaderBg:Sprite = new Sprite();
loaderBg.graphics.beginFill(0xc78f8e);
loaderBg.graphics.drawRect(205,378,429,5);
loaderBg.graphics.endFill();
addChild(loaderBg);
this.addEventListener(Event.ENTER_FRAME, fileLoaded);
var loaderBar:Sprite = new Sprite();
addChild(loaderBar);
var percent:Number = (netStr.bytesLoaded * 100 ) / netStr.bytesTotal;
function fileLoaded(e:Event) {
var percent:Number = (netStr.bytesLoaded * 100 ) / netStr.bytesTotal;
loaderBar.graphics.clear();
loaderBar.graphics.beginFill(0xDE2C18);
loaderBar.graphics.drawRect(205,378,percent * 4.33,5);
loaderBar.graphics.endFill();
if (percent==100) {
this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
}
}
----------
var drag:Boolean = false;
this.addEventListener(Event.ENTER_FRAME, setDragBar);
function setDragBar(e:Event) {
if (!drag) {
dragBar.x = ((netStr.time / lengthOfVideo) * 429) + 201;
}
}
this.addEventListener(Event.ENTER_FRAME, reSetVideo);
function reSetVideo(e:Event) {
if (drag) {
if( (dragBar.x-201) > percent * 4.33){
this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
netStr.pause();
}
netStr.seek(Math.floor(((dragBar.x-201) / 429) * lengthOfVideo ));
}
}
[/CODE]
View Replies !
View Related
Error #2044.
i just finished developing a website for my client. everything seemed fine until a friend of my client told him that he got an error #2044 message when he visited the site. so then i asked several other friends to check the site on a pc but none of them received the same error message.
does anyone might know why this happen to just a certain visitor and not to all?? and how would i fix this problem.
the website in question is http://webdev.phuture1.com/chriskerrigan/
thanks.
View Replies !
View Related
Error #2044 Without A Parent?
I'm basically creating a loader which loads a url (aptly named url) and then requests the html of the url, and loads it. Pretty simple. There are a few functions for errors and completion, and that's it. The actual application works fine, the url says it's loaded, you see the loaded data on the screen, and yet, I still get:
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
Here's the source (just assume if a var isn't declared it was previously declared):
ActionScript Code:
private function onCardClick(event:MouseEvent):void {
var url:String = new String();
url= event.currentTarget.articleURL;
trace ("article being loaded: " + url);
_request = new URLRequest(url);
_loader = new URLLoader();
// download completion listener
_loader.addEventListener(Event.COMPLETE, htmlDownloadHandler);
// error listeners
_loader.addEventListener(IOErrorEvent.IO_ERROR, htmlErrorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, htmlErrorHandler);
// use a try-catch block in case html download fails;
// in case of error, go to htmlErrorHandler;
// else, go to htmlDownloadHandler --
try {
_loader.load(_request);
} catch (error:Error) {
trace("Unable to load requested document. Error: " + error);
}
}
private function htmlDownloadHandler(event:Event):void {
// use a try-catch block in case html parsing fails
try {
doNextThing(String(_loader.data));
}catch(error:Error){
trace("Error parsing html: "+error);
}
private function htmlErrorHandler(event:Event):void {
trace("Error during html download: "+event);
}
The final output is just "Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found."
Nothing else, no references to code or anything. When debugged, it waits until the end of the class before tracing out the error. Maybe I'm just looking at this the wrong way. Any help is appreciated
View Replies !
View Related
Error #2044 Pop-up In Browser?
When you go http://www.camplified.com/ <- here - and play around with the next song and prev song on the music player, does this message pop up for you:
Quote:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at camplified_fla::MainTimeline/nextSong()
What's going on? I don't get it! The player plays fine!
*the AS is in AS 3.0 hence why I'm posting in here
View Replies !
View Related
Flex 2 SDK Unable To Load Assets At Runtime. Error #2032
I'm having a strange error, hoping someone else has seen it and can give me some direction.
I'm compiling a project with FlashDevelop 3 with the Flex 2 SDK, and I'm loading in bitmaps at runtime.
Now the strange thing is, if I do the URLRequest in the constructor of the main class, it will succeed, and I'll get my data, but if I do a request any time after that (for example, in an eventListener such as enterFrame), the request will fail.
I had initially thought only the first request would succeed, and any after that were failing, but I can do as many URLRequests as I want as long as its in the constructor! But once I'm out of it, bad luck for me.
Also, if I compile the project in the Flash IDE, it succeeds, no such errors. So I'm really at a loss here.
View Replies !
View Related
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
View Replies !
View Related
Actionscript 3 RSS Feeder With An #2044 Error
Hey guys
I'm creating a flash RSS Feeder using ActionScript 3 and xml and I’ve run into a problem. The application has two components a list (called “rssFeedList_txt”), and text area (called “feedDisplay_txt”). The application grabs the data from the xml file and inserts it into the list component with the feedName attribute as the label and the feedURL attribute as the data.
In the SWF or HTML file When you click on one of the options from the list component the application should load a second xml file from the URL that is the data of the list option which was originally stored in the feedURL attribute and displays the feed from the URL in the text area component.
The uploading the label and the data to the list component part of the applications works, but I’m getting a #2044 error when I click any option in the list to display the feed from the URL of the second xml file in the text area component. Is anyone able to help me solve this problem?
Error Example:
--------------------------------------------------------------------------
Error opening URL 'http://giants.lohudblogs.com/feed/'
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://giants.lohudblogs.com/feed/
at MethodInfo-376()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.controls::SelectableList/handleCellRendererClick()
--------------------------------------------------------------------------
newYorkGiantsFeeds.xml
<?xml version='1.0' standalone='yes' ?>
<feeds>
<feed feedName="Mike Dougherty's Giants Journal" feedURL="http://giants.lohudblogs.com/feed/" />
<feed feedName="Paul Schwartz's Giants Blog" feedURL="http://blogs.nypost.com/sports/giants/index.rdf" />
<feed feedName="Ralph Vacchiano's Giants Blog" feedURL="http://feeds.nydailynews.com/nydnrss/blogs/giants" />
<feed feedName="Vinny DiTrani's True Blue Blog" feedURL="http://njmg.typepad.com/trueblue/rss.xml" />
</feeds>
giantsRSSFeed.fla
// Declares the loader variable which will be used to load the xml file
var loader:URLLoader = new URLLoader();
// Loads the xml file
loader.load(new URLRequest("newYorkGiantsFeeds.xml"));
// Event listener for when the loading of the xml file has finished. Tells the event listener to perform the action in the onLoaded function
loader.addEventListener (Event.COMPLETE, onLoaded);
// The function contains the code for performing the requirements of flash application
function onLoaded (e:Event):void
{
// Variables used for the list on the left hand side are declared below
var xml:XML;
xml = new XML (e.target.data);
// The variables below obtain their values from the elements and their attributes in the xml file
var feed:XMLList = xml.feed;
var feedName:XMLList = xml.feed.@feedName;
var feedURL:XMLList = xml.feed.@feedURL;
// Finished declaring variables
// The for loop is used to populate the list on left hand side with the foods from the xml file
for (var i:uint=0; i<feed.length(); i++)
{
rssFeedList_txt.addItem ({data:feedURL[i], label:feed.@feedName[i]});
}
// Event listener for the list on the list hand side. Tells the event listener to perform the action in the itemChange function
rssFeedList_txt.addEventListener (Event.CHANGE, itemChange);
// This function changes what is displayed in the feedDisplay text area. It loads the choosen RSS feed's xml file and contains
// the function that retrieves the required xml data and displays the stories in the feedDisplay text area
function itemChange (e:Event):void
{
// Declares the URLloader variable which will be used to load the RSS feeds xml file
var URLloader:URLLoader = new URLLoader();
// URLloader then loads the RSS feeds xml file
URLloader.load(new URLRequest(rssFeedList_txt.selectedItem.data));
URLloader.addEventListener (Event.COMPLETE, whenLoaded);
// This function retrieves the required xml data and displays the stories in the feedDisplay text area
function whenLoaded (e:Event):void
{
// Variables used for the text area on the right hand side are declared below
var xml:XML;
xml = new XML (e.target.data);
// The variables below obtain their values from the elements in the RSS feeds xml file
var rssItem:XMLList = xml.item;
trace(rssItem);
// Finished declaring variables
// The for loop displays the stories in the RSS feed in the feedDisplay text area
for(var i:uint = 0; i < rssItem.length(); i++)
{
// Displays the stories in XHTML format
feedDisplay_txt.htmlText = "<a href='" + rssItem.link[i] + "'><strong>" + rssItem.title[i] + "</strong></a><br />" + rssItem.description[i] + "<br><br><br><br>";
}
}
}
}
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
Error #2044: Load Never Completed.
I've put together a preloader for a website I built but everytime I try to publish it, it works... but then if I simulate the download this error comes up:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
I have a swf for the site... and then a swf for the preloader which will URL request the site swf... Here is the code I have on the preloader swf file:
var myRequest:URLRequest = new URLRequest("craft1.swf");
var myLoader:Loader = new Loader();
myLoader.load(myRequest);
myLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showContent);
var myPreloader:Preloader = new Preloader();
function showPreloader(event:Event):void {
addChild(myPreloader);
myPreloader.x = stage.stageWidth/2;
myPreloader.y = stage.stageHeight/2;
}
function showProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
myPreloader.loading_txt.text = "Loading - " + Math.round(percentLoaded * 100) + "%";
myPreloader.bar_mc.width = 198 * percentLoaded;
}
function showContent(event:Event):void {
removeChild(myPreloader);
addChild(myLoader);
}
any help would be GREAT!
Thanks
View Replies !
View Related
|