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








Error #2048 -- At A Loss


I've got some strange stuff going on. I have a SWF that is hosted on server A. I have a php file on server B that processes forms. My SWF sends form information to server B and expects to get a set of variables returned (form processed successfully or not).

The SWF is built in AS3. The code is written like this:


Code:
// SEND FORM INFO
//-- collect variables
var variables:URLVariables = new URLVariables();
variables.email = txtEmail.text;

//-- set up request for URL
var myRequest:URLRequest = new URLRequest();
myRequest.url = "https://services.processingserver.com/postdata/";
myRequest.method = URLRequestMethod.POST;
myRequest.data = variables;

//-- process loader
var myLoader:URLLoader = new URLLoader();
//myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
try
{
myLoader.load(myRequest);
}
catch (error:ArgumentError)
{
trace("An ArgumentError has occurred.");
txtPrompt.text = "SERVER ARGUMENT ERROR";
}
catch (error:SecurityError)
{
trace("A SecurityError has occurred.");
txtPrompt.text = "SERVER SECURITY ERROR";
}

myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS,httpStatusHandler);
myLoader.addEventListener(IOErrorEvent.IO_ERROR,errorHandler);
myLoader.addEventListener(Event.OPEN, openHandler);
myLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
myLoader.addEventListener(Event.COMPLETE,completeHandler);

....

function securityErrorHandler(e:SecurityErrorEvent):void
{
txtPrompt.text = "SERVER SECURITY ERROR - "+e.text;
}
It works fine when I test it from a local file. However, when I post the form SWF to the live server, it returns an Error #2048, triggered by the securityErrorHandler function.

The remote server has a crossdomain.xml file, and the server that the SWF is posted on has the file too. This is the code in the xml file:

Code:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
</cross-domain-policy>
I've tried adding this code to the SWF:

Code:
Security.allowDomain("*");
Security.loadPolicyFile("https://services.processingserver.com/crossdomain.xml");
What am I doing wrong?

Best,

--eric




FlashKit > Flash Help > Actionscript 3.0
Posted on: 08-21-2008, 01:26 AM


View Complete Forum Thread with Replies

Sponsored Links:

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
Error 2048, With AS 3.0
I'm trying to use remoting to just call a function in a cfc document. The function just returns a string. It used to work in the same directory now it gives me a 2048 error? Both files are in the same directory.

View Replies !    View Related
Got Error 2048...
Works great in adobe flash
import flash.net.*;
Security.allowDomain("*");


function Show(n:String) {
votes.text = n;
}

function update(eventArgs:TimerEvent)
{
fh.load(r);
}

