Flash changes apostrophe to question mark when saving data?

Hi,
Ok these are the steps I take to create the problem within my Flash application.
1. Copy and paste a string from a word.doc which contains an apostrophe
2. I then save this data to a XML doc.
3. reload that XML data, now the apostrophe has changed to a square box
4. I then resave this data
5. I reload this data and now, the square box has changed to a question mark.
My question is, how do I stop this from happening other than not copying from a word doc?
Is there something extra I have to do when parsing the string into its saved format.
Currently what happens is:
1. Pass the string from the input box to an object
localTextObject.textData = myInput.text
2. The object is then parsed through a custom Object to XML parser
for example:
textNode.text = "";
textNode.text.appendChild( localTextObject.textData );
3. And then an XML file is saved local with this data in it.
Does Flash do something wonderful along the way as so by the third time around we have gone from a speech mark to a question mark?
Any help with solving this problem would be very much appreciated.
Thanks

Apostrophes from word aren't part of the normal ASCII character set. They've been mucking up plain text forever...
You can use a RegEx to strip them out, or just change them to regular apostrophes. Something like so should work:
reg = new RegExp("“", "gi");
m = m.replace(reg, "");

Similar Messages

  • Getting a flashing folder with a question mark when starting Imac.

    I got this flashing folder with a question mark on it when starting my Imac this morning. Im running on Osx 10.6. I put it in target disc mode and connected it to my macbook pro. I opened the disc utility app on the macbook and found my imac. I "verified" it and found an error. When I clicked "repair" the disc utility app froze and crashed. When I opened it again my Imac didn't show up. I've restarted both computers several times with no luck. Whats my next step?

    Hi.
    Try restarting your iMac while holding down the option (alt) key until the spinng gear appears.  You should momentarily be presented with a list of startup drives to select.
    Choose Macintosh HD (your normal startup disk drive) and click the right-arrow.
    When your iMac boots, go to System Preferences > Startup Disk and again select your normal startup disk. Then click Restart.
    I hope this is helpful.
    EDIT - disconnect the machines from each other first.

  • Help ! Flashing folder icon with question mark when starting up

    Hi, I have tried to restore my macbook pro 15 (2012 model with Yosemite OS  X) to factory settings and wipe out the hard drive but on restarting it I now just get a blank screen with a flashing folder icon with a question mark on it. Any help/advice anyone I would be very grateful for ! Thanks,  Mark

    Something didn't install properly.
    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • When i boot i get a flashing folder with a question mark. disk utility doesnt work or read my harddrives to boot with. i installed a new SSD and its not reading that either. i have a macbook pro 2011, any help?

    So I came to this problem a while ago. M ycomputer basically froze so I was forced to shut down by holding the button down. When I started it up I got the flashing folder with a question mark. I started it up holding down the command and r keys which brought me to disk utility. Although my computer doesn't read that I have a hard drive to start it up. When I click on the disk utility app, I cannot verify or repair anything either. The buttons won't allow me to click on them. It also shows "Mac OSX Base System" which shows I have files and what not saved. I had been told that I need a new hard drive so I bought and manually installed a OWC SSD 240GB drive and when i booted the computer up it booted up yo the operating system fine with all my files and what not on there. After about twenty minutes, it froze again. I forced a shut down, restarted and the same thing happened. I am not able to choose my SSD to boot up, although thats probably because it doesn't have an operating system installed on it??
    i have a Macbook Pro 13" 2011
    any help would be great, I'm overall confused.

    ryansaint11,
    this isn’t Apple support; this is a user-to-user forum. We’re just fellow users of Apple products here.
    If you want to boot from your SSD, then you should put the SSD where your HDD currently is, and put the HDD into the optical bay. (That setup will also get you the best performance.) At the moment, you’re still booting from your HDD. Note that you will need to format your SSD in Disk Utility [with the “Mac OS X Extended (Journaled)” format] so that you can install OS X onto it.
    Since you have an Early 2011 model, it might or might not have originally come with grey installation DVDs. You will be able to find out whether it did or not by trying to use OS X Internet Recovery to install OS X onto your SSD. If it does not work, or if the installed OS turns out to be Snow Leopard, then it will have originally come with the DVDs, and you should purchase a replacement pair of DVDs from Apple or iFixit; those discs will have your MacBook Pro’s Apple Hardware Test and its iLife apps. If the installed OS turns out to be Lion, then it will not originally have come with the grey installation DVDs, and your Apple Hardware Test will be installed along with Lion, and your iLife apps will be downloadable from the Mac App Store.

  • Flashing Folder with question mark when turning on

    My friend was running MacScan. All the sudden, it was blocked. He waited and nothing happened. He turned it off. Turned it back on, but nothing changed so he took the battery out. When he tried to turn it back on, there was nothing for about a minuted except the grey screen when it turns on until there was (and still is) a flashing folder with a question mark?
    What should he do?
    Thank you!
    Antoine

    Hi Antoine;
    Generally the flashing question mark in a folder at boot indicate that the Mac is not able to find a disk with a system on it. It usually indicates problems with the system disk. I would suggest you boot from the install media that came with the Mac. Then run Disk Utility from there to check out the disk.
    Allan

  • TS1440 Flashing question mark when I start the MacBook

    Hello!, I have a MacBook Pro  but there was a flashing question mark when I start the MacBook, it does not go away, I have read the tips on you all site, but I can't find anything, it is for the Mac, not for a MacBook. Can anyone help me please?? Thanks!

    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    Boot drive's directory has been corrupted - Repair with Disk Utility.
    Critical system files are damaged or deleted - Reinstall OS X.
    The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • HT1310 when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what

    when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what

    Here is an article that describes what it is supposed to do:
    Startup Manager: How to select a startup volume
    If no Volumes are shown, it is telling you there are no potentailly bootable Volumes attached. That means your boot drive has died or the bootable image on it is unrecognizable.
    What Mac Pro ? by year, GHz, number of processors, screen size?
    What Mac OS X ?

  • When I start my Mac air I get a flashing folder with a question mark

    I am trying to start my Mac air and I get a flashing folder with a question mark. When I turn the power of it shuts down but wen starting it comes back

    Just being clear about your situation.  When you hold down Option during boot it does not show a system volume or a recovery volume from which to boot.  At that point if you select a network boot and you do not see a spinning globe that persists there a good while as it loads the recovery partition over the network.  True?
    A couple of more thinks to try:
    Disconnect all of your external devices.
    Reset PRAM
    Boot with the option key again.
    Standard things to try (which is sounds like you already have attempted) A flashing question mark appears when you start your Mac

  • I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it?

    I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it? I've tried a few things i've seen online but the futhest ive got is to put the start up disk in when you makes it go to a grey screen with an apple logo and the spinning wheel which then stops spinning. Can anybody help?

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the Operating System data on the hard drive is somehow corrupted.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Just press the Return key on your keyboard once.It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is then click on the Mac OS partition of your hard drive in the left handlist. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • Flashing folder with a question mark in it when starting up

    Hi, I own a white MacBook that is fairly new. When I boot it there is a flashing folder with a question mark in it. I read here: http://support.apple.com/kb/TS1440 what to do.
    I inserted my Leopard disc, held C while booting and then opened Disc Utilitiy. But the only images to appear in the left column of Disc Utility is the "Mac OS X Install DVD". So I tried resetting the PRAM by holding down cmd-opt-R-P while booting.
    Then I tried the same thing again but still there is only the install disc in the left column. If I go to Startup Disc there is only the install CD and "Network Startup".
    Now, if I were to reinstall the system as it says in step 4 of the guide, what will happen to my data? I read that this error could be a sign of the hard drive crashing, and with no back up I really don't want that to happen.
    So, is it safe to reinstall the system, or what do you suggest my next step to be?

    Try booting in Safe Mode
    http://support.apple.com/kb/HT1455
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    I tried booting in Safe Mode by holding down shift while starting, but it just went to the flashing folder with the ?-mark in it. Then I tried to enter single-user mode by holding down cmd-S while starting (http://support.apple.com/kb/HT1492), in order to try the fsck-thingy, but still just the flashing ?.
    When I start my computer it makes bad noises from the bottom right side. I fear that the HD is broken , it sounds as if it is working very hard, making scratchy and clicky noises.
    I also tried using the computer as a FireWire target in order to retrieve some data (http://support.apple.com/kb/HT1661). When I bootet the "broken" computer and held down T the FireWire symbol appeared on the screen. But on the host computer I could not find the target computer.
    Any more ideas?

  • When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark

    When I start MacBook Pro13 shows gray Screen and flashing file Image with question mark , it's brand new I just receive it from Apple Store .

    Startup Manager to select Startup disk.
    http://support.apple.com/kb/HT1310
    Repair Disk
    Steps 2 through 8
    http://support.apple.com/kb/PH5836

  • What do I do when he only thing on my screen is a flashing folder with a question mark.

    I had a few browsers open on my computer. I accessed my calendar and it froze. The mouse would still move, but I could not click on anything. Then the screen went grey with a flashing folder with a question mark. I turned the power off and turned it back only but only see the grey screen with the flashing folder. I tried resetting the PRAM but it still will not work.  Can this be fixed? Please help!!

    You may have a disk error - could be an unrepairable physical problem with the drive, or a repairable file structure problem.
    Hold down cmd-R (both keys together) as you start up the Mac, and keep them held down until you see the Apple menu. When it boots to the recovery partition, click Disk Utility, and run Repair Disk on the Macintosh HD. Let us know if you see errors there and whether or not DU can fix them.
    Good luck!
    Matt

  • When my desktop (Mac Power 5) starts a folder comes up with 2 heads which changes to a question mark. Does anyone know how to fix this.?

    My Husband turned his desktop off without shutting down now When my desktop (Mac Power G5) starts up  a folder comes up with 2 heads which changes to a question mark. Does anyone know how to fix this.?

    Step 1- Try booting to Startup Manager by holding Option/Alt key.
    Select the boot source and click the right arrow.
    Once booted, open System Preferences and select the desired boot volume.
    Replacing the PRAM battery is likely wise if the machine keeps forgetting it's boot source.
    If that doesn't work,
    Step 2-  Boot holding a mouse click, insert the OS X install disc and hold C to boot to the install disc.
    Once booted, open Disk Utility and "Repair Disk" on the boot drive.
    Once done, reboot normally.
    More:
    http://support.apple.com/kb/TS1440

  • What does it mean when i have a flashing folder with a question mark in it when i try to boot up?

    what does it mean when I have a flashing folder with a question mark in the middle of it when I try to boot the interface?

    It means the system cannot find a bootable OS. Reinstall OS X.
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

Maybe you are looking for


HashFlare