Flex save TextArea text directly to the server that swf is sitting on

Hi all.

I'm trying to save the text contained in a text box directly on the server that my application is sitting on.

I was able to record directly to the local machine by using the following code

<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML ">
< mx:Script >
<! [CDATA]

private var fileReference:FileReference = new FileReference();
private function onSaveText (): void
{
fileReference.save (myText.text, "myText.txt");
}
private function onLoadText (): void
{
var f: FileFilter = new FileFilter ("Text", "*.txt");
fileReference.browse ([f]);
fileReference.addEventListener (Event.SELECT, onFileSelect);
fileReference.addEventListener (Event.COMPLETE, onFileComplete);
}
private void onFileSelect(event:Event):void
{
FileReference.Load;
}
private void onFileComplete(event:Event):void
{
myText.text = fileReference.data.readUTFBytes (fileReference.data.length);
}

[]] >
< / mx:Script >

< mx:Panel id = "myPanel" width = "400" height = "450" verticalScrollPolicy = "off".
horizontalScrollPolicy = "off" title = "Text Pad" >
< mx:TextArea width = "380" height = "420" id = "myText".
text = Hello "you can save this in order to test this APP" / >
< mx:ControlBar >
< mx:Button label = "save the text" click = "onSaveText ()" / >
< mx:Button label = "Load text" click = "onLoadText ()" / >
< / mx:ControlBar >
< / mx:Panel >

< / mx:Application >

Is it possible to record directly on the server?

Would need some sort of PHP script?

Pass the data in the text box to the script and then create the file in the php script?

Thank you

Yes, I can imagine easier.

Store the textarea.text to a variable of string in flex, pass it to a HTTPService, publish it to a php script

".$_POST["postedString"]."";

$fh = fopen("yourFilName.xml", 'w');
fwrite($fh, $stringToWrite );
fclose($fh);

?>

Tags: Flex

Similar Questions

  • New content directly from the server

    How can I force my browser to download new content directly from the server? It was possible to do so using the SHIFT key pressed and make page reload at the same time. I tried and it didn't work. I'm doing something wrong?

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)
  • How can I work from my deskstop PCs, directly in a foledr shared under win server 2008 so that all my work is saved directly on the server.

    How can I work from my deskstop PCs, directly in a foledr shared under win server 2008 so that all my work is saved directly on the server.

    what I try to do is the following.

    I installed winserver 2008 on a machine and I created a folder for the individual. I want the individaul to connect in the folder ocreated on winserver 2008 directly from their desktop and laptop computers and their work so that all works are recorded directly on the server.

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • How can I save a local copy of the video that gets uploaded to facebook?

    I want to save a local copy of the video that is encoded and uploaded to facebook directly from the software.  If it is stored in a temporary or permanent location?  I can't find it in one of my places to scratch.

    Hey, I have sought and obtained the eaxct file that pre code before download it on facebook (or any other online service), in case you need the same file that pre encoded for download online.

    It's in your temporary files folder (just press Win + r and type folder in the control box run)

    After pre finished encoding and wants to pass or download services online, the file is present in the temporary folder, with the name H.264.mp4

  • How can I connect my Mac to a network server? As in windows yo go to my computer / connection to a network drive, and then you select a letter and write the name of the server that you want to be logged

    I'm trying to adapt Windows to my new MacBook Pro with OS El Capitan.

    I work remotely for a company and I want to connect my Mac to the server of the company.

    My question is how to connect a MAc to a network drive with the permanently available connection.  For example, in my old HP I went to my computer / connection to a network drive. I've selected a letter and note the name of the server that I wanted to be connected to. The connection was then shown with my other drive hard 'sections '; I want to say C:, D: (for recovery), e: (for tools) and then connecting to the external server has been shown with the selected letter.

    There is no "letter" under OS X. It's a hangover very old of BACK, devices of mapping and volumes labeled mailbox.

    If you are connected to your corporate network, you should see the available network volumes listed in the Finder, in ' my computer > network ", or with the command K to connect to a server.

    You can create an alias for the volume and put it in the Dock, or leave on the desktop or put it somewhere else, and the next time you want to connect to this subject, simply double-click on it. You can also add the server address to your "favourites" in the connect to Server dialog box.

  • I can't send emails with the server that I use to receive. Can you tell me how to find my server from?

    Help send emails

    I can't send emails with the server that I use to receive. Can you tell me how to find my server going.

    Your provider of messaging service for this information.

  • Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value.

    Prob Winmail.

    Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.

    Using a digital signature?  Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.

    Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.

    Steve

  • The server that you are connected using a security certificate which cannot be verified... The name main target is incorrect... You want to continue using this server?

    All new computer running windows 7 64 bit, outlook and office 2007 installed, initial problems with the temporary user profiles, follow up advice and removed user profiles in the system registry and all seemed to go well. Computer works for about a week with two user profiles and now all of a sudden I get an error message when I start Outlook and from time to time when you browse the internet, it reads:

    The server that you are connected using a security certificate which cannot be verified... The name main target is incorrect... You want to continue using this server? (If I hit Yes then I can send emails)

    When I open view certificate it says: this root CA certificate is not approved. To enable trust, install this certificate into the store certificate authorities roots of trust. (Attributed to and: Cisco device demo certificate - valid from 10/02/2009 to 03/10/2019).

    Problem is I don't know what the certificate is, what I need, to find out how locate, how to move etc, I have read a few forums, but they are starting to be too technical. I need help for step by step easy.

    I tried to uninstall outlook 2007 and reloading and clearing of the States of ssl in internet options, and then reset by default (as someone suggested), but it made no difference.

    Problem is when you leave the store with the new computer, nobody wants to know you if you need assistance!

    Can someone please help? Thank you

    Hello

    Welcome.

    Just a tip, never download and install anything on your PC, unless you know and trust him.

    > «Computer brand new...» I need help for step by step easy. »

    Contact the PC manufacturer emphatically support team.

    > ".. . Office 2007 installed...

    Support to the: http://answers.microsoft.com/en-us/office/default.aspx#tab=1 and ask your question in Outlook it.

    You can also check if this problem occurs when you use Windows Live Mail, which can be downloaded on: http://download.live.com/wlmail.

    > «Server that you are connected using a security certificate which cannot be verified...» »

    Just learn more about the certification of server to the: http://en.wikipedia.org/wiki/Certificate_server .

    Remember: keep the system tools and security update.

    Success.

    Rgds.

    itconcerned

  • Synchronize with the server not search entire site?

    I went to Dreamweaver CS6 CC recently, and when I hit the button "Synchronize with the server" to compare local files on the server, it seems to ignore this file I selected in the "files" window and compare the whole site.  It takes forever and I thought that it was "suspended" in the beginning, but without meaning to, let him consecrated in the background while I was doing another thing and found that it has finally completed the task, but rather than simply verify that a folder, he compared all the and all the files on the server for my entire site!

    I do the same thing, that I used to do with CS6, but the behavior is different.  I do it a lot, and if I can't fix this, I'll have to give up CC and return to the CS6.

    Can someone help me?

    Thank you!

    Theo

    Thanks for the reply!  The link you sent me is a completely different topic, synchronize my Dreamweaver with the Cloud parameters, considering what I've been struggling with syncs my files from the local site with files in the site on the remote server.

    But by going over it again just at the time, I discovered that I wasn't paying attention: when I used to hit the button "synchronize the files on the remote server" on CS6, there was a parameter in the dialog box that came that said to synchronize "local files only," while the same setting in CC said , "Holy Cross the entire Site" ("Holy Cross" is the site I'm working on the Church's web site) and I've done this so hundreds of times, I just wasn't looking for these options, and more, and it didn't occur to me that one of them could be causing my problem.

    Of course, when I set it to "only for local files", he did what I wanted.  I apologize for not having understood what was the problem before.

    Thanks again!

    Theophanes

  • Save indivifdual emails directly on the drive?

    I need to identify and save individual emails (identified using the filter function) to a folder in the disc.

    To ensure that no e-mail is overwhelming any other file names could be (possibly) self created GUID, otherwise the line object (adding a counter on the name conflict).

    Is it possible by using existing functionality or via any add-on? If not, is there someone out there interested in creating an add-on for something like that?

    (My intended use is to have a server application on my local machine to import some emails (identified by the function of existing filter) for treatment).

    Rolf Lampa

    Look at the Add on FiltaQuilla.

  • Flex local differentiation and execution of the server of a SWF file

    Hello

    While developing, I run a Flex in FlexBuilder as C:\flexapp\bin-debug\file1.swf application

    The same swf can be deployed on a Web server and can be accessed http://localhost:8080/flexapp/file1.swf.

    thr is a way to differentiate it?

    Thanks and greetings

    mxvx

    sandboxType

  • How can I save only mail sent on the server and do not have thunderbird download everytime I open the program?

    IMAP and everytime I open Thunderbird is so slow because it's downloading my mail sent to server. I want that my sent mail stored on the server and no hard disk.

    you have your mail on your computer or you do not. I guess that you I don't camp.

    Right-click on the account in the folders pane, select settings.
    Synchronization and storage deselect messages to store for this account on this computer.

  • How can I save a text file on the disk in Illustrator?

    Hello

    I was looking through the Javascript reference and couldn't find that everything related to the writing of strings in a text file on the disc.

    Is this possible? If so where should I look?

    If not, can I run a piece of code in the Terminal/CommandPrompt in Illustrator (. e.g. echo 'Hello!' > > file.txt)?

    Here's something I think that Muppet Mark or Carlos Canto posted earlier

    #target illustrator
    
    var textFile = File('~/Desktop/AI.txt');
    
    var doc = app.activeDocument;
    
    var docText = '';
    
    for (var i = 0; i < doc.textFrames.length; i++)
         {
              docText += doc.textFrames[i].contents + '\r';
         }
    
    textFile.open('e');
    
    textFile.write(docText);
    
    textFile.close();
    
  • Why the update muse my pictures not on the server that the client has entered?

    Sorry my English verry bad. When the customer has enterd new photos on the server, muse adobe will not update this new photos.

    I use the latest Version of Adobe Muse. Please can you give me a solution for this problem?

    Philipp,

    Save the file to Muse, Muse and re - open the same file, click on the file-> to synchronize with the Web version:

    This should show you that the site updated.

    Kind regards

    Akshay

  • Please point me in the right direction regarding the forms that email to me

    I really want to learn to program a form of base - name, email and message. I know how to create the

    a Web page that contains the fields that you type using dreamweaver. But I need a little direction to clear the checkpoint.

    Here are my questions:

    (1) programming language is easier to learn that will allow me to complete my email form?

    (2) you know all the web resources that I can go to help me get started with this programming language?

    Thank you!

    AndrewMichel1 wrote:

    That's what they told me everything that my hosts support web

    We support ASP and ASP.net and JSP, PHP, HTML and web more commonly internet languages. We do not support cold fusion, Microsoft SQL server (these technologies are very expensive to license in a shared environment). Not all calls for ASP are supported, but we have about 85% coverage, although we do support windows and ASP Web sites, if not a Windows server (IIS) environment.

    If it is the case that I would stick to PHP.  I wouldn't recommend same ASP programming on a server is not IIS and me cannot believe would provide such a solution.

Maybe you are looking for

  • Satellite A665 - 12K: BT does not work - cannot find the remote service

    Hello! Help solve the problem, Computer laptop A665 - 12 k connected via bluetooth devices, bluetooth Manager finds the device, but do not connect it gives an error 'Cannot find the remote service' before you reinstall windiws solved similar problems

  • Satellite 1905-s303, WinXP: giant screen, need to update the display driver?

    Hey guys, thanks for your help in advance! I am a Satellite 1905-S303 and Windows XP Here's what s past with my computer: When I turn it on there a little longer than normal to start. And I hear a sound of tck - tck on the back of my computer that I

  • What about a list of error and order ODBII?

    Thanks for the recommendation for research ODBII.  I was wondering if other members were working in the region to deal with interfacing ODBII?  I want to be able to read and erase codes of error using a VI.

  • smartwebprinting.msi not found

    I installed C4780 printer copier scanner and given that every time I do anything online pop-up Windows Installer want to install smartwebprinting and will fail as long as the msi file is not how to disable that please? XP Professional platform

  • can't fake phone calls on the "BOLD" Simulator

    JDE v4.6 I and I can't get the "BOLD" Simulator to simulate incoming calls and I can't shout with the phone application.  When I call from the phone app, it says "cannot conect xxxxxxx". Anyone have this problem?  4.5 and 4.2 sims work fine.