var r:URLRequest = new URLRequest("

View Replies !    View Related
Socket Security Error 2048
Hi,

I'm trying to make a socket connection using AS3. I am aware of the new Security policies. I've read all the articles and set up a socket policy file server and a socket server to handle the socket.connect().


Im calling Security.loadPolicyFile("xmlsocket://myhost.com:843") but continually get this message in the debugger:
Error: Failed to load policy file from xmlsocket://myhost.com:843 // why did it fail?? the file is there and port is open

and then:

Error: Request for resource at xmlsocket://myhost.com:11500 by requestor from http://myhost.com/myswf.swf has failed because the server cannot be reached. // why can't the server be reached?? the port is open



I've made sure I have no firewall blocking the port, no SELinux enabled policies, and I've verified port 843 and 11500 are actually open using a custom php script.


Also when I type nmap localhost port 843 shows up as open using tcp. It does however say that the service is unknown. I don't understand that since I have edited the /etc/services file and created the service "flashpolicy" in /etc/xinetd.d and restarted inetd using: /etc/rc.d/init.d/xinetd restart.

Heres the string my socket policy file server is suppose to return when it receives <policy-file-request/> :

<cross-domain-policy><site-control permitted-cross-domain-policies="master-only"/><allow-access-from domain="myhost.com" to-ports="11500" /></cross-domain-policy>


Can anyone give me some clues as to what I'm doing wrong? I think I've read every article out there regarding this subject. I even see that there are two bugs listed for the flash player: http://bugs.adobe.com/jira/browse/FP-67 and
https://bugs.adobe.com/jira/browse/FP-269.

But it seems likes someone out there has achieved socket connections with AS3.

Thank You





























Edited: 09/15/2008 at 10:31:12 PM by depth9

View Replies !    View Related
IE8 And Flash Security (error #2048)
Oddly, my page works in IE7, FF, Chrome, etc. But now that I've upgraded by browser to IE8b2 (for work), I'm seeing a Flash Security (error #2048).

Here's what the app does...

Flash is running on Site A. Flash tries to read an XML file from Site B (which has a proper crossdomain.xls file in place). When visiting in IE8 Flash runs, but displays a security error.

Very odd. Any ideas folks?
~Paul

View Replies !    View Related
Sandbox Security Error 2048
I have done an IRC client in flash, it works fine in local but not on my site. I load the policy file at the root of my site (http://skurcey.sk.ohost.de/crossdomain.xml).
Could someone could explain me what to do to get this done, please. I really don't understand much at flash help, thanks.
Heres my swf http://skurcey.sk.ohost.de/FlashZone/IRCClient.html i can provide the sources if needed but be i code like a pig

View Replies !    View Related
SecurityErrorEvent In IE But Not FireFox - Error #2048
I have a ActionScript 3 applet that opens an XMLSocket connection to a server I wrote. It works fine in FireFox but fails in IE with the error below:

securityErrorHandler: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"]

Why is it doing this and how do I fix it?

View Replies !    View Related
"Error #2048: Security Sandbox Violation:
Hello, I seem to be getting this error everytime I try to connect to my XMLSocket server, does anyone have any idea what this is. I do have a crossdomain.xml file at the server root.

The crossdomain file consists of:

<cross-domain-policy>
<allow-access-from domain="*" to-ports="4000,4444" />
<allow-access-from domain="*" to-ports="5000" />
<allow-access-from domain="*" to-ports="10017" />
</cross-domain-policy>

Any help would be greatly appreciated.

Thanks

View Replies !    View Related
Security Sandbox Error 2048 (or 2044) Binary Socket
I was programming a client/server game on locally and decided to upload it to try and get others to test it the multiplayer aspect. I programmed the server in C#, and the client is flash AS3 using Flex Builder 3. However, when trying to connect from the site I uploaded the swf, I get this error:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://www.fhqhosting.com/ui/OmegaHyperon.swf cannot load data from 127.0.0.1:8000.

I have 2 servers running on my localhost. A policy server and the game server. When testing the SWF locally I don't get any policy server connections, but when running it from fhqhosting.com I do. I catch the policy request, and I send back this in byte form:

Code:

const string XMLPolicy = "<cross-domain-policy><allow-access-from domain=" * " to-ports=" * " /></cross-domain-policy>";

byte[] bytes = Encoding.UTF8.GetBytes(XMLPolicy);
sender.Socket.Send(bytes);


I can confirm the policy file is being sent on the server side, but on the client side I don't really know how to debug AS3 well since I just learned it like 30 minutes ago.

Here is my connection code on client:

Code:

socket = new OHSocket();
socket.endian = Endian.LITTLE_ENDIAN;
socket.connect("127.0.0.1",8000);
   
socket.addEventListener(DataReceived.eventType, OnReceive);
   
var username = userBox.text;
var password = passBox.text;
   
var data:ByteArray = new ByteArray();
   
   
data.writeUTFBytes(userBox.text);
   
socket.Send(identifiers.LOGIN, data);



Any ideas anyone? Thanks in advanced for any help.

View Replies !    View Related
Flash Save Error Resulting In Total Loss Of FLA
So, you try and save your Flash document, it says it can't do it because the file is read-only, or is open somewhere else or the destination is unavailable or something (when clearly none of these is true). Then you try and save it somewhere else and it won't let you. Meanwhile, it has deleted the original file when you tried to save over it.

So, now there's no document and i can't save the one I have open. What do I do? This isn't the first time this has happened, but it's never been such an issue before now because me and my colleague are about to lose a shedload of work. I think the network drive we work on must've have become temporarily unavailable and now Flash has gone mad. Any ideas? Pleaaaaassssse?

Before you ask, retirieving a server backup is not an option in this particular case.

Anyone else had this? This is such a huge problem surely it must've already been covered, but i've searched the forums and found nothing.

View Replies !    View Related
SecurityError #2048
Hy everybody, I posted 2 questions about crossdomain policies to get some info about swf privileges (socket.connect) for loading data from other domains (example: you upload on your site a clip that loads the homepage of www.adobe.com and displays on a textbox as html, or connect the 21 port for ftp service, is the same)

So that is what I did:
1) placed a correct crossdomain.xml on "domainB" (allows everything from everyone, using wildcards)
the file is www.mittelmedia.it/crossdomain.xml
2) placed a swf on "domainA" that is able to connect to "domainB" on the port you prefer
the file is
http://www.mittelmedia.it/clexperiments/client_cross.html

But what does happen? (really a big mistery, read further!!)
If I load my page on firefox, I can connect to www.mittelmedia.it on port 80 and 21 if I try also 21, and also on www.adobe.com because also adobe.com got the same exact crossdomain.xml and my clips obviously finds it
But if I try loading the SAME page on Internet Explorer or also with Firefox BUT on another pc than mine, it dispaches me the error [SecurityErrorEvent type="securityError" bubbles=false cacelable=false eventPhase=2 text="Error #2048"]
and does not allow me to connect!!!
This is very very very strange, because I know that from local due to developer settings, we can connect wherever we need without any policy need... but these files are all online and in fact, I cannot load other sites that have not their crossdomain.xml on their root. So, on my mozilla firefox all seems to work just as is meant to be on documentation I find.. but why it works only on one of my browsers and only on my pc?? this just doesn't make any sense!! please help me out to find what did I do wrong!






























Edited: 01/26/2007 at 02:17:27 AM by Nohup

View Replies !    View Related
I'm At A Loss
i'd like to create a "jeopardy"-style quiz game for use in an educational setting, but i have practically zero expereince with flash. the game doesnt need to be complicated, just categories with 5 questions, when $ amount clicked on, question is shown full screen, another mouseclick, back to category view. if at all possible, i'd like to be able to load dift categories and questions from a text file. can anyone point me in the right direction to get started with this? or is it beyond my very limited abilites?

thanx!

View Replies !    View Related
At A Loss, Here Is My .fla, Please Help
Hey everyone, I posted a few days ago asking for help but the suggestions I got didnt seem to get me anywhere, I've tried alot of stuff with no success, I think I need a real flash wizard to help me. I have this one last thing to do but I cant get it to work and its keeping me from moving forward on this project. Here is my fla (3 mb) http://notos.bartolsfeet.com/hall2.fla

What I'm trying to do is make a scroller so that everything but a medium sized rectangle is masked, and so the user can scroll up, down, left, right to view the entire movie (basically I'd like for everything in that fla to scroll in unison). I was hoping for something similar to this http://www.flashkit.com/movies/Effec...6691/index.php
but at this point as long as everything in that fla will scroll in unison with a 'mouse over' and the animations and actions still work will be PERFECT lol, I'm desperate!! ;P
Thanks alot to anyone who helps

View Replies !    View Related
At A Loss...
I am trying to create a drop down menu and I thought I had done everything correctly. Apparently, I have not because when you mouseover the menu item, the hand appears but nothing drops down. I've spent the day pulling my hair out and going over everything and can't figure out where I've gone wrong. I've attached the file of my monstrosity if anyone cares to take a peek.

Thanks so much!

Bridget

View Replies !    View Related
Var Loss
I create a var in one frame:

Code:
stop ();
_root.onEnterFrame = function (){
var tempUsername:String = userInput_txt.text;
var tempPassword:String = passInput_txt.text;
trace(tempUsername);
}
next_btn.onRelease = function (){
if (userInput_txt.length >= 6 && passInput_txt.length >= 4 && passInput2_txt.length >= 4){
if (passInput_txt.text == passInput2_txt.text){
gotoAndStop ("NewUser2");
delete _root.onEnterFrame;
}else{
alert_mc.gotoAndStop ("CreateUserError2");
}
}else{
alert_mc.gotoAndStop ("CreateUserError1");
}
}
cancel_btn.onRelease = function (){
if (saver.data.existingUser){
gotoAndStop ("Login");
}else{
alert_mc.gotoAndStop ("CannotQuit");
}
}
In the second frame that var (tempUsername and all of them) become undefined. Why is this? (The second frame is in the same scene)

View Replies !    View Related
I'm At A Loss
Ok, so i've been trying to use the hitTest function, i've done alot of reading of it, but i just cannot get it to work >_<
This is the layout of the current Scene;


_____________________________/ -------Rollover#_MC
Scene 1 ----- Logo_MC ----- Text_MC
_____________________________ -------Play#_MC

Ok so thats the deal, now.
When i click on Rollover_MC, i want it to play - Play_MC.
I've been trying with hitTest, i cant get it to play when i click, the problem is, i can click anywhere and it will play. Instead of just on the Rollover_MC.

My current script is;

Code:
onClipEvent (mouseDown) {
if (this.hitTest(_root.CPL.TextLoop.Rolloverone._xmouse, _root.CPL.TextLoop.Rolloverone._ymouse,true)) {
_root.CPL.TextLoop.one.gotoAndPlay(2);
} else {
_root.CPL.TextLoop.gotoAndPlay(15);
}
}
I'm willing to use a onRollOver if i could get that to work. Any help would be appreciated. Its the only thing left to do!

View Replies !    View Related
Loss Of Colour
When importing PSD files from Photoshop the colour output is different. What format can you use in Photoshop to ensure the same colour output in Flash? I am using Photoshop 6.

View Replies !    View Related
Possible Loss Of Quality
if i create a movie that is 100 pixels by 75 pixels, and i import a .jpg as a graphic... when i view this movie full screen, will the picture suffer from poor quality, or does the fact that flash uses vector graphics help maintain the picture quality?

View Replies !    View Related
PLEASE HELP.... PLEASE(Loss Of Ideas)
Hi guys..

I think i have tried everything here but this is not working.. I need help.. any help will be greatly appreciated..

I have 2 scenes in a movie a preloader and the main scene with 3 frame labels (1,2, and 3).. I also have a button called Navigate which when clicked opens a movie clip.. it shows a drop down Page 1, page 2 and page 3.. When one clicks on either of those 3 page numbers i want it to goto the appropriate frame label.. but it does not do so..

I am attaching the fla for your reference to see what is happening.

Thanks for your help
Uday

View Replies !    View Related
Jpg Quality Loss
I creating a simple photo site that dynamically loads jpg's through loadMovie and my problem is flash seems to be recompressing my jpgs and I'm getting some pretty unacceptable quality loss ( banding, artifacting).

I didn't notice this last night at home (using MX) but I noticed it today at work using MX 2004.

If I just load the jpg straight into the browser it is acceptable but if I load the same jpg with flash in a browser the quality degrades.

Is this normal? Can I make it so Flash doesn't recompress my files?

hers's he simple code I'm using:


Code:
this.createEmptyMovieClip("holder", 1);
holder.loadMovie("photos/"+(--num)+".jpg", 4);


Player quality settings are on high.

Site can be viewed here, the second bird shot or the plane shot are perfect examples

http://s89995399.onlinehome.us/

bird:

http://s89995399.onlinehome.us/photos/17.jpg

plane:

http://s89995399.onlinehome.us/photos/9.jpg

View Replies !    View Related
Var Loss In Scenes
Why is it whenever my flash movie enters a different scene all the variables from the other scene is erased? Is there any way to prevent this from happening?

View Replies !    View Related
Swf Byte Loss
i'm just wondering if anyone else has noticed problems when uncompressing swf files out of zip archives?

often i have swf files that are off by 2 - 6 bytes when they come out of the archives. we are currently using zip archives to transport media between servers. i'm wondering if it is a zip problem or if it is a compression problem. switching to a new archiving method (.tar) is possible, but a huge level of effort becuase a lot of the .zip's are created by applications so it will require code changes both in the applications that create them and the apps that read them. it would be much simpler to just add in a compression property to stop compressing the files.

has anyone else run into this problem before?

View Replies !    View Related
WMV To FLV Without Quality Loss
is there anyway to convert a WMV movie to a FLV file with out loosing video quality ?

View Replies !    View Related
Loss Of Sound In MX
I am running a fairly large flash mx fruit machine simulation program as a windows application. Every spin of the reels I create a new Sound() object,
attach the spin sound and start it, then stop it when the reels stop.
There are also a feew other sounds for holds etc. which happen frequently.
I have tried for days to fix this problem, but after a number of spins the sound distorts and then disappears completely. Does anyone have any ideas how I can fix this. Your help would be most appreciated, thanks.

View Replies !    View Related
Sound Loss
For some reason when I embed a quicktime movie in a flash swf when I publish it I lose the audio track does anybody know why?

View Replies !    View Related
Memory Loss
I used to do a lot in Flash, but have never considered myself to be an action script guru. However, the last time I did anything beyond creating motion tweens was in Flash MX, and right after it was released, so it's been a few years. Anyway, I have gotten to the point of not even knowing proper syntax in AS, but if I could find something basic (similar to WebMonkey's html cheat sheet) that would kick my brain back into gear I could catch up fast. Can anyone point me to some primers that would help my brain shake the rust off? I'd appreciate it.

