dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How do I replace text in a string?

  1. #1

    Post

    I'm importing a block of text from a ColdFusion page into a Flash movie. All the double quotes (") in the text are currently set as the HTML character:

    Code:
    "
    .

    Basically, I want Flash to replace all instances of
    Code:
    "
    . with an actual ("). How can you do this in Flash?

    Thanks!
    [Edited by tenetarns on 08-17-2002 at 11:25 AM]

  2. #2
    Originally posted by tenetarns
    I'm importing a block of text from a ColdFusion page into a Flash movie. All the double quotes (") in the text are currently set as the HTML character """.

    Basically, I want Flash to replace all instances of """ with an actual ("). How can you do this in Flash?

    Thanks!
    Im not quit sure if this is the right way, but try it with using a split command like
    ->NewString=oldString.split("letter")

    The NewString is stored in an Array which you can read out.

    Hope that this is helping you.
    Dirk

  3. #3
    But can you then concactenate it back using whatever character you want? I know it has a concact function, but how would you apply it here?

    I was shocked to find that Flash doesn't have a simple ReplaceNoCase or Find function. It would make life so much easier...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center