ActionScript 3.0 :: CS5.5 - Load XML Via A URLLoader And URLRequest To A Server

Aug 6, 2011

there you are, you set up your AS3 code to load XML via a URLLoader and URLRequest, as normal. You then take your XML file, and upload it to a server. You then run your program, and trace out the XML you receive. So far so great, and you see the results of your XML traced out. Then you change something on your XML, either adding to it or removing a line. You then run your program again from CS5.5, and trace out the XML, and it shows the same results that it did before you made any changes. I deleted the XML file from the remote server, and it is like it stored it in cache, and still able to read it. If I change the url or file name, it gives me an error, which it should.

If I point the url back to my remote XML file, and run the program again, it gives me the XML results I had in the beginning, before I made any changes to it (regardless if the XML file exists). The only fix I have found so far, is closing CS5.5, and reopening, and then it can see the changes. I did that, and it was able to see my XML changes on my remote server, but again, only one time. If I try to change anything, or delete the XML file, it still pretends as if its there, reading the results that it read the first time I run the program. Is this a cache issue? Anybody else experience this? I never remember running into this problem using CS5/CS4/CS3, only CS5.5. Of course, I can test it all locally first, and then upload the XML file to the remote server when I know that no other changes need to be made, but still, this is really weird!

View 1 Replies


Similar Posts:


Actionscript 3 :: Flash - URLRequest/URLLoader - Server Not Receiving Data?

Sep 11, 2011

I am trying to send a server "schooltraq.com/api/" variables for a request.My Code:

package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.*;

[code].....

How ever when I keep getting back "error:empty request". I emailed the site owner and he said that my program may be dropping the data during redirects.[URL]

View 1 Replies

ActionScript 3.0 :: Can't Load File From Server With URLrequest, But Works Locally

Dec 22, 2008

I have made a XMLloader with URLrequest, and it works locally by calling the file directly by its name ie. "myFile.swf". var presLoader:Loader = new Loader(); presLoader.load(new URLRequest("myFile.swf")); addChild(presLoader);

But when I uploaded the loader to the server, I have no file, only "URL not found"-error. So I found out that I should change to URL to "/Files/Images/subloader/myFile.swf" then it will load. But thats a real problem, because I have several loaders.

View 1 Replies

ActionScript :: Difference Between URLLoader And URLRequest?

Jul 8, 2010

What is the difference between URLLoader and URLRequest in Actionscript?

View 1 Replies

ActionScript 3.0 :: Refresh URLRequest And URLLoader

Jul 22, 2009

I need to parse a particular web page every 25 seconds in order to take some particular values that are frequently updated in this web page. I need the parsed values in order to dinamically fill some text inputs components. So I write the following script:

Code:
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;

[Code].....

With this script I'm able to get the webpage and parse the particular line of code that I need but only the first time! When the timer goes to zero the URLLoader function always loads the first version of the webpage and not the one that has been updated in the meanwhile! So I have always the same values! Using the trace function I have discovered that URLLoader loads the first version of the webpage. I don't know what is the problem here. Cache problem? URLRequest or URLLoader problem (maybe I have to clear the previous data?)?

View 5 Replies

ActionScript 3.0 :: Loading Variables Using URLLoader And URLRequest

Feb 18, 2010

I am building a simple swf that will load in variables from an asp page using a URLloader and URLRequest. The asp page loads in the current values from a SQL database but these values will change every second. My swf loops every 6 frames and loads the data. How much load this puts on the server? And when the server is busy might this cause a problem with the variables I am reading in?

Does AS3 run all actions on frame 1 before going to frame 2 etc? I don't know if this is the best way but my last variable in the ASP page is called Loaded and I test for it before moving on. My major concern is the load I am putting on the website but is this small? In firefox the status box constantly flickers transferring data from ... and waiting .. but in other browsers you can't see the activity.

View 2 Replies

ActionScript 3.0 :: TypeError 1034. Possibly A URLRequest/ URLLoader

Jan 8, 2010

Peek-a-boo, me again. I'm having some trouble with loading in a txt-file and I can't figure out why, as it works in a new .fla file as well. Here's the code in a nutshell:

PHP Code:
goldstar.addEventListener(MouseEvent.MOUSE_DOWN, showHS);
var weekrequest:URLRequest = new URLRequest("weekscores.txt");
var weekloader:URLLoader = new URLLoader();

[Code]...

View 4 Replies

ActionScript 3.0 :: URLRequest, URLLoader - DateChooser Component Is Not Supported?

Sep 3, 2009

I have written code to read an XML file by using URLRequest and URLLoader in ActionScript 3.0. Code is pasted below. This runs well in AS3.Problem I am facing is because I wrote this in AS3, I am not able to use the DateChooser component in another part of the flash module because it seems like DateChooser component is not supported in AS3. So I want to migrate my below AS3 code back to AS2.
 
**** Code in AS3 (I need help in writing equivalent code in AS2) :-
 var xmlText:XML ;var xmlReq:URLRequest = new URLRequest("myFile.xml");var xmlLoader:URLLoader = new URLLoader();

View 3 Replies

Flash :: Get Associated URLRequest From Event.COMPLETE Fired By URLLoader

Feb 25, 2010

So let's say we want to load some XML -

var xmlURL:String = 'content.xml';
var xmlURLRequest:URLRequest = new URLRequest(xmlURL);
var xmlURLLoader:URLLoader = new URLLoader(xmlURLRequest);

[Code]....

I hate that you can't just say e.target.src or whatever - is there a good way to associate URLLoaders with the URL they loaded data from?

View 3 Replies

Actionscript 3 :: Package For URLLoader And URLRequest In Flash Builder?

Jun 15, 2011

I am trying to setup two variables:

var xmlURLLoader:URLLoader = new URLLoader();
var xmlURLRequest:URLRequest = new URLRequest();

I am taking some old AS code and trying to plug it into Flash Builder. I am getting a "Type not found."warning with those variable declarations. Does anyone know which package to import?

View 1 Replies

Actionscript 3 :: Combining URLRequest, URLLoader And Complete Event Listener?

Feb 27, 2010

when handling data, i always have to write the following:

var dataSourceRequest:URLRequest = new URLRequest("/path/file.xml");
var dataSourceLoader:URLLoader = new URLLoader(dataSourceRequest);
dataSourceLoader.addEventListener(Event.COMPLETE, handleDataSource);

while i can understand the usefulness of these 2 objects and event listener being separate, since they often work with each other i'd like to know if there is a method that will combine them all? the closest i can get is this, but it's a bit pointless/nesting:

var dataSourceLoader:URLLoader = new URLLoader(new URLRequest("/path/file.xml"));
dataSourceLoader.addEventListener(Event.COMPLETE, handleDataSource);

what i'd really love would be something that automatically combines the URLRequest, URLLoader and completed event listener like this:

var dataSource:Whatever = new Whatever("/path/file.xml", handleDataSource);

View 2 Replies

Actionscript 3 :: Get The Data Of The URLRequest From The Complete Event Handler For A URLLoader?

Mar 17, 2011

I have a queue of messages that I would like to send to a URL and I would like to remove messages from that queue only after I am sure they have been successfully sent. To do this I need to know in the COMPLETE event for the URLLoader exactly what data was sent so that I can remove the correct message from the queue.That is if I have something like this.

var urlRequest:URLRequest = new URLRequest(targetUrl);
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;

[code].....

View 1 Replies

ActionScript 3.0 :: Verify Image File Path Before Sending It To URLRequest/URLLoader?

Feb 12, 2011

is there a way to verify that an image file exists at the stated URL before passing that URL to various URLmethods?

View 0 Replies

ActionScript 3.0 :: Adobe Flash Player Has Stopped A Potentially Unsafe Operation URLloader URLrequest

Oct 29, 2011

I am working on a flash website that loads live inventory data from a public csv file publish by google docs.  the csv file is located at a public address on google docs server:[URL].. I am using a URLloader and URLrequest within my flash movie to grab this data and assign it to different variables.

It works great when I preview the movie in flash. However, when I go to publish the movie and preview the html file its loaded into in dreamweaver, I get a security warning from adobe flash player: Adobe Flash Player has stopped a potentially unsafe operation

I went ahead and published the html file that contains the swf file to the web, and when I go to my site, I don't even get the flash player warning; it just sits there like its trying to load the URLrequest and never completes.

I understand that flash player has a security measures that prevents flash files from accessing files outside of the server directory that the swf file is published to.  I know you can create policy xml files to tell flash it's okay to load the data, but those policy files have to be located on the public server from which the data is being grabbed. But it's not like I can waltz on to google's servers a stick a policy file in there!

Is there any way to tell the flash player it's okay to load this data without getting that security error?  I can't have the end user having to go into their flash settings and adding the location manually.  I just need it to work without the security warning.

Is there another method of loading data from an external server without tripping up flash player security? aka, something other than URLloader and URLrequest?

[Code]...

View 25 Replies

ActionScript 3.0 :: URLRequest To Remote Server?

Jun 1, 2009

Can I send and load variables to a php script on a different server? Hen I try I get a Error #2048: Security sandbox violation How do I get around this?

View 14 Replies

ActionScript 3.0 :: URLRequest To PHP File On Remote Server

Oct 22, 2009

I would like to do a URLRequest to a PHP file which contains xml, and the PHP file will be living on a seperate server from my flash file. I understand there are security issues in this sort of thing. figure out how to make this work?

View 2 Replies

ActionScript 3.0 :: URLLoader Not Same Running On Server

Jun 12, 2010

I am sending byte array data to php through a urlloader. Everything works fine when I run it locally on my computer. If I try to run it off my server,nothing gets sent to php, my Event.COMPLETE listener never fires.I have tried both absolute urls and relative urls, that didn't make a difference[code]

View 1 Replies

Actionscript :: Can't Make URLRequest Locally To Nginx Server

Nov 4, 2011

The same code was working fine on lighttpd and apache, recently i switched to nginx and the app started crashing when I run it localy however it runs fine with the same code inside a browser.Here is the source code that makes a request to the server.

public function ApiCall(methodName:String,params:Object=null)
{
super();

[code]....

The flash player just crashes without any meaningfull error message.I checked on the php side and the $_POST array is empty for some reason.

View 1 Replies

ActionScript 3.0 :: Flash - Use A URLRequest To Get Login Information From The MySql Server

Jul 26, 2009

I'm having a little trouble with the 3. I'm trying to use a URLRequest to get login information from the mySql server. It works great when I try to log in, but if anyone else from outside my network tries to log in, it just hangs. I'm on port 8080 using localhost. I've even tried changing everything to my IP address instead of localhost and allowing my tester to try, but it still hangs.

View 6 Replies

ActionScript 2.0 :: URLRequest - Send The Xml Data To PHP / PERL Script (server)

Dec 13, 2006

I have XML object formed and data ready to write to the server by means of server-side script. The code used on the server-side script is testing code available from the ActionScript 3.0 cookbook examples (by Joey Lott). It basically takes the XML object, parses it and writes some of the text node values into a textfile. What i want to achieve send the xml data from AS3.0 to PHP/PERL script, parse these data, write some variables from the xml object into a textfile on the server.

[Code]...

View 1 Replies

ActionScript 3.0 :: New URLRequest To Load A Page

Aug 29, 2011

I am using new URLRequest to load a page. I cannot seem to get it to load in the current page rather than create a new page. Here is my code;

Actionscript Code:
home.addEventListener( MouseEvent.CLICK, function(e){ navigateToURL( new URLRequest('http://www.site.com/page.html') ); } );

View 6 Replies

Flash :: Load A Variable In URLRequest?

Jul 19, 2011

what want to make is let people submit a URL and then show the image on the stage ..
so i went an wrote my code but it doesn't work as i expected .. here is the code

var myurl:String ; // a var to load the text in it
var reques:URLRequest = new URLRequest (myurl) ; // the urlrequest (i know that this only accept strings but what to do !!)
var loader:Loader = new Loader(); // the loader

[Code]....

View 2 Replies

ActionScript 3.0 :: Variable URLRequest - Topic1.swf To Load 0 Click Topic2 To Load Topic2.swf

Feb 17, 2009

If you click topic1 I want topic1.swf to load, click topic2 to load topic2.swf etc. What I am doing wrong with var url:String = "topic"[i]+".swf";?

[Code]...

View 12 Replies

Actionscript 3 :: Reading Server Error Messages For URLLoader

Jun 9, 2010

I have an URL loader with the following code:

public function getUploadURL():void {
var request:URLRequest = new URLRequest();
var url:String = getPath();

[Code]....

My problem is that this request might be wrong, and so the server will give me a back a 400 Bad Request, with a message to explain the error. If the Event.COMPLETE, I can see some message (a response) back from the server in the "data" field of the Event, but if onGetUploadURLError or getHttpStatus is called, it just says that the error code is 400 but does not show me the message associated with it.

The "data" field is undefined in getHttpStatus and it is "" in onGetUploadURLError. On the contrary, in getBaseURL, I get: {"ResponseMetadata":{...}} I checked and I do get a similar response in my browser for a wrong request, but I cannot see it.

View 1 Replies

Professional :: URLRequest Lost - Error 1046: Type Was Not Found Or Was Not A Compile-time Constant: URLRequest

Aug 12, 2009

In my movie i have a link button with following, simple, function creating a link:

[Code]...

lately i've associated a class file (.as) to my movie and immediately after, when publishing the movie i got the following error message: 1046: Type was not found or was not a compile-time constant: URLRequest. as well as a couple of other related error messages: 1180: Call to a possibly undefined method URLRequest. 1180: Call to a possibly undefined method navigateToURL. when i remove the link to the class file, the problem goes away. also, i have checked the class file for mentioning of "URLRequest" and nothing is there.

View 9 Replies

ActionScript 3.0 :: Load The URLRequest Into An Actual Movieclip?

Nov 13, 2007

I've decided to take the jump to AS3 now but im having a lot of issues... Im trying to load an external swf into a movieclip.

In AS2 it would be:

PHP Code:

var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object ();
mcLoader.addListener(myListener);
mcLoader.loadClip("mainLoader.swf","externalLoader_mc");

[Code].....

How can i load the URLRequest into an actual movieclip as i have done in AS2? As far as i know the load function only accepts one variable. ATM the external swf im loading is just going into thin air and i can't get anything to happen (i have the functions created to deal with the events btw).

Edit: Just fixed it by adding externalLoader_mc.addChild(myLoader);

View 10 Replies

Actionscript 3 - Flash.net.URLLoader Get Body From 500 Internal Server Error?

Sep 20, 2010

I'm trying to streamline my error reporting for internal testing. When I use URLLoader/URLRequest to load a page that responds with the 500 HTTP status code, I catch it with the IOErrorEvent.IO_ERROR, but can't find a way to get the response body. Unlike with Event.Complete, loader.data (My URLLoader) is an empty string.

Yes, I can use Fiddler/Firebug to get the actual response, but this would be good to catch intermittent/hard-to-reproduce errors when I don't have these running.

View 3 Replies

ActionScript 3.0 :: Sending Binary Data To Server Via URLLoader (Freezes App)

Dec 20, 2011

I'm trying to send about 1 MB of binary data to server via URLLoader. But when I call method load of this class, my application hangs for about 1-1.5 seconds, then uploading runs normally. How can I prevent it?

View 2 Replies

ActionScript 3.0 :: Load An .xml File Using A URLLoader

May 23, 2011

I have encountered an interesting problem when I try to load an .xml file using a URLLoader (within my own custom class). I have several configuration .xml files which I use to configure the application when it launches. For example, in the code below, myCustomLoader is a custom class I wrote that takes an .xml file as a parameter. The myCustomLoader class encapsulates all the instantiation of the URLLoader class and error handling etc. The code below operates as expected, the configuration files load into memory, and they're accessible throughout my App.


[Code]...

View 7 Replies

ActionScript 3.0 :: Load Text With URLLoader?

Dec 17, 2008

I want to use URLLoader to load a textified article from my joomla website [code]...

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved