ActionScript 3.0 :: Saving Xml To Server
Nov 30, 2009
I have created an xml driven application with which the client is very happy. They currently use notepad/dw to create the xml files. They now want a "form" of some description to create the xml file to avoid writing tags and so on. I have had a good look around. There is some info about creating the xml itself in as3 (looks pretty easy), but very little about how to save that file to the clients server. I gather that the flash doesn't do this for security reasons?
My question is really this: would i be better using php to create the form for my user rather than flash as3. Or is it better to create in as3 and then append a little php to upload the doc? Or am I going abouit this the wrong way!
View 2 Replies
Similar Posts:
Dec 21, 2009
Im trying to save an xml file in the server, Im using the code of AS3 book. and here is the code as3 and php ,that suppositly save an xml file on the serve. but it dont work. i set te permition of the folder to 777 to allow writting. well i look at evrything and dont find the probleme at the error message it give :An error occurred when attempting to load the XML.Error #2032 (but it come from the book, it should work)?
[Code]....
View 6 Replies
Jul 8, 2009
I am a new bee to flex. what i am trying to do is to generate and save the layout design which nothing but canvas to a pdf format at the server. Currently i am able to display the pdf in browser (see the function below:) but cannot save the file at the server.
private function continueToPdf():void{
myPDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
myPDF.setDisplayMode ( Display.FULL_WIDTH );
myPDF.addPage();
[Code]...
View 2 Replies
Jul 26, 2010
I have in mind a very basic swf file that allows someone to enter data (via dynamic text box), submit this data (via php), which in turns saves it as a file on the Server. This file (.txt) would be used to populate text on the main site. Most of this seems quite straight forward, and standard practice, apart from actually saving the data as a particular file and on the server (or overriding an existing file), which I'm sure comes up against problems such as FTP access and everything else, but I was wondering if someone might have an insight on how this could be done?
View 3 Replies
Jun 29, 2010
I'm trying to write a contest where the user can paint an outlined image I provide, and then submit it. I want it to then save the image on my server with properties so I can tell who submitted it. They will be asked to input these values of course. I looked into the JPGEncoder but could only find examples for downloading the image directly. Is there an easier way to do a contest like this? I'd rather not have them have to save the image locally and then e-mail it, as this is geared towards kids and I don't want it to be confusing.
View 2 Replies
Oct 22, 2009
I trying to save an byteArray to the server as an zip using nochump AS3 Zip Library (URL..). I'll belive I'm quite near with the as stuff, but can't figure out how the php handles the byteArray.[code]
View 1 Replies
Apr 6, 2009
change the following php/AS3 to make it save the dynamically created masked image to the server instead of offering it for download? You have to pass it variables from the as3 AT THE BOTTOM OF THIS POST...
PHP -
<?php
if(isset($_FILES['Filedata'])) { // basically if file data exists to actually upload.
[Code]......
View 9 Replies
May 22, 2010
Say I have a webpage where a user enters their name and it is displayed to them on a swf. If I have a save button, how could they save their dynamically changed swf to their computer, with their name on it?
Bare in mind that if a normal save is completed, they will only be saving the swf on my server. Somehow, something needs to happen to get them to save the swf with thei name on it, as saving a dynamic swf is not possible in as3 (I dont think)
View 3 Replies
Jan 12, 2010
I built an information terminal for the shop of a friend of mine which uns as fullscreen application.On this terminal the swf file is running as a stand alone file by unsing the flash player directly.I want to save a snapshot (jpg) from a webcam if someboy presses a button.This does work as long as I run my application (swf) by using the browser (Firefox , Apache and localhost).But if I try to use it as it should be used no image is beeing created.
There was an error when first testing the application which forwarded me to an Adobe site where I had the possibility to grant files permissions, which I did for the file (the SWF) that needed it.Did I do something wrong, or is there some permission thet I have to grant before it works as it should be?
View 1 Replies
Sep 29, 2010
I am trying to save some images from Flash to Php by sending a jpgstream, capturing it in php and pushing it to a file. Not sure what I am doing wrong here.
I am putting all the images I need into an array like so: (history is just where I am keeping all the image data)
[Code]...
But this doesn't seem to do the trick. I have been going through a bunch of different tutes and code snippets, so maybe I just ogt something confused along the way. I have done this before though and don't remember it being this difficult.
View 2 Replies
Mar 25, 2011
I followed this question:flash Actionscript 3 and php image upload.I copied the code:[code]It works great, I just need to know how to save the image under a specific name, how do I pass an argument to the php script? or is that not necessary, can I change it before calling the script?How would I then call URLrequest to show user the file he uploaded ?
View 1 Replies
Jun 16, 2011
Here's what I am trying to accomplish. I have a BitmapData that I am sending to a PHP function as ByteArray on the server by using URLRequest. The PHP function then saves the ByteArray as a jpg. All is well, so far and I am able to save the image on the server. Where I am stuck is that the PHP function generates the image file name randomly and I have no clue on how to get the name of the file I have just saved on the server. I am using the below code to send byteArray to the PHP function. How to modify/add this so I can get the filename of the image once it's saved on the server?
var myHeader:URLRequestHeader = new URLRequestHeader("Content-type","application/octet-stream");
var myReqst:URLRequest = new URLRequest(path);
[Code]....
View 1 Replies
Dec 23, 2010
I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb.
My actionscript is:
import com.adobe.images.PNGEncoder;
import flash.display.BitmapData;
import flash.utils.ByteArray;
// Go to PHP Page.//
bitmap_btn.addEventListener(MouseEvent.CLICK, gotoPHP);
function gotoPHP(event:Event):void {
[Code] .....
View 2 Replies
Nov 25, 2003
way to have a specific portion of the stage save as a .jpg to the server.
So, if a user were to draw something, and click a "save" button, they would be able to save their drawing to the server as a jpg.
View 2 Replies
Jul 22, 2009
I am working on an educational game that requires the user to enter their username and password in order to retrieve their saved game data. I know how to do this locally using the sharedObject class but I do not really understand how to do this remotely on the server. I thought maybe using remote shared objects would work but it looks to me like that only works with a flash server and data can be changed by anyone.
View 3 Replies
Nov 4, 2010
I developed a video recording application using Flash with Red5 .
It records the stream and saves atha in webapps folder. But i want to save that in custom directry?
Is it possible to mention the path inside the flash code? I tried out this code ... but it throws error saying bad name....
ns.publish(videoName,"http://mysite/video/record");
steps to change recording path of the streams.
View 1 Replies
Mar 12, 2010
I'm using CURL to upload files to a service. Currently I'm getting the file content with $GLOBALS["HTTP_RAW_POST_DATA"] then save it on my server. After that, I'm using CURLOPT_POSTFIELDS with the file's full path. Is there a way to send the file content directly, without saving it on my server, as if I saved it? Or is there a way to upload a Photo from a flash app to facebook album, without saving it on the server?
View 1 Replies
Nov 2, 2009
how I can save a screenshot of a SWF. All the examples I found requires some form of PHP scripts and some action on the server side.I am doing a simple program where at the end, the players will be awarded a certificate and they have to be able to save it on their desktop. This program is to be run on a cd-rom or off a local hard disk, thus it must not involve any server side actions.
View 2 Replies
Nov 21, 2009
A project of mine involves a flash movie (.swf) in a webpage, where the user has to pick from a number of items, and has the option to thumbs up or thumbs down (vote on) each item.So far I have gotten this to work during each run of the application, as it is currently loading the data from an XML file - and the data is still static at the moment.I need to persist these votes on the server using a database (mySQL), such that when the page is reloaded, the votes aren't forgotten.Has anyone done this sort of thing before?The two mains methods that I have found on the 'net areeither direct communication between AS3 and the SQL using some sort of framework, orpassing the SQL query to a PHP file, which then executes the SQL query and returns the SQL to AS3.
Which of these methods is the better option?For the latter method (involving PHP), I have been able to find resources on how to acheive this when attempting to retrieve information from the database (i.e. a read operation), but not when attempting to send information to the database (i.e. a write operation, which is needed when the users vote). How is this done?Edit: Implemented solutionSomewhere in the PHP file:
if ($action == "vote")
{
$id = $_POST['id'];
[code]....
View 2 Replies
Jun 23, 2010
I want to download a file from the server and save it in a particular location of the disk without user interaction. All this I want to do it in Flex.
View 1 Replies
May 4, 2009
While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]
View 1 Replies
Mar 24, 2011
I'm trying to record video from the users webcam and play it back at a later date.
I call
[Code]...
However, when I look at the FMS Admin Console at the streams in app/_definst_, their types are either "NetStream" or "Live". If they were being saved wouldn't they say "Stored"? After I close the application doing the recording, the "NetStream" type stream disappears, and after a while all the "Live" typed streams are gone too. Nothing is saved.
I have no idea what is happening. I don't know if it's a problem with my AS3 code not closing the recording properly or if I'm doing something else wrong, or maybe somethgin isn't right in the FMS?
View 1 Replies
Nov 13, 2009
The company I work for installed FMS on a server running Centos for a customer who needed streaming media capabilities. It worked fine for 3 months until today the customer called us and informed us that their client program can no longer connect to the streaming media server. No one has done anything to the server to cause this to happen. When attempting to access the admin console to diagnose the program, the streaming server returned a 500 Internal Server Error. So I tried another page. Same result. Reboots of both the hardware server and the FMS have changed nothing.
View 5 Replies
Apr 28, 2010
One server - is streaming server with Flash Media Interactive Server 3.5that host the application with asc files in FMS application directory.Second server - is the IIS web server that host thehtml,aspx,swf etc.. files.So basically i heve swf file on one server that have to connect to live streaming via rtmp on different server with different ip address.I did not find any clear explanation on this crossdomain rmtp issue.ys only HTTP can use crossdomain.xml policy filebut not rmtp.So what policy security procedure need to be done in order to enableswf file hosted on one server to connect and show rmtp live cam broadcasting from another server?
View 2 Replies
Oct 14, 2010
The instructions for installation only cover installation on "localhost". I'm wondering if I could use the development server for a small scale website depolyment with restricted traffic, from a commercial server, such as goDaddy?And if so, what''s the method? Do I download the package from Adobe to my local hard drive and install over the network, or copy the package to the server and install it online?
View 1 Replies
Jan 26, 2011
The $995.00 version is listed as not supporting server side playlists. Is it possible to implement internet TV station like functionality using that version? I would like to have a list of files to play out and have it so those connected are all viewing the same thing.
View 1 Replies
Sep 15, 2010
I would like to RePublish Live Stream to a CDN (Level3). this CDN must use FCpublish on Client Side (like FME).
my Publisher send stream on FMS3.5 (Server1) and this stream must go to Serveur2 (CDN) with FCPulish.
On my local serveur1, i add some code to do that but whitout succes...
i can RePublish when i simulate the second Server(2) on my LocalHost BUT withOut the FCPublish Method.. (i use the sample from Adobe Flash Media Server "Publishing server 2 server")
How can i change this sample to use the FCPublish method to republish the stream to Server2 ?
with my tests, i think that my problem is how to receive the "onFCPublish = netstream.publish.start" from the server2 to my server1
please, do you have a great and simple sample (like this before) to reStream by FCPublish Method ?
I know how to make it in AS3 on my Flex Client Application but not in the Action Script on the main.asc
View 1 Replies
Feb 9, 2009
What's the best and most efficient way to save a var to php with as3? I want to create a counter, so I know how many times a flash movie has been viewed or a button clicked on, how could I do that? and would it be a good idea to save the results in a mysql table rather then just a .txt file?
View 4 Replies
Jan 17, 2010
Im trying to save from fla or swf to .mov or .avi. without having to buy a 3rd party app.I've tried exporting from Flash but both my computers just sit there and don't finish the job.I can't see any options to save as an .avi file either.I've tried opening both the swf and fla files in Quicktime with Perian
View 3 Replies
Mar 25, 2011
After reading previous forums I've realised there is a corrupt picture that was imported into the file. I've deleted this in the library as people have suggested but still no luck saving the file. It just saves as 1K file.
View 1 Replies