View Replies !    View Related
FLV TO 3 GP AUDIO LOSS
Please help me with this one:
Using RHEL4 running fms2. The .FLVs created by FMS play well (include audio as well as video), however, when they are converted to 3gp using ffmpeg, they retain the video but loose the audio.
Any one??? Please??

View Replies !    View Related
Loss Of Focus
Hi
Sorry to sound like a div head - but I have a .swf background and I use javascript to open a straight bowser window. This is fine, but when I click the mouse on the .swf (now the background) the browser window looses focus. Is there anyway of keeping the browser window in focus, while being able to interact with .swf file behind?

Here is the code I presently use

button_mc.onPress = function(){
getURL ("javascript:NewWindow=window.open('','newWin','wi dth=800,height=700,left=200,top=100,toolbar=Yes,lo cation=Yes,scrollbars=Yes,status=Yes,resizable=Yes ,fullscreen=No'); NewWindow.focus(); void(0);");
}

Thanks in advance
R

View Replies !    View Related
Totally At A Loss.
Been trying to figure out how I can make this little jetplane thingy I made not pass the sides of the screen...

This is my code on the jet.


Code:
onClipEvent(load){
speed = 20;
xb = 20;
yb = 20;
}

onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
xb += speed;
}else if(Key.isDown(Key.LEFT)){
xb -= speed;
}
if(Key.isDown(Key.DOWN)){
yb += speed;
}else if(Key.isDown(Key.UP)){
yb -= speed;
}
this._x = _x + (xb - _x) / speed;
this._y = _y + (yb - _y) / speed;
}
Now I need to get my borders to stop the jet from moving. The borders are simple lines (line tool, 1px each) along the sides of the stage. Each are called (in instance name, they're each movieclips) bordertop_mc, borderbottom_mc, borderleft_mc, and borderright_mc.

Now, I cant figure out a way that will make the ship stop in its tracks without it going haywire... I understand how hittest works, but I just dont know how to try and make the jet_mc movieclip stop moving completely at collision with a border, and still be able to have it go back in another direction when I press the opposite (say its at borderleft_mc, hit the right key and it'll go right, without it staying stuck on the borderleft_mc)

byeah... I don't know.

View Replies !    View Related
Performance Loss
Hi,
I have a strange performance problem, the site I have done performs fast on my PC but when itīs uploaded it performs awfully (like a 60% performance loss). The site itīs uploaded on a free server of tripod.
If I have two browsers one with the local main page opened and one with the web main page opened at the same time, the local file performs great but the web donīt.
Could the banners that they add to the site and the code that they use to display the banners be the cause of that performance lost?

maybe this thread is not very related with AS but I didnīt know were to put it, and since my site uses AS to do almost anything I put it here.

the site url address is:
http://polacofede.tripod.com

thanks,
Polaco

View Replies !    View Related
**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,

View Replies !    View Related
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 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
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
Loss Of Fluidity On Release
I am trying to understand the scripting needed for movie commands. I have used buttons before (i.e. "on (release), "on (rollOver)") but what I want to do is know how it works with movie events. Here are my questions:

1) If on rollover I want the movie to play from frame 2 to frame 20 and stop what would I write for the scripting?
2) Same button, but what would I use for the rollout feature? (I have 21-40 as the same as 1-20 but reversed)
3) Also, how would you write out the scripting if I wanted the same animation as the rollout for the release of the button, without initiating the rollout animation again after I moved my mouse off of the movie?

Is it better to just use a button hit area for what I want? Or do the "onClipEvent" coding?

Thanks a lot
ZogDog

View Replies !    View Related
At A Loss, Could You Give Me An Idea?
thank you. i have a site that i am developing http://www.starband.com/sales, username moon, password landing. under the top tool bar, supporting documents, module 5...if you select any of the links to the right (using ie6) they replace my entire browser window with a blank page. i am using colin moocks getURL javascript pop up script. i have used it on other sites with perfect success. do any flash gurus or heavyweights have any idea why this is happening? i would really appreciate any insight.

View Replies !    View Related
Button Quality Loss
When I import a transparent image (both GIF and PNG) they look perfectly fine when I test them. However, when I make a button and place these together as a button (up, over down, hilt), the images suffer quality loss. I've explored all my options and I don't know how I can preserve the quality.

View Replies !    View Related
RemoveMovieClip Memory Loss?
To learn flash, I'm creating a game.. Collapse.. SameGame.. Ya know, clicking on the like colored blocks makes them go away, object of the game is to make them all go away.

When the screen is created, I do:

code:
blocks[col][row] = _root.attachMovie(bt,bid,bid);


as often as needed, where bt is the blocktype, and bid is a unique number built off of the row and column..

When moving the blocks down, I do:

code:
for (var a=1; a <= dispwidth; a++) {
var t = new Array();
var tc = 1;
for (var i=1; i<= blocks[a].length; i++) {
if (blocks[a][i] != undefined) {
t[tc] = blocks[a][i];
t[tc]._y = fixY(tc);
t[tc].row = tc;
blocks[a][i] = undefined;
tc++;
}
}
blocks[a] = t;
}


This works as expected.. What I'm wondering..
Would flash still have memory allocated to the blocks[col][row] movie clip, although I didn't do a blocks[col][row].removeMovieClip(); ?

(Note: I have tried it with the removeMovieClip() but then, it doesnt act as it should. Acts as though t[] is just a pointer to blocks[] instead of a seperate array)

View Replies !    View Related
Loss Of Actionscript On Import
flash mx
I drag a movie clip from the library to the stage of a second fla, It does not bring any actions internal to the clip being imported , neither do the actions refer to levels in the second fla file to which its imported. Do I really have to recreate all the actions even stop(); or is there a neat way of preserving them?

any ideas out there?

thanks norciaman

View Replies !    View Related
Loss In Sound Quality
whenever i change the sound clips from event to stream, the quality just goes down the toilet.

is this normal? can anything be done about it?

View Replies !    View Related
Loss Of Layer Transparency
I am currently working on a Flash MX 2004 movie, which involves the staged assembly of a number of fireworks PNG images with transparent backgrounds. I have been able to place images on up to 10 layers at frame one of the timeline and these have successfully retained the transparency. However as soon as I add an image to the 11th layer the item in layer 1 becomes hidden. Adding subsequent layers appears to obscure layers 2, 3 and so on.

I have attempted to remove some of the layers from the main timeline and placed them in another graphic symbol thus only retaining a small number of layers within the main movie unfortunately I still end up losing graphics which should be visible.

Can anyone come up with a way of overcoming this problem?

View Replies !    View Related
Loss Of Layer Transparency
I am currently working on a Flash MX 2004 movie, which involves the staged assembly of a number of fireworks PNG images with transparent backgrounds. I have been able to place images on up to 10 layers at frame one of the timeline and these have successfully retained the transparency. However as soon as I add an image to the 11th layer the item in layer 1 becomes hidden. Adding subsequent layers appears to obscure layers 2, 3 and so on.

I have attempted to remove some of the layers from the main timeline and placed them in another graphic symbol thus only retaining a small number of layers within the main movie unfortunately I still end up losing graphics which should be visible.

Can anyone come up with a way of overcoming this problem?

View Replies !    View Related
LoadMovie - I'm At A Complete Loss...
my situation: dire
my timeframe: non-existant
my ability: aparrently shattered
my version: Flash MX 2K4

my task: i am creating a projector file for use on CD. this exe file has numerous scenes - some forms - and most importantaly - movie clips in specific scenes.

My problem: at first I thought it was a great idea to jsut embed all the movie files into the exe. Not a bad idea until i realized there would be approx 20-25 30MB+ Files all together. I imported - and now the files it too large to export without getting memory errors (and im running a near new p4 - vaio)

My conclusion: i know now that I should have used loadMovie right off the bat. The problem is I have NO IDEA how it works.

My question: can anyone provide me with a code - or a tutorial as to how this works? Very simple concept... user clicks on a button. buttom opens a nes scene which has some animations (for arguement sake - lets say movie curtins opening) then - i need to call an external movie (call it movie.swf) located in a folder called 'videos' which is located on the root of the disk.

I am at a complete loss - and have zero time to get this done.

Any help will be handsomly rewarded with simles and sighs of relief.

thanks flashers!
RR

View Replies !    View Related
Color Loss From SWF To Animated Gif
Hi all,

When I attempt to convert an animated logo from an swf to animated gif, I get a horrendous color loss. I have messed with all of the property settings, adaptive, 256 color, smooth - no luck.

I am close to just putting in some javascript code that will put up the swf file if they have flash installed and leaving the static if they don't. Is there something I am overlooking to get an exact color match or is this too much to ask of a gif animation?

Here is the page with the logo:

http://www.icebuddy.net/

Any advice would be greatly appreciated!

Thanks,
Ursi

View Replies !    View Related
Copyright Đ 2005-08 www.BigResource.com, All rights reserved