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








Error


When I add the .swf file to my Dreamweaver site - I get the error underneath when I attempt to debug it ---

Warning: Attributes and values for the <EMBED> tag vary by plug-in. Please check that all attributes and values are valid.
Microsoft Internet Explorer 4.0

error on line 139
embed src="FinalCS.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="530" height="340"
also lines 181, 201, 221, 297


Can anyone help me on this ??

ty ..

Julia




FlashKit > Flash Help > Flash MX
Posted on: 08-03-2002, 03:56 PM


View Complete Forum Thread with Replies

Sponsored Links:

**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
[F8] Flash Currency Handling Has Error.NumberFormat Error, Is Losing A Dollar / Pound
When I add two numbers together Flash adds them fine. If I use the Locale to format it as currency, Flash will lose a dollar! This only happens on certain combinations of numbers. I've been banging my head off a wall on this. Paste the script below into an empty flash document to recreate the problem.

Anyone with any ideas of how to solve this please help

code: import mx.controls.*;
import mx.format.NumberFormat;
import mx.format.Locale;
import mx.format.locales.Nl;
import mx.format.locales.*;

var iPaid:Number = 0;
// simulate strings from a textinput field
var sValue1:String;
var sValue2:String;
Locale.registerLocale(new En_US());
var fmt:NumberFormat = new NumberFormat(Locale.currentLocale.currencyFormat);
sValue1 = "226.89";
sValue2 = "28525.11";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Where's my money!!!");

sValue1 = "226.11";
sValue2 = "28525.89";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Any Ideas!!!");

View Replies !    View Related
Error Error Adobe Flash Player Has Stopped A Potentially Unsafe Operation
Dear Sir,

This is regarding the error which i am getting when i open one perticuler adobe application

"error adobe flash player has stopped a potentially unsafe operation "

I got one cisco flash presentation i am not able to open the file because of this error. It would be really helpfull for me if you could guide how to solve this problem.Awaiting your reply.I would appreciate your earleast reply

Regards
Lijesh.

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

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

My AS:


Code:
import flash.external.*;

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

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

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
Sandbox Error With LoadMovie (access Before Fully Loaded Spits Error)
I have read all the posts on sand box errors. I have tried everything I have found to disable them. It took for ever but I figured out that after I call a loadMovie() if I do anything to the clip as it is being loaded before its fully loaded it spits a sandbox error, then since I have a mouse event attached it floods my trace window with about 50 error messages a second on a rollover. In my case I am using a simple setInterval to check and see if I MC has been loaded so I can attach the mouse events too it. Trouble is when run locally (just has to be right now). When it checks the bytesloaded if its not 100% it freaks out like the world is going to end. I have to set my setInterval to 10000 just to make sure each clip has time to load and when your loading 45+ images its just a pain in the ass to wait. Has anyone else run into this issue and found away around it?

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 #1010: A Term Is Undefined And Has No Properties - Useless Error Message
I hate runtime errors!


ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties.
    at Image/setImage()
    at Instructions/preNavigateCallback()
    at Instructions/nextSlide()

The issue is that I deleted a movieclip from the stage, but the code referencing that clip was not changed.

Why can't the error say something more useful, for example, including the line number, or the actual "term"?


ActionScript Code:
TypeError: Error #1010: A term is undefined and has no properties.
    at "container.guide.visible"
    at Image/setImage() : line 214
    at Instructions/preNavigateCallback() : line 186
    at Instructions/nextSlide() : line 103

Does anyone know why it is so damn vague!? I realise that maybe line numbers probably get lost once compiled, but these kinds of errors always cost me so much debugging time, and are very frustrating - is it impossible to provide the "term" though?.

And does anyone have any good advice on how to avoid them, or track them down with the limited amount of info supplied?

Many thanks,
Dave

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
Strange Error: Error Opening Url File (that Is No Longer Loading Into Movie)
I had a few external swf's loading into my main movie, and after several revisions I went through my directory and deleted the swf's that were no longer being used.
Now I am getting an error that one of them cannot open, (it is one of the deleted that I am no longer using)
I know where the code should be, because of the timing of when the error appears in the output window, but I cannot find
code anywhere telling this movie to load.

Any ideas about what I could have done and how to find it?


Here is the actual message:
Error opening URL "file:///P|/Web%20Projects/CBS/Natri/NATRI%202003/hosted.swf"

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
**Error** Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax Error: Extra Char
Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax error: extra characters found after end of program.
}

I am new to importing classes and I have been practicing making a photo gallery. I am stuck and I want to know if someone can help me with the error I am getting.

If it is convenient, you can download and test my .zip at www.dhtmlguy.freeservers.com

Thanks in advance!

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: Error #2094: Event Dispatch Recursion Overflow.
??? what the heck is this error from?

Error: Error #2094: Event dispatch recursion overflow.


Code:
package com
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.EventDispatcher;

public class ThemeButton extends Sprite
{
public function ThemeButton(str:String)
{
graphics.beginFill(0xFF0000);
graphics.drawRect(0,0,100,25);
graphics.endFill();

var t:TextField = new TextField();
t.text = str;
t.selectable = false;
t.autoSize = TextFieldAutoSize.LEFT;

addChild(t);

addEventListener(MouseEvent.CLICK, p_onClick);
}
private function p_onClick(event:MouseEvent):void
{
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
}
}
what am i doing wrong? i thought this is how i did other events. why is the error happening.. i don't get it

View Replies !    View Related
I Am Getting Error:TypeError: Error #2007: Parameter Listener Must Be Non-null.
I converted this code from actionscript2.0 to 3.0 and it is giving type error:TypeError: Error #2007: Parameter listener must be non-null.
at flash.events::EventDispatcher/addEventListener()
at live_fla::MainTimeline/frame1()



function playLiveStream()
{
nsPlay = new NetStream(nc);
//nsPlay.addEventListener(NetStatusEvent.NET_STATUS, event);


trace ("the NetStream status information");
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var client:Object = new Object( );
client.onMetaData = function(infoObject:Object)
{

trace("onMetaData");

// print debug information about the metaData
for (var propName:String in infoObject)
{
trace(" "+propName + " = " + infoObject[propName]);
}

};

}



// trace the NetStream status information
//nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
// function netStatusHandler(event:NetStatusEvent)
function netStatusHandler(evt:NetStatusEvent): void
{trace("Trace1")
// switch (event.info.code) {
switch (evt.info.code) {
case "NetConnection.Connect.Success":
playLiveStream();
videoLastW = 0;
videoLastH = 0;
videoSizeTimer = setInterval(updateVideoSize, 500);
break;
case "NetStream.Play.StreamNotFound":
trace("Connection failed: Try rtmp://[server-ip-address]/live" );
break;
}

}

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
Error Handler LoadMovie (Error Opening URL "http:)
I'm loading several foto's which are stored in a database in a movieclip.
The foto's are in different sizes so I use a repositioning function when the foto is loaded

ActionScript Code:
onClipEvent (data) {
_parent.reposPic();
}


However if the foto linked in the database (which I don't have control of) is not found. (Error opening URL "http://www.mysite.nl/test.JPG")
onClipEvent(data) does not do anything.

Is there a way to handle the error message so I can load a 'file not found' image instead?

Cheers,

Leon

View Replies !    View Related
**Error** Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax Error: Extra Characters Found After End Of Program.
Scene 1, Layer 'actions', Frame 1, Line 664: 1087: Syntax error: extra characters found after end of program.
}

I am new to importing classes and I have been practicing making a photo gallery. I am stuck and I want to know if someone can help me with the error I am getting.

If it is convenient, you can download and test my .zip at www.dhtmlguy.freeservers.com

Thanks in advance!

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: Error #1023: Stack Overflow Occurred.
This is the code of my Flash component for Flex.
It loads 2 images, one with a "Loader" and the other with a "UILoader" and a progressbar.

When the completeHandler function is executed, the error message " Error #1023: Stack overflow occurred." appears. (The whole message is a the end of the Post)
The code line which does this error is: ImageContainer2.addChild(myUILoader2);
When I take it away, no error anymore, but no image too!


package {

import flash.display.*
import flash.text.*
import mx.flash.UIMovieClip;
import flash.net.URLRequest;
import flash.events.*;
import fl.containers.UILoader;
import fl.controls.Label;
import fl.controls.ProgressBar;
//import fl.controls.progressBarClasses.*;



public class mcbigImage extends UIMovieClip
{

// Define public setter method.
[Bindable (event="bgImageChanged")]
[Event('bgImageChanged')]
[ChangeEvent("change")]
public function set bgImage(img:String):void
{
var ldr:Loader = new Loader();
var url:String = img;
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
this.ImageContainerMirror.addChild(ldr);
dispatchEvent(new Event("bgImageChanged"));
//this.testTXT.text = String(ldr.content);
}

[Bindable (event="bigImageChanged")]
[Event('bigImageChanged')]
[ChangeEvent("change")]
public function set bigImage(img:String):void
{
ImageLoader.visible = true;
var myUILoader2:UILoader = new UILoader();
myUILoader2.autoLoad = true;
myUILoader2.source = img;
myUILoader2.scaleContent = false;
myUILoader2.load();
ImageContainer2.addChild(myUILoader2);

var myProgressBar:ProgressBar = new ProgressBar();
myProgressBar.source = myUILoader2;
myProgressBar.move(218, 147);
myProgressBar.addEventListener(Event.COMPLETE, completeHandler);
ImageLoader.addChild(myProgressBar)

function completeHandler(event:Event):void
{
myProgressBar.removeEventListener(Event.COMPLETE, completeHandler);
ImageLoader.visible = false;

}
dispatchEvent(new Event("bigImageChanged"));

}
}
}

This is the whole error message:

Error: Error #1023: Stack overflow occurred.
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/mx.managers:SystemManager::Stage_resizeHandler()[C:devflex_201_gmcsdkframeworksmxmanagersSystemManager.as:2429]
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()

View Replies !    View Related
AS3 Error #1086: Syntax Error: Expecting Semicolon Before Btn
1086: Syntax error: expecting semicolon before button.
HI

PLs help me
import fl.transitions.Tween;
import fl.transitions.easing.*;
var homeX:Number = 503;
var homeY:Number = 328;

var aboutX:Number = 505;
var aboutY:Number = 829;

var princeX:Number = -336;
var princeY:Number = 317;

var princessX:Number = 1470;
var princessY:Number = 316;

var galleryX:Number = 489;
var galleryY:Number = -284;

var xTween:Tween;
var yTween:Tween;

xTween = new Tween(main_mc,"x",Strong.easeInOut,main_mc.x,homeX ,2,true);
yTween = new Tween(main_mc,"y",Strong.easeInOut,main_mc.y,homeY ,2,true);

abt_btn.addEventListener(MouseEvent.CLICK, navigate);
prince_btn.addEventListener(MouseEvent.CLICK, navigate);
princess_btn.addEventListener(MouseEvent.CLICK, navigate);
gallery_btn.addEventListener(MouseEvent.CLICK, navigate);

function navigate(event:MouseEvent):void
{
if(event.target == abt_btn)
{
setTween(aboutX,aboutY);
}
else if(event.target == prince_btn)
{
setTween(princeX,princeY);
}
else if(event.target == princess_btn)
{
setTween(princessX,princessY);
}
else
//if(event.target == gallery_btn)
{
setTween(galleryX,galleryY);
}

}

function setTween(tweenX:Number,tweenY:Number):void
{
xTween.begin = main_mc.x;
yTween.begin = main_mc.y;
xTween.finish = tweenX;
yTween.finish = tweenY;
xTween.start();
yTween.start();

}

xTween.stop();
yTween.stop();

}

this is my code but i am getting 1086 syntax error :Expecting semicolon before gallery button pls help me to recover it

View Replies !    View Related
Syntax Error Error? Quick Question
I have some code to stream a mp3 and a slider to control the volume. It works fine. I put it into another flash file and then it doesn't. My original is in Flash 8, and the new is in MX2004, I figure that this is why I've got the error message. So I converted the MX2004 to F8 and still I get an error message with my code. Now I can't stream this sound, could someone point out my mistake to me? Thank You


Code:
var game_sound:Sound = new Sound();
game_sound.onLoad = function(success:Boolean):Void {
if (success) {
trace("Sound Loaded");
game_sound.start(loops,1000);
game_sound.setVolume(20);


}
};
game_sound.loadSound("atmosphe-PSION-3280_hifi.mp3", false);

View Replies !    View Related
Strange Error - Temp.as - Error #1046
Hi all,

I am converting a project to AS3. However I get a stranger error :

**Error** ... emp.as : Line 1, Column 210 : [Compiler] Error #1046: Type was not found or was not a compile-time constant: List.
À€



The strange thing is that THERE IS NO FILE NAMED temps.as. I've searched everywhere. I know that I did not create any, so maybe Flash 9 does it. Anyone has got an idea about that?

Another strange thing is that after the error, instead of writing the code responsible for it, there is this 'À' which is actually followed by a square. I m a bit confused.

Please help, thanks

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 1023 Stack Overflow Error
I am using Flex Component Kit to create components for both flash and flex. My component works fine in Flash but when I convert it to flex swc using "Flex Component Kit" and use it in flex It gives me a Stack Overflow error. Below is the error:
undefined
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/Stage_resizeHandler() [E:dev3.0.xframeworksprojectsframeworksrcmx managersSystemManager.as:2581]

Could any body suggest me where to look to resolve this error. Do I need to override setSize method in Flash or what could be the possible area to look for. I am not dispatching any event nor listening for any event currently.

View Replies !    View Related
Simple Error Opening URL Error Message?
Hey All,

I'm sure this is a really easy question but why does this happen when testing the movie?

I have set the permission to read and write but for some reason there is an error opening the file why does this happen and what do I need to do to fix it?

thanks for you help

stefan

View Replies !    View Related
Strange Error - HELP : Temp.as - Error #1046
Hi all,

I am converting a project to AS3. However I get a stranger error :

**Error** ... emp.as : Line 1, Column 210 : [Compiler] Error #1046: Type was not found or was not a compile-time constant: List.
À€



The strange thing is that THERE IS NO FILE NAMED temps.as. I've searched everywhere. I know that I did not create any, so maybe Flash 9 does it. Anyone has got an idea about that?

Another strange thing is that after the error, instead of writing the code responsible for it, there is this 'À' which is actually followed by a square. I m a bit confused.

Please help, thanks

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
AMFPHP Help. Error 500 - Internal Server Error.
Hi,

I feel kind of stupid since Lee said it was an easy install yet I somehow found a way to get an error. Anyways, I downloaded the latests 1.9beta2, installed in root directory, and went to my test spot: http://www.mattmazzola.net/amfphp/browser/ and voila "Error 500 - Internal Service Error." I was so excited about doing this tutorial but now it seems like i'll never enjoy the amfphp . I went to the amfphp.org website to look for installation help but they seem to talk more about gateway.php configuration which lee hasn't gone over yet and didn't seem like it would help my case. Also, I called my hosting provider 1and1.com, they verified that i have PHP4 and PHP5 installed and they said I need to talk with developers to find out why the error may happen in order for them give me a good answer since it's just a generic error. It's understandable that they can't give answers for all these 3rd party applications so here I am. Anyone have any ideas? Can anyone else with a 1and1 account try to install to see if it's their servers or if it's just some weird configuration i have?

-prince

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
Syntax Error: Can Anyone Spot The Error Pls?
I'm getting a syntax error on this code, can anyone spot where it's gone wrong?
Note: it works using Actionscript 1.0, but not 2.0 for some reason.

This is the error message:
**Error** Symbol=control, layer=actions, frame=1:Line 1: ')' expected
if (_parent:bounce == false) {

//CODE STARTS:
if (_parent:bounce == false) {
_parent:speedXscale = Number(_parent:speedXscale*_parent:friction)+Numbe r((_parent:xscale-_parent:_xscale)*_parent:ratio);
_parent:speedYscale = Number(_parent:speedYscale*_parent:friction)+Numbe r((_parent:yscale-_parent:_yscale)*_parent:ratio);
setProperty ("../", _xscale, Number(_parent:_xscale)+Number(_parent:speedXscale ));
setProperty ("../", _yscale, Number(_parent:_yscale)+Number(_parent:speedYscale ));
}
//CODE ENDS

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 #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
Dispatch Error Vs Throw Error
What is the difference between dispatching an Error and throwing one?
Check this out:

ActionScript Code:
package
{
    import flash.events.ErrorEvent;
    import flash.events.EventDispatcher;
   
    public class A extends EventDispatcher
    {
       
        public function throwIt():void
        {
            throw new Error("A::throw() doesn't contain any code");
        }
       
        public function dispatchIt():void
        {
            dispatchEvent( new ErrorEvent(ErrorEvent.ERROR) );
        }
    }
}

ActionScript Code:
var a:A = new A();

a.throwIt();
//a.dispatchIt();

trace("line 6 of FLA");

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
Copyright © 2005-08 www.BigResource.com, All rights reserved