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
Similar Posts:
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
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
Sep 1, 2009
I have a flash app which runs on my browser using Apache with PHP.This app displays items according to xml files which can be created anew
or added to.When the user changes these files via php, these changes are not reflected in the app. If I close the app and re-start the changes are there.Is there some way to refresh the localhost in the program?
View 4 Replies
Jan 13, 2011
I'm trying to debbug my code on Client side (Action Script 3) that works with Flash Media Server 4 on localhost. Everything seems fine up to that point.However, when I'm trying to test my player with other remote streaming servers, I notice bugs because of lower bandwith transmission between the server and the player.Is there a simple way to simulate lower bandwith with FMS4 on localhost (by config, application.xml, programmation...) ?
View 2 Replies
Jan 13, 2011
I'm trying to debbug my actionscript (AS3) code on Client side that works with Flash Media Server 4 on localhost. Everything seems fine up to that point.
However, when I'm trying to test my player with other remote streaming servers, I notice bugs because of lower bandwith transmission between the server and the player.
Is there a simple way to simulate lower bandwith with FMS4 on localhost ?
by config, application.xml, etc.?
by programmation (main.asc) ?
both ?
View 2 Replies
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
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
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
Oct 21, 2010
I have a Flash website with 5 sections (Featured Work, News, About Me, Services, Contact). All the sections works fine, both in Flash and on the server, if the content isn't loaded from XML. But in the News section i use XML for loading the news.If i test my movie in flash, the whole site works fine, and the XML News works perfect. But if i test the movie in a virtual server (like MAMP) or if i test it on my own server, the news section doesn't show.
View 35 Replies
Oct 21, 2010
I have a Flash website with 5 sections (Featured Work, News, About Me, Services, Contact). All the sections works fine, both in Flash and on the server, if the content isn't loaded from XML. But in the News section i use XML for loading the news.
If i test my movie in flash, the whole site works fine, and the XML News works perfect. But if i test the movie in a virtual server (like MAMP) or if i test it on my own server, the news section doesn't show.
View 9 Replies
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
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
Jan 12, 2010
My employer has a Flash Media Server that I wrote a little streaming video app for a couple years ago.Well, the videos have stopped working and I've been asked to troubleshoot. I fired up the fms_adminConsole.swf and connected to my server. Now, it's been a long time since I've messed with the server, but if I remember right, there was a big list of apps on the list on the left hand side of the "View Applications" view of the console. When I log in, there are no applications listed. If I hit the "New Instance" button under the empty list, I'm presented with a list of all the apps I think I should be seeing in the Applications list. If I select any of these, a new application instance appears in the applications list, and I'm prompted to give it a name, the default being "_definst_". If I hit enter to create this instance, it remains on the list and instance data appears on the right panel until the console refreshes, and then all that vanishes and I'm back to an empty applications list again.
Going to "Manage Servers", I do see a list of applications under the applications tab that I expect to see. The app that streams the video that's having problems is there on the list.
Is this typical behavior for the Flash Media Server Console? Shouldn't I have a list of apps in the "View Applications" section of the console? I've created about a dozen to date, and they're all listed under Manage Servers > Applications, but not under "View Applications". Can anyone point out if I'm doing something wrong here or missing something?Or can someone confirm that I SHOULD be seeing something under "View Applications" and that there is indeed something weird going on with the server.
View 2 Replies
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
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
Apr 25, 2011
I´ve a 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 to [URL] in 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.
What I don´t understand is why I see the web correctly in local and not in when it´s in the server.
View 1 Replies
Aug 5, 2011
My file reference function is not working when i upload my swf into my server. I tried in localhost it works. I tried publishing in HTML it works. I wonder what's wrong.Here is the screen shot of my code.The file reference is suppose to allow the user to save the "var ba" to their local hardisk.Edit : i found that my preloader is the main cause. Any code i should put in my preloader so the file reference will works?this is the preloader cod
Code:
import flash.net.FileReference;
var loader:Loader = new Loader();//declaring new loader variable
[code].....
View 5 Replies
Apr 29, 2011
I can still create the video and the files and it all works in dreamweaver when I preview in iexplore. When I put the files and the page into the host server it shows the skin and no video. If my paths are wrong I do not know where to check them. I need help MY whole career is on hold until I know how to do this like clockwork/ I need step by step with creating and changing paths and uploading using cpanel or dreamweaver. getting the files made and uploaded is easy part. I have been here before and cheers to the help. I really need an in depth answer about how to do this from start to finish. I have looked at all tutorials and they all make it seem so easy but dont show anything on paths. If my video works in dreamweaver but not online live what is wrong? I am lost and on edge lost many weeks of sleep over this simple process.
View 12 Replies
Nov 4, 2010
I install the latest version of apache before the FMS4. After the installation completed, I copied webroot, applications and other files to the web sites home directory. I also updated the FMS.ini file in the config folder. Because I am not familiar with FMS, I don't know whether the change is correct or not.
View 1 Replies
Mar 20, 2010
Problem1 The ***.stream file is not being created in the folder> :FMSHOMEapplicationslivepkgrevents\_definst_liveeventBUTI can see the F4F, F4X, control, meta, and bootstrap files being created in the folder>C:FMSHOMEapplicationslivepkgrstreams\_definst_livestreamAny ideas on what may be causing this and how to resolve it?Problem2Sometimes if I send multiple bitrates like livestream1, liverstream2, livestream3 I'll only see the livestream3 stream files created inthe folder C:FMSHOMEapplicationslivepkgrstreams\_definst_livestream3. No livestream1 orlivestream2 stream folder/files are created. And again the .stream file is not being
View 1 Replies
Feb 20, 2012
I have install the Flash Media Server and Flash Media Live Encoder. Everything run perfectly when I test the Live Stream through localhost, but if I try to embed to another machine, it is failed.
View 1 Replies
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
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
Jun 5, 2011
Since Flash doesn't support multithread how do you that in actionscript 3?
View 1 Replies
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
Dec 5, 2011
I'm making a program in flash builder 4.5 using WebOrb 4 (which is fantastic, I might add). When I go to deploy, however, it gives me this error:
>There was an error during model deployment for xxxxProgram.
>
>The server returned the following message:
>
>Unable to contact the RDS Server "Data Services on Tomcat (localhost)."
>
>Connection refused: connect
>
>Do you want to continue launching your Flex application?
I've poked around online for a solution, but for the most part I either don't understand them (forum grammar can be somewhat obtuse) or the answer in the post doesn't apply.
View 1 Replies
Oct 3, 2010
I published a Flash movie in CS4, which includes the following ActionScript 3.0 code to allow people to click the movie to open a new web page; but it will not play from the web server...however, it plays just fine from my local hard drive in Firefox and IE 7.It is an html file with an embedded .swf and I made sure to copy over the swfObject.js, AC_ActvieX.js, AC_RunActiveContent.js, expressInstall.swf, and swfobject_modified.js files to the correct directories. The address is: [URL] and as you will see, there are no errors...just a blank page. I even tried changing the script from:
<script type="text/javascript"><!--swfobject.registerObject("FlashID");//--></script>
to this script: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>, but using this script generates a lot of CSS and other errors.
Nothing works. The ActionScript code I used is:
//Link to websiteSite_btn.addEventListener(MouseEvent.CLICK,visitSite);
function visitSite(e:MouseEvent):void{ var req:URLRequest = new URLRequest("http://giseldemarco.com/Home/Index.html"); navigateToURL(req,"_parent");}
View 1 Replies
Sep 17, 2010
I've developed a drawing application in Flash and I need that when the user has finished to draw and click on the save button, the drawing he has done get saved as jpg into a folder on a server. I've managed to save the drawing as a jpg to the server using FileReference, then I found a code that uses PHP to do the same, but not upload the jpg to the server:
this is the action script code:
Code: Select allprivate function saveHandler(e:MouseEvent):void
{
var canvasBmp:BitmapData = new BitmapData(521,213);
[code]....
How could I do to upload the file to a server instead of the user's machine?
View 2 Replies
Jan 2, 2012
I created a flash banner with flash pro CS5 using windows 7. Can I save the file so my client can open it with a Mac OS?
View 1 Replies