Actionscript 3 :: Xml - XML Not Loading When Flash On Server?

Mar 29, 2012

I have some little flash graphs I made that pull data from an xml file and also expect a flashVar in the html. The flash checks the flashVar against the data in the xml file and then proceeds to display some numbers.

The problem arises when we put the swfs and xmls on the server. The flash just wont load the xml files. It will however load the xml files if they are placed on the root of the server. Strange right ?

In the flash the xmls are loaded on the same level. If I upload the swf's to a folder with the xmls files and call the flash into an html page (not on the same level) they wont load. For instance in the html I have:

param name="movie" value="/assets/flash/flashgraph-05.swf"

This is what I have inside the FLA / SWF

var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
xmlLoader.load(new URLRequest("myXML.xml"));

I would have thought as long as the XML and the SWF are together then the above should work right? However if I make a fixed path in the FLA to the XML it will work.

xmlLoad.load(new URLRequest("http://mysite.com/assets/flash/myXML.xml"));

View 1 Replies


Similar Posts:


Flash :: SWF Files Not Loading At Server

Aug 5, 2010

I just saw that some (only some) flash files (games) aren't loading in my website, but are in other servers. Most of the files do work. For example:(External) [URL] (My Server) [URL] It is the same file, but doesn't load at my server.

View 1 Replies

PHP :: Flash - Loading PNG File From Server

May 24, 2011

I need to loading a PNG file from a server into my flash project. What I want to do it be able to call a PHP page and send it a variable which I can do. Then I want to access a db and get a path for the image, I can do this too. What I'm not sure about is what to do then. What I need to happen is the PHP to return the PNG to flash somehow. Can I just add the PNG to the php page and use a loader somehow? I've been searching around google but most tutorials seem to be getting PNGs out.

View 3 Replies

Media Server :: Loading Flv In Flash From FMS - Not Working

May 12, 2009

We just moved FMS onto a new server and the fms seems to be working fine. But when I go to load a flv in flash using the component inspector i type in the content path for where the flv is located on the fms server and it just keeps saying 'Failed to load flv'. If i type the content path for the location on the old server it loads up fine. I honestly dont know what the problem is as everything is the same as it was on the old server just a different server with different IP address.

View 11 Replies

Flash :: Loading Swf From A Separate File Server

Dec 15, 2009

I am currently wondering if it is possible to load a swf that is sitting on another file server. I.e. I currently have a custom play bar swf which is embedded on a website (behind the company's firewall) which then loads swf content (currently in the same folder on the website server). The problem I have is bandwidth between remote sites is limited and streaming the swf content from the website server is not an option, however we do have a DFS set up to push all the swf content out to local file servers.

I have tried using a file:// path which works if you create a windows projector file however it doesn't work when embedded onto a website as it seems to try to access via http which the file servers are not set up for. So is it possible to get the play bar swf to load the swf content sat on a remote file server?

View 2 Replies

Flash App Loading Crossdomain.xml From App Server Fails?

Aug 2, 2011

I'm writing a web application using three tier architecture. I have three Amazon EC2 ubuntu servers. The first server handles the presentation of the application and includes my main flash file. The second EC2 instance represents my application server. It contains the AMFPHP files and corresponding web services. Finally, the third instance handles persistance and is running a MySQL database. Both the presentation and application servers are running an apache web server. I created security groups specific to each tier such that the presentation layer will accept all incoming traffic on port 80 while the application layer will only accept incoming traffic from the presentation server. This should allow anyone to request my web application from the presentation server but prevent anyone from accessing the web services on my application server.My flash application cannot make web service calls to my application server. When a request is sent, I never receive a response from the server and eventually receive a security sandbox error.[code]It seemed odd that I wasn't receiving a response, so I decided to try a couple of things:

1. I connected to my presentation tier via ssh and attempted to use lynx to connect to my application server's gateway.php. I was able to connect without any problems.

2. I used Chrome's developer tools window to observe network traffic when loading my site. I found that it is attempting to load the crossdomain.xml file (which resides in the root of my web server [/var/www] on the application tier) using a GET request; but strangely, it times out and fails. This is where I am confused. How come I can use lynx on the same machine to connect to the web server on the application tier but yet the flash app can't access the same file?

While running some tests, I decided to open up the application server instance's firewall such that it can receive http requests from my IP. As soon as I did this, the application being hosted on the presentation tier immediately began working (Received a response from the web service)! However, this means I would have to force my application tier to accept http requests from the internet in order to work, which is not something I want to do. I don't understand why making this change would allow the application to grab the crossdomain.xml file. If the application server's security group is set to accept incoming http requests from the presentation security group, it should have no problem acquiring the crossdomain. xml file residing in the web server root of the application server right? I've spent more time than I would like looking into this issue. I really would like to setup a three-tier environment for my application in which the flash application will be able to send web service requests to my application layer. The most confusing part about this is the fact that when I add my computer's IP address to the application server's firewall, everything seems to magically work as intended. Please correct me if I am setting my application up in the wrong way. I am basing my architecture off of the following:URL..

View 1 Replies

ActionScript 2.0 :: Flash8 Data Loading From Server Is Freezing Flash

Jun 10, 2009

I have an ASPX script that load the properties of a long list of objects from database (about 1000).

Then I have a spinning mc to entertain the user while data is loaded.

The problem is that it starts to spin, and then, at certain point of data reading the animation freezes indicating that Flash is too busy gathering and putting data into the LoadVars object (it restarts to spin after finish data reading).

Question is: there is a way to override this and force Flash to give priority to the animation? I think that's a very ugly behavior by the point of view of user and would be nice if it could be fixed.

Personally I cannot see another way to turnaround it but performing several smaller and consecutives database readings (to reduce CPU load), but I think that's a totally unaceptable solution...

View 1 Replies

ActionScript 3.0 :: SWF On Server A Loading From Server B

Dec 27, 2010

I have a SWF (which fully works offline).

In that SWF, there is a lot of data loaded from server A, which works just fine.

Then I want a google radar chart like this:

Everything works realy nice offline. But when the SWF is on Server A, the chart wont load.

I'm using:

ActionScript Code:
Security.allowDomain("http://chart.apis.google.com/*");
Security.loadPolicyFile(IP + "/crossdomain.xml");

[Code]....

I checked with tamper data, the request for the chart is send and status: Pending.

View 1 Replies

ActionScript 2.0 :: Loading External XML On An External Server Into Flash Movie When It Is Uploaded

Jun 4, 2004

[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

Swf Not Loading On Server

Jun 29, 2009

I embed the swf into a dreamweaver page and tested it in the browser and it works fine. When I uploaded it onto the server the swfs don't load. ??? like nothing is there.I would post code but I don't know what is relevant to post. Here is the link to the site URL... I am not sure if that is going to help. There are supposed to be two swfs(picture Viewers) one under Projects and another under Red Eye Gallery. Can anyone Help.

View 5 Replies

Loading .txt Files From Server?

May 13, 2009

I have an issue with a script I created that loads text strings from a file on my server.The swf file loads a message from a .txt file, displays it in an animation when the animation finishes it loops back to the start and loads the next message and displays it in the animation.
 
All works fine. However the script reads the text file from the server on every loop ( 3 seconds ) This will be hard on my server so... Is there a way to read the text file once only and then loop through the eight statements?

[Code]....

View 4 Replies

XML Not Loading Images On Server?

Oct 21, 2009

I have a flash site, which uses XML to load an image gallery, but it cant find the images on the server even though they are there. It works fine locally.In firebug, each image is listed in the net tab as found, but when you click on it, there is an error message..Plus an error page is listed for each of the images.If you click on one of the other button's in the gallery strip on the site, it tries to find Freeola's (my host) 'crossdomain.xml' file which doesn't seen to be there, could this be a cause?

View 1 Replies

ActionScript 2.0 :: Stream Video - Where To Start Flash Media Server And Flash Comm Server

Jan 24, 2007

i'm wanting to stream video or even just load it into my flash sites and not lag them....anyway i have had a few people tell me to look at flash media server and flash comm server. i have but i am really confused with it all...WHERE DO I START?? WHAT TO KNOW?? HOW TO DO IT??? etc

View 2 Replies

ActionScript 3.0 :: Loading .JPG's From Server And Reusing Them In .SWF

Feb 25, 2010

Suppose I want to load a .jpg from the server ONCE and then I want to reuse it a dozen times in my .swf... How can I achieve this without adding to the .swf`s file size? I was thinking copying its BitmapData a dozen times, but that adds to the file size, right?

View 2 Replies

Professional :: Xml File Not Loading From Different Server?

May 6, 2010

I have a simple flash banner that is pulling a number from an xml file on a different server. When it gets to the frame where the number should be it just says "transferring data from and will not actually pull in the number. Unfortunately I can't put the files on the same servers.below are the links and the xml code I'm using followed by the action script.[URL]

<?xml version="1.0"?>
<inventors>
<person>

View 5 Replies

Professional :: Swfs Are Not Loading From Server?

Dec 11, 2010

I have a problem. We have a website www.onlinerealgames.com which hosts the game developed by our company. Recently we wanted to change the template. We are testing the new template in a subdomain of ours which is www.onlinerealgames.in . Everything is fine except that the swfs in the server are not loading. Instead they are showing Movie Not Loaded. If I directly access the swf with the URL it showing the download option window.
 
We are having seperate database for both sites. Both have same swfs. If we change the source from .in to .com then the swfs are loading properly (in the src property of embed tag)

View 3 Replies

ActionScript 2.0 :: Loading MP3 From Remote Server

Feb 16, 2009

I am using the "loadSound" method to load an external mp3. The problem is I need to load the mp3 from a remoter server (the file is not local to the swf). From my searching, I can't seem to find out if this can be done.

My code follows:
this.createEmptyMovieClip("mcSoundHolder", this.getNextHighestDepth());
var sndAudio:Sound = new Sound(mcSoundHolder);
sndAudio.loadSound("[URL]", false);
sndAudio.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
this.start();
}};

View 0 Replies

ActionScript 3.0 :: External Swf Not Loading On Server?

Jul 17, 2009

I know many have had problems getting a child .swf file to load once put on the server though it would work perfectly on the local machine.

The solution is simple: absolute linkage - so lets say your child .swf is located in a folder named myFile on the root folder and your parent .swf is on the root, and in your AS3, you are linking to an XML file which is in the myFile folder inside of a folder name "xml" like so:

var xmlLoader:URLLoader = new URLLoader();
var url:URLRequest = new URLRequest("xml/myXml.xml");
var xmlData:XML;
xmlLoader.load(url);

[Code].....

View 1 Replies

ActionScript 3.0 :: Dynamically Loading Content From A Server?

Jul 6, 2009

little stuck on a project, need as much help as possible. I am creating a building directory for a touch screen kiosk app. this kiosk will have a virtual keyboard that i have created with an input text field, which hopefully will search a single file on the server that controls these kiosks. Then display the search results in a dynamic text field. What i would like to do is create a swf that my employer may enter there own information such as thier name, title, department, suite, and some comments... then click some sort of button that will save the information on the server... then on the kiosk end the user can type in a name, department, suite number to have the data display on the kiosk. i am using cs3/as3. i have created the virtual keyboard, and the data entry app that allows my employer to save data to the server, but for the life of me, i cannot, get my kiosk end to retrieve the data.

View 3 Replies

ActionScript 3.0 :: Dynamiclly Loading Content From A Server

May 14, 2010

I am creating a building directory for a touch screen kiosk app. this kiosk will have a virtual keyboard that i have created with an input text field, which hopefully will search a single file on the server that controls these kiosks. Then display the search results in a dynamic text field. What i would like to do is create a swf that my employer may enter there own information such as thier name, title, department, suite, and some comments... then click some sort of button that will save the information on the server... then on the kiosk end the user can type in a name, department, suite number to have the data display on the kiosk. i am using cs3/as3. i have created the virtual keyboard, and the data entry app that allows my employer to save data to the server, but for the life of me, i cannot, get my kiosk end to retrieve the data.

View 1 Replies

ActionScript 1/2 :: Loading External Stylesheet To Server

Mar 30, 2009

I found this tutorial online to load a external stylesheet to then load some text content in your box. [URL]. I applied it to my site but its not working! My settings are as follows:
stylesheet = saved under styles/flashStyles.css
text = saved under text/aboutus.txt
Dynamic box = named aboutUs_text

Here is my code. The only thing I keep seeing is 'Could not load CSS stylesheet' when I preview my .swf or when I upload it to my server.
function getNewsStyles() {
aboutUs_text.text = "Getting news...";
// load stylesheet first, then get content (separate function)
var flash_css = new TextField.StyleSheet();
flash_css.onLoad = function(success:Boolean) {
if (success) {
[Code] .....

View 3 Replies

Media Server :: FME Closes Down Immediately After Loading?

Jun 28, 2010

Been having an issue lately with Flash Media Encoder immediately closing down after starting the program. It will display the window for a very brief moment and then close down. I have used the program many times with no issues but this recently started to happen. When it started closing directly after startup the first time, it allowed me to use it a few times afterwards. But recently its not working at all.

View 2 Replies

ActionScript 1/2 :: Loading Random Images From Dir On Server

Sep 18, 2011

I've recently inherited a project which needs to load random images from a dir on the server.
the previous developer has this code on every swf (there are over 40):

pic_arr = ["images/randoms/1", "images/randoms/2","images/randoms/3", "images/randoms/4", "images/randoms/5", .....
ranNum = Math.floor(Math.random()*pic_arr.length);
pic_hold.loadMovie(pic_arr[ranNum]+".jpg");
unloadMovieNum(1);

I need to update this as the number of random images is set to increase to about 1000 and I don't fancy hand coding the above to include "images/randoms/999" , "images/randoms/1000" !!! Where I can keep a single .as file on the server which handles this and then a line of code in each swf which imports it? The site is built in php with a Flash fornt end so easy to use php to count the contents of the "images/randoms" dir and pass that number as a flashVar.

View 1 Replies

Loading Skin From URL To Server - Unhandled Error

Jan 15, 2010

I'm trying to load a skin from a URL I have uploaded to a server but I get the following error:
Error #2044: Unhandled skinError:. text=Error #1034: Type Coercion failed: cannot convert flash.display::AVM1Movie@322fc711 to flash.display.Sprite.
The code I have is:
flv.skin ="[URL]";

View 1 Replies

Html :: SWF File Not Reliably Loading From Server

Oct 14, 2009

I have created an application using Adobe Flex. I took all the files from the 'bin-release' folder and put it on the server. Then when someone connected to the server through http it is forwarded to the "index.htm". The "index.htm" page is the HTML page created automagically by Adobe Flex during compile time, I just renamed it to that name (from visco.html if it matters). The SWF file remained the same.

The problem is that most of the time when I go to the server, I get forwarded to the "index.htm" file and it loads the SWF perfectly. The other 30% of the time, it doesnt load! The background of the page turns blue (same as my SWF) and if I right-click it, it shows an Adobe Flash dropdown, so it looks like its sort of loading, but the application doesnt fully start even though it has been 100% reliable during debugging and when loading the SWF file manually.

What do I need to do to get the SWF file to load and start reliably?

[Code]....

View 4 Replies

ActionScript 3.0 :: Loading A Picture From Skype Server?

Sep 25, 2010

Today I have a problem with loading pictures from a server that is not under my control. So I cannot use a policy file.

The Loader works fine actually.

Problems arise when I convert that loader.content into a Bitmap.

ActionScript Code:
var link = "http://mystatus.skype.com/smallclassic/martin.kruusement";
var bmp:Bitmap;
var loader = new Loader();

[Code].....

View 1 Replies

ActionScript 2.0 :: Loading Xml File From External Server?

Oct 26, 2010

I would go about loading an xml file from an external domain.I am trying to create a swf file that loads a rss feed. I have found that you must create a proxy for the xml though I am unsure how to go about this.

View 0 Replies

ActionScript 2.0 :: Loading A XML File On An External Server?

Jun 4, 2004

I am having trouble loading an XML file on an external server into my flash movie when it is uploaded.

The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

ActionScript 3.0 :: Loading The File Stright From The Ftp Server?

Oct 3, 2009

Im trying to put a video in my website and im getting a strange result.on my computer everything is working fine BUT when im trying to run it over the internet its showing me only the skin of the video player but not loading the video.The strange part is when im loading the file stright from the ftp server, its working fine..

View 5 Replies

ActionScript 2.0 :: Using Two Server/cliant Loading Things?

Jan 24, 2005

I am using two server/cliant loading things, one is the External Text MX extention and the other is the hit counter from this website.Both, when using Mozilla Firefox, do not seem to load. You can see by my URL http:[url]... that it will saw "Loading... Please Wait..." with firefox, and the hit counter will read 000000, however when you open it up in Internet Explorrer everything loads fine.

View 2 Replies







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