ActionScript 3.0 :: Cannot Access XML File On Localhost?

Dec 7, 2009

Typing either localhost or 127.0.0.1 in any browser on a Macintosh (os 10.5) does not give access to the host computer.The following Actionscript code generates the following error:

var XMLURL:URLRequest = new URLRequest("http://localhost/quoteRotator/quotes1.xml");
Error opening URL 'http://localhost/quoteRotator/quotes1.xml'
Error #2044: Unhandled io error . . .

[code].....

View 8 Replies


Similar Posts:


Silverlight :: Flash Vs Silverlight On Localhost /local File Permission To Access Remote Webservice?

Mar 30, 2011

In Flash user can give permission to localhost and even local html file to access remote webservice.I fail to see the same thing for Silverlight which is a nightmare for testing on local pc.

View 1 Replies

Professional :: .swf File Is Not Working With Localhost Address?

Sep 13, 2010

My .swf file is not working on localhost. But when we try to run it directly from the file location then it is running.

View 1 Replies

Zip File Created With PHP Shows On Localhost But Not On Server

Mar 21, 2011

I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.

I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.

Localhost server is using 5.2.17 and so if my Server hosted on 1&1

Flash Code To Send Info to PHP

Code:

function MakeZip():void
{
var variables:URLVariables = new URLVariables();
//variables.Image1=img1;
variables.ImageList=OrderItems;

[Code]....

View 5 Replies

Flash :: Zip File Created With PHP Shows On Localhost But Not On Server

Mar 22, 2011

I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.

I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.

Localhost server is using 5.2.17 and so if my Server hosted on 1&1

Flash Code To Send Info to PHP

function MakeZip():void
{
var variables:URLVariables = new URLVariables();
//variables.Image1=img1;

[Code]....

View 3 Replies

Actionscript 3.0 :: File Upload Works On Localhost But Not On Server?

May 28, 2009

I want to build a flash application that upload images to the server. It seems to work fine on localhost but when I upload it to the server it just won't work. The file does not upload.

as3 code:

Code: Select allvar FR = new FileReference();
var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");
function onUploadClick(e:MouseEvent):void{

[code]....

View 2 Replies

Flash :: Data Integration - Localhost - URL Page With An Embedded SWF File?

Aug 8, 2006

I can't figure this out. When I test a URL page with an embedded SWF file (using [URL]) I cannot get the embedded SWF to play more than one or two frames. However, if I upload this same flash-embedded html page, and test it on the WWW, then it seesm to play without a glitch.

View 1 Replies

Actionscript 3 :: Testing Movie With Flash IDE Fails To Load File From Localhost

Feb 25, 2010

I have created an SWF that loads an XML file from [URL], but I get this error when running the movie using Test Movie in the Flash IDE.

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localhost/flash/Projects/MEL/Quiz/Quiz/bin/xml/quiz.xml
at Main/loadConfig()[D:wwwwebrootflashProjectsMELQuizQuizsrcMain.as:126]
at Main/configLoadError()[D:wwwwebrootflashProjectsMELQuizQuizsrcMain.as:143]

[Code].....

Trouble is running the SWF in a browser locally does work, it only throws these errors in the Flash IDE.

I have tried a adding wildcard crossdomain.xml file in my root web directory and setting the SWF publish properties for local playback security to Allow network only, but neither of these have solved my problem.

I know Windows 7 handles localhost name resolution differently compared to previous versions of Windows but I have even added 127.0.0.1 localhost to my hosts file to no avail.

View 2 Replies

Flex - Why Is Flash Demanding A Crossdomain.xml File When The .swf And Http Target Are Both On Localhost

Jun 3, 2011

I've got a small client/server test application where I have a Flex app that makes an HTTP request of a server app. The server app is a script running on my local machine, listening on port 8001. The client is a swf that I am running locally, and uses mx.rpc.http.HTTPService to make the page request.

The HTTPService is being set up as per below:

_HttpService = new HTTPService();
_HttpService.url = "http://localhost:8001";
_HttpService.contentType = "text/xml";

When I make a basic page request, my server app is first receiving a "GET /crossdomain.xml HTTP/1.1" request, which is failing since I don't have a crossdomain.xml file in place. The reason I don't have one in place is because this is all happening on my local machine (for now) and I shouldn't need one (I don't think).

I definitely had this code working before without a crossdomain.xml when I was using Flex 3.x. I thought I had it working with Flex 4 as well. Now I'm using Flex 4.5. Is there an issue here, possibly due to security policy changes?With all of this happening on localhost, why is the Flash player requesting a crossdomain.xml file?

[code]...

View 2 Replies

ActionScript 3.0 :: Use Random File Access For Reading And Writing Data To File In It?

Jan 20, 2010

I am wondering if it is possible to use random file access for reading and writing data to file in Actionscipt 3.0 similar to that what is in Visual Basic?

View 1 Replies

ActionScript 3.0 :: Let My Local Running Swf-file Access A Xml-file That Is On A Server?

Mar 9, 2011

How to let my local running swf-file access a xml-file that is on a server?

I have been to the "Global Security Settings panel" but dont really understand.

View 2 Replies

ActionScript 3.0 :: SWF Can't Connect Localhost

Jul 15, 2010

What is the problem the localhost doesn't connect with localhost in fla its working well but SWF

View 2 Replies

ActionScript 3.0 :: Using LocalConnection And The Localhost?

Aug 17, 2009

I have had some success using LocalConnection between SWFs.I can have a connection function between a preloader SWF and its child, and another connection work between two SWFs present on the same webpage......most of the time.

If I run my SWFs in a webpage from my localhost (ie my local testing PC) a particular LocalConnection will fail about 50% of the time. If the same SWFs are run on a remote server (ie the inernet) the LocalConnection works 100% of the time.SWF 'A' is sending to SWF 'B'Bizarrely, the LocalConnection going the other way, from SWF 'B' to SWF 'A' works 100%.

All the other LocalConnections I have used all work 100% of the time.I have tried adding a listener to the eventStatus which reports when the connection fails.I have also tried allowDomain(), although Im not sure it is neccessary since all the SWFs are hosted from the same domain anyway.Why should a LocalConnection behave differently depending on where the SWFs are hosted?

View 1 Replies

ActionScript 3.0 :: Access/pass Variables'(s) Of A .swf File Into Another .swf File?

Apr 1, 2009

I have basic knowledge of Flash and AS3.0. Suppose i have a flash swf file(main.swf). In this main.swf file, i loaded another swf file(sub.swf) by writing the following code snippet in main.swf file as shown below:

var textLdr:Loader=new Loader();
var noteUrl:String = "AddNote.swf";
var noteUrlReq:URLRequest=new URLRequest(noteUrl); textLdr.load(noteUrlReq);
addChild(textLdr);

Now, how to acess the data present in main.swf into sub.swf.Note: Here data represents values/data stored in variables/objects of main.swf file.

View 3 Replies

Flash :: Working On Localhost Not Online

Jul 10, 2009

I have a problem with a video gallery I integrated into my site...the flash works fine on my local machine and displays videos fine but when uploaded on the server it does not load and everyone gets the message as if we did not have flash installed on the machine[URL]

View 4 Replies

Professional :: Load A Login.swf From Localhost?

Mar 1, 2010

i have realy pain start with af3 when i was fine with as2.one of my probleme is i load a login.swf from localhost .
 
Probleme1. i test on my pc "wamp" then i test on a remote server let call it  "Lamp". my code in main swf (As3.swf)  look a something like this.

var chemin = new URLRequest( "http://localhost/As3_login.swf" ) ;cadre.load ( chemin );cadre.x = 40;cadre.y = 100;addChild(cadre);

what happen is in localhost test everithing does the job but when i upload on my distant server "Lamp"  as3.swf and As3_login.swf,the main swf (As3.swf) don't load the As3_login .swf that is on my distant server "Lamp" .in fact it try load the swf that is on my local "wamp" server (my own hard disk).so if i close my "wamp" what happen is As3.swf from "Lamp" load then it can't load As3_login.swf.seem totaly ilogique to me since when localhost isn't local?

Probleme 2. the code above addChild(cadre) add the As3_login.swf from here all is finel) .now the probleme is i have a button cancel on the As3_login.swf and i want this button remove what we loaded previously(itself then).i tryed a lot of thing like.how to remove a loaded child from the child itself???

View 2 Replies

Move From Localhost To Web Server Environment?

Nov 12, 2009

Are there any Air + Zend Amf examples that use a real world web server and not localhost?

Basically I cannot get an Air or Flex application connected to a remote mysql db to work once deployed. How can I successfully move a finished application to a normal web server (website).

When testing everything works no problem but as soon as I deploy the gateway.php (regardless of where i put it on my web server) will not connect. I've even tried flash builder 4 auto generated code and still no luck

View 1 Replies

Use PHP In Adobe Flash Builder 4 On Localhost?

Dec 8, 2010

I would like to use my localhost database and some PHP in my Flex projects (using Flash Builder 4). I've searched on the web for some good tutorials, but couldn't find one. The only decent I found was this one, but I ran into a problem when trying to install ZendFrameWork.

Does anyone knows a good place to start learning using PHP into Adobe Flas Builder 4?

View 4 Replies

ActionScript 2.0 :: Can't Use A Localhost And Refreshing Data In A Swf

Apr 21, 2010

I cannot seem to get a swf to get refreshed data from an external txt file on a localhost (I am using Xampp on a mac), whereas the very simple dynamic textboxes that I have load the data easily from my regular hard drive folder.

View 3 Replies

ActionScript 3.0 :: SWF Doesn't Connect With Localhost

Jul 7, 2010

my problem is SWF doesn't connect with the localhost the .fla working ok when in press ctrl+enter but when i export movie its won't work what is the problem

[Code]...

View 6 Replies

ActionScript 3.0 :: Remote SWF And Localhost Connection?

Jul 14, 2010

Can I connect to localhost socket from a "remote swf"?

If I open URL like "www[DOT]myremoteswf[DOT]html" with an swf inside and I have a application on my pc with a socket server, can I connect both?

View 1 Replies

ActionScript 2.0 :: Website In The Server, Not In Localhost?

Apr 25, 2011

problem with a website that when I see in local mode everything is ok but when upload it to the server something is wrong , if you go toin the Menus section if press the photo and then try to expand it, not expand properly, so you have to press again to view it correctly. I know that the problem is in the actionscript but I don know how to fix it

View 3 Replies

Flash - Access The .as File Variable In .Fla File?

Nov 9, 2011

i have a function(initialize) inside the a.as File.i want to access the that Variable from aaa.fla file?.How Can i access the Variable?my main class is a.as file ,inside a.as file i load the aaa.swf file

public function initialize(parameters:Object, stage:Stage,
loaderInfo:LoaderInfo, pluginHostWhitelist:Array):void
{
sourceId=loaderInfo.parameters.src;

[code]....

My aaa.fla Its in Another place

import fl.motion.ColorMatrix;
import flash.filters.ColorMatrixFilter;
var sourceId:String// here i want to access the "sourceid" variable from a.as file
trace(sourceId)

View 3 Replies

ActionScript 3.0 :: Access The File Variable In .Fla File?

Nov 9, 2011

i have a function inside the a.as File.i want to access the that Variable from a.fla file?Both are Different places.But i load the a.swf into a.as.How Can i access the Variable?

ActionScript Code:
function initialize(parameters:Object, stage:Stage, loaderInfo:LoaderInfo, pluginHostWhitelist:Array):void
{

[code]....

View 3 Replies

Flash Not Loading - Works Fine On Localhost

Feb 11, 2010

Building a website and the navigation menu is flash (.swf file). The mnuLoader.swf file retrieves information from settings.xml file. Everything worked perfectly when I tested in localhost/website/page.html. When I upload to hosting server www.website/index.html the mnuLoader.swf displays but does not load (its like it can't find the settings or picture files and displays the same as when you are waiting for something to load etc).

I have tried changing the xml file path from relative to absolute and no change. All three files index.html - mnuLoader.swf - settings.xml are in the same directory and the mnu_imgs folder contains the img icons for the menu. I don't understand why it would work on localhost but not on the actual server? Also directly underneath on the website I have another flash banner (just looping text pretty much) that works fine both on localhost and actual server so am pretty sure is not an access issue etc.

The mnuLoader.swf is Flash 8

View 2 Replies

Media Server :: Change 'localhost' To Webserver

Apr 19, 2010

I tried some applications like vod and live with localhost.Now I'm trying to use some applications on my site. It's the first thing you need to do, but apparently it's so basic that I can't find information about it.Can someone explain me how to change the "localhost" to a webserver? In other words, how do I set up an application like vod on my site?

View 10 Replies

Media Server :: How To Change Localhost To PublicIP In FMS

May 28, 2010

Initially I had local ip (say 192,168.1.XX). Now I connected to public ip. I opened flash media server administrative console, it ios not allowing to use 'public ip' but allows to login as 'local host'. Because of this i am unabvle to test my streams. I need to publish this on cdn.
Earlier URL - rtmp:.//MY_LOCVAL_IP/vod/sample - works
but - rtmp://MY_PUBLIC_IP/vod/sampe - does not work

View 10 Replies

Flash :: HTTP Requests Won't Work On Localhost

Jun 11, 2010

First off, I'm trying to fix something that I didn't build to begin with and the guy who's project it was assures me it was working fine when he left, although a version I haven't touched since he left seems to have the same issues. I'm also a bit new to programming in general so let me know if I've left out important information in my first post and I will try to add more info.

I have a flash application hosted on-line that acts as a client for a server application written in Delphi. Most of the communication is done using sockets, which work fine. Uploading data files and downloading results files is done using HTTP requests, which work fine as long as the user is making use of an instance of the server on another computer. However, if the user has the server application installed on their own computer and attempts to use it specifying localhost as the url, the socket communication still works, but the HTTP requests don't.

All the socket based communication works fine and, when it is not on the localhost, all the HTTP requests work fine as well, which is why this is so mystifying to me. I've tried changing the flash cross-domain policy file that the server dispatches to be completely permissive, all ports, all domains, all http-request-headers, and still no luck. The Flash app will sit waiting for localhost indefinitely most of the time until I close the server application, and then give this error message:

[Code]...

View 1 Replies

Httpwebrequest - Flash - Uploading To And Downloading From Localhost?

Jun 14, 2010

I have an online flash application that acts as a front end for a server application built in delphi. The server can be installed/used on a remote computer or a personal version can be downloaded and the Flash app pointed at localhost to use it. However, Flash has issues with using the POST and GET functions on the localhost, which makes uploading data files and downloading results files difficult. To get past the difficulty with downloading results files I'm planning to just have the server app serve the results file as an attachment and have the Flash app open the address of the file up in another browser window using external interface. First off, is this likely to cause similar security issues? I.E. Flash will see "localhost" in the external interface call and stop it from working the same as when I try to use POST/GET functions with localhost?

Secondly, for upload this seems just a bit little trickier, I'm planning on doing something similar, having flash use external interface to open a php script for a file upload. Is this feasible and, again, will Flash still have security issues?Lastly, if anyone knows how to get flash to execute POST and GET functions with localhost addresses, I'd love to have that information to avoid all this jumping through hoops.

View 1 Replies

Flex - Httpservice Doesn't Work On Localhost?

Nov 7, 2010

I am making a very simple httpservice request w/ a php file that is on my remote server:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:halo="library://ns.adobe.com/flex/halo"
>

[Code]...

When I run the resultant flash file on my remote server, it works 100% and test.text gets populated to "successful". However, when I run it on localhost test.text is still blank. If I check my network monitor in Flex, the httpservice was successful, so crossdomain.xml seems to be set right ...what am I doing wrong? I've been spinning my wheels for some time w/out a clue.

View 1 Replies







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