problem with shaped text saved to hard disk

I use a modified code of Macromedia to save the content of a text filed on the hard drive. See the code at the end.

The code works fine, and a text file is saved in the specified hard disk location.

The problem is that all the content of the text field appears in a very long line.

The line breaks in the field text appears at all in the saved text file.

for example:

If the following is the content of the text filed on the stage:

abcdef

jhijklm

nopqrst

uvxwyz

then the saved file is like: abcdefjhijklmnopqrstuvxwyz

No line break happens! How can this be repaired?

Thanks for your suggestions.

HUMAN RESOURCES

Here's the code *.

----------------------------------------------------------------------------------
-This handler saves the contents of the field in a text file called "output.txt".
-more written anything in the file "output.txt".
----------------------------------------------------------------------------------

global myFile

on mouseUp

If objectP (myFile), then set myFile = 0 - Delete the instance if it already exists

myFile = new (xtra "fileio") - create an instance of FileIO

openFile (myFile, the moviePath & "output.txt", 0) - open the file with R/W access

Delete (MyFile) - erases the file

createFile (myFile, the moviePath & "output.txt) - creates the file again

openFile (myFile, moviePath & "output.txt, 0)-open the file with R/W access

mySaveString = member("input").text - puts the contents of the "input" field in the variable mySaveString

writeString(myFile,mySaveString) - writes the text in the file

closeFile(f) (myFile) - close the file

myFile = 0 - has the instance

end

******************

If your problem is solved?

In order to get the Manager/JS function to compile, go into a script member whose script is JavaScript. There is a drop down menu top left of the script pane that allows you to change that. For this reason, the JS function should go into a separate #movie with the script script

Tags: Director

Similar Questions

  • I can't and never been able to open a file that was previously saved on hard disk by selecting the print option to get in the print dialog box

    I can not and never been able to open a file that was previously saved on hard disk by selecting the print option to get in the print dialog box. Firefox displays gooblygook, even if the name of file is an html element, the Notepad of Windows crashes, MS Excel does not recognize the file type. MS Word also displays goobblys when the file has no file extension.

    If you use the file printing, then you will get a file that is supposed to be sent to a printer, and this file has any sort of code formatting for this printer.

    Open such a file in Firefox or a text editor can only work if you use one printer for text to print the file to, then make sure that such a printer is installed and selected.

  • Photoshop: problem with the text tool

    Hi there, problems with my text in Photoshop tool. When I try to write, using vertical text is written just a line, a straight line instead of any text. This only started happening in the last hours. I tried to change the texts and closing and start Photoshop again, all without success, please help?

    Please reset the text tool

  • Problem with the text is pixelated

    Problem with the text is pixelated on iPad retina. You have a solution?

    Digital Publishing Suite 101: keep the text accurate in a Raster slideshow

  • I have problems with the text... Help

    Hey

    I have problems with the text box in indesign cs4...

    When I do a text frame and write a short text and want to make a new line and press ENTER, my cursor goes to the next page and the small red cross in the corner of my document apears.

    someone knows what to do here?

    I realle need your help

    Thank you

    This has been covered a lot. A BIOS update may be an option to solve the problem of keyboard mapping, you can change your keyboard shortcuts to reassign the digital keypad input to be a paragraph return or you can try simply by changing the State of the numlock - if it is on, turn it off and vice versa. Withthis problem most of the systems that seems to change the function of the two keys back and forth between the enter alpha and entry number.

  • problems with the text and rounded rectangles

    So I have some rounding of the rectangles in fireworks, then export as fxg, and import it into flash catalyst - but they lose the roundness of rectangles square become. Also have problems with the text as half displaying or doesn't appear do not at all.

    feature request

    -would be really cool to be able to change the paths in flash catalyst

    -Edit the code in code view

    see you soon

    brand

    Hi, the absence of a property of corner radius is a limitation of the FXG export command in Fireworks CS4. We work closely with the Fireworks team to improve interoperability FXG in CS5.

    Thank you for your comments and suggestions.

    -brian

    Team Flash Catalyst

  • Problem with the MK6021GAS as external USB disk

    Hello

    I have a laptop that has a built-in drive HARD Toshiba MK6021GAS.
    I found the disk too slow, so I bought a Hitachi travelstar 7200 RPM to replace. That worked without problem.

    But now I want to use the Toshiba HDD USB external drive. But it does not work. On most computers, I get Windows detect the device but then say "an error occurred during the installation of the device" and a few other times, the device is installed as "unknown device".

    The thing is the usb box works perfectly well with all the other readers, I tested (consuming more than my Toshiba) and the HARD drive works fine if I put it inside my laptop again. I tried to Master and selection of cable, same error.
    I tried several computers (so many configs), several catches USB, tried to add external power source... I still get the same error.

    My 2 "5 USB box is"Mobile Disk "... Well well... noname.

    What can I do?

    Ludovic

    Hello

    I also have external HARD disk. I use it with USB 2.0 2.5 "Portable Hard Drive Enclosure external enclosure and it works very well. Before use, I installed driver CD I got with external box.

    How to use it? Have you installed a driver?

  • Re: Satellite U305-S7477 - problem with a clean installation of recovery disks

    I'm trying to do an OS clean installation of Vista on a new hard disk, the installation proceeds correctly, but in the end, instead of asking me to create a user id and password as the machine makes first start upward when it is new, it shows a login for the administrator with a message that the administrator account has been disabled , and enter another pre-existing user name and password, that I have not since this is a clean install.

    Toshiba wants to get only the recovery on top a pre-existing installation of OS? It would be quite a limitation and would prevent one to recover their machine after the death of a hard drive.
    Any thoughts? I look through the docs for a password by default, but if it's there I have not found it.

    Thanks in advance!

    Hello

    To be honest, your question is strange to me. The fact is, for the installation of an operating system you can use Microsoft DVD or DVD Toshiba recovery facilities. In both cases the installation is almost complete you must enter your user name and password (optional). There is no difference at all.

    I made repeated several times on WXP and Vista installation. No difference at all. Username must be entered always and I didn t notice such problem, as described in your ad.

    So please try to reinstall the OS and pay attention to every step of facilities. Images of recovery facilities are tested, and I can't imagine Toshiba s people can control something like that.

  • Satellite M30X: Problems with external USB 2.0 HARD drive

    Hello
    I have a Toshiba Satellite M30X. I bought recently a 200 GB external hard drive. It has its own power supply. If I connect with USB 2.0 on my laptop, it happens to disconnect and reconnect leads him. Sometimes it works, so I can put data on the disc. Then again, he diconnects and reconnects repeatedly. I've tried a different USB Port, but there is no difference. It's very strange, because I plugged the external hard drive to many other computers (Laptop and Tower) and it STILL works! It is that with my cell phone, it disconnects and reconnects all the time. As I said, not always. Sometimes it works for a half an hour or two and then the action begins again...

    If anyone can help?
    Oxford Lutz

    Hello

    I put t know if this can help, but you can try to connect a USB hub with an external power supply. Then try to connect this external HARD disk to the USB hub.
    I know that it of not a exactly the solution but maybe it will help you to solve this problem of USB.

    Good bye

  • Problem with connection of the external hard drive.

    Hi, my laptop runs Vista Basic. Recently, when I plugged a disc external HARD to 3.5 inches on the PC, I can only read the files on the HARD drive for about 5 to 10 seconds before receiving an I/O device error message.

    I don't know if it is a hardware or software problem.

    What can I do to solve the problem?

    Thank you.

    Hello

    Please contact the Microsoft Community.

    I'll help you with the problem. Please answer these questions in order to get clarity-

    (1) what is the exact error message?

    (2) deal with a similar problem on another computer

    I'd like to have you go to Windows Update, download and install optional updates in the list.

    Note: The hard drive must be connected by.

    In addition, you can also view this article to check for errors on the hard drive-

    http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors

    Note: It is possible that you may lose the data on the hard disk after performing the chkdsk command. Make sure that you back up the data before continuing.

    Know let us know how it works for you.

  • Problem with installing Windows on a hard drive, HARD drive does not get detected after installation

    Original title: help with hard drive of the computer.

    Flow of the problem:

    My aunt tried to install windows 7 on the previous copy of windows 8. Needless to say that it doesn't work and it has messed up the hard drive. So, I bought a vacuum. I formatted the hard drive using my other windows computer to have 2 partitions: a boot partition and system partition, and then used the program WinToUSB to install windows on the hard disk. The reason I did it is, because no matter how many times I changed the BIOS in my laptop of aunts, it wouldn't boot from the DVD player to load the windows software. After a few hours, I found WinToUSB. Once windows has been installed, I plugged it into the laptop. For a few hours, I didn't know what to do, because the computer does not recognize the hard drive (he said: "Not detected"). I decided to start from legacy, and then the screen deals

    «intell...» »

    and a bunch of dates, etc all the stuff on the screen to load legacy if you know what I mean.

    He said "not plugged in the media. Check the power cord.

    Then quickly changed screen before I can read almost anything and it goes to the normal windows screen black (with 4 colors). I said to myself, how can he be loading if the hard drive is not detected... Once it is loaded, he brought me to the blue screen (blue screen of death, if you want) I turned the computer on again, always noticing the hard drive was not detected. I ran all the recovery/repair options I could and turned off the laptop. I came back a few hours ago and I loaded the computer again and went into the BIOS.  He said that the hard drive has been detected and said the news about this, as usual. However, at the start of the legacy of windows loading screen, it said still not detected.  I then started to windows to see since it is now detected if that fixes the blue screen. Yet, there is no. I tried to go to the normal windows and screen remains blue. any ideas?

    Hello Chris,

    Thank you for visiting Microsoft Community.

    According to the description, it seems that Windows was not properly installed on the hard drive. I'm not sure how to work the software from third-party manufacturers WinToUSB and reliable installation process is. Microsoft does not recommend using any third party tool to install Windows on your computer, the use of these third-party tools can cause serious damage to your computer.

    I would say to format the hard drive once more and try to install Windows through normal Windows installation process.

    Refer to the section "using the installation option custom if no operating system is installed" in the thread below.

    Installing and reinstalling Windows

    http://Windows.Microsoft.com/en-us/Windows/installing-reinstalling-Windows#1TC=Windows-7

    If you are not able to install Windows on the hard drive at all, I suggest you to contact the hard drive manufacturer to obtain a diagnosis of material performed on the hard drive.

    Do not hesitate to write back for any further assistance with Windows, we will be happy to help you.

  • Problem with activation by using two hard drives (XP on one) and Win7 on the other

    I have XP sp3 installed on a hard drive and Win7 on another. I never use XP, I only keep there to keep my Win7 works great.

    I do not remember how did I installed win7, but I pretty sure I booted from a USB key and installed on a new hard drive.

    It seems that XP hard drive is in charge the boot settings, or something because I have set as the boot default HDD (in bios), and then select Windows 7 in boot menu that follows.

    If I select the hard disks Windows 7 the default boot hard drive, Windows restores activation. Select the hard drive with XP and win7 then choosing in the start menu, works very well, the activation is OK again.

    I'll install Win8 (that I already bought), but I still need to figure out what to do with this situation, because I need to replace the hard drive where XP is installed and install Win8 and have a double Win7 and boot 8.

    It is possible to solve the problem of activation, without having me call Microsoft? I use a utility called EasyBCD 2.2 and I was wondering if maybe this program could help fix me.

    Any thoughts?
    Wilfredo.

    Disconnect the drive xp, fix the win7 installation and activate if necessary

  • Problem with a VM server: "the virtual disk parent has been changed since the child was created.

    Hello!

    I have a problem with a server that does not start.

    We had a virtual machine running on VMWare Infrastructure 3 with two hard drives and an instant backup of them.

    This machine has been removed from the inventory, but when it has been recreated, the secondary hard drive is mentioned for the basic-disk vmdk
    instead of being referenced to the instant vmdk and used for a few days.

    All changes made after the snapshot, were kept in the delta snapshot file, which is not loaded.

    We are with difficult to reference the secondary disk for the snapshot file. We tried to edit the .vmx and hard disk files
    to correct the CID made reference, but when we try to start the virtual machine, we got this error:

    "The virtual disk parent has been changed since the child was created.

    I think it happens because we made a blow-up of a secondary drive a few weeks after the backup snapshot. We spent 30 GB to 50 GB.
    And because it has been referenced and used in another vm.

    *** Log is attached

    Thank you

    Bruno.

    It is a bad sign

    next step in the usual forest is to use "testdisk" since a LiveCD to set the tables MBR and partition - if possible

  • Problem with the text block (text cut)

    Hello

    I have a problem with indesign (last CC version, I have upgradate today in the morning).

    I create a document with several pages and each page

    is a text box it and the text box are connected (the text content is broadcast through them).

    The text box are defined by a paragraph style, where I set the font style, color...

    I defined that the box can be 2 colunms and oviously, I also set betwin space columns.

    So the apears tex cut in the bottom text box and the rest of the blanks strages.

    I enclose a scrrenshot.

    Please, help me, I'm stacked in this disorder.

    Thnk

    EmilianoSchermata 2016-07-21 alle 16.48.59.png

    I find the solution.

    Yhe problem was in the style Panel,

    in the tab which, in Italian, is called 'options di separazione.

    I am enclosing a copy.

    Thank you all

  • Problems with the 'Text Ticker' Widget

    Hello, I have a problem with the widget "Ticker text." I tried to put more ticker and then a text on my site, but it does not work, when I look in Muse it looks like this:

    TextTickerinMuse.JPG

    and when I look in the preview only the first text ticker works... maybe it is not possible to have more then ticker text on a site?

    TextTicker.JPG

    Thank you.

    It seems that you use the same name for all instances of ticker on the page.

    You must have a unique name for each ticker you want on a single page. Strips with duplicate names will not work.

    See you soon,.

    Vikas

Maybe you are looking for

  • Notification of Firefox at the bottom right of the screen freezes Windows 7

    It seems that recently, Firefox (and maybe pop up notifications) are freezing my computer Windows 7. I used Firefox for years without this problem. In recent weeks, I noticed that system freeze seems to happen when a Firefox pop-up notification appea

  • Is there a way to connect my Cinema Display 30 '' to my iMac end of 2015

    I have an old 30 "Cinema Display that I bought new, I like it. It works perfectly, no problems at all. I also recently just bought an iMac 21.5 "(fin 2015) i7 which has only 2 connections thunderbolt." I have a dual link DVI to mini display adapter,

  • Summerizing colum numbers = a date

    As you can see, try to summarize a list of numbers is not going so well. How to solve this problem? The formula is what it should be: «summer(d2:d30).» But does not lead to what anyone other than a date. Even if I try to summarize all the other colum

  • Problem with recording devices and call issues

    Until recently I had a few problems with my microphone on Skype. Whenever I start my PC, everything will be fine, but every time I change the microphone source (from my webcam for stereo mix so I can play sounds in calls) and leave the call, I get we

  • Cannot change the name of the application to have spaces

    My problem: -J' created an application with a name that has no spaces (for example ThisIsMyApplication).  It relies very well, but when deployed on my device (debug or release), the name displayed under the icon on the home screen is without spaces.