A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting code to read each line in a text box

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    15

    Getting code to read each line in a text box

    I'm trying to assist some members and make a small program that will add up all the numbers on the right of each line... I've been working with game code for years, but this is my first attempt at Strings! lol

    The following text below is what the text box will be filled with


    05/02/2009 01:08:49 Ad Package Bonus in amount of 5.
    05/02/2009 01:08:49 Ad Package acquired in amount of 20.
    05/01/2009 02:14:59 Ad Package Bonus in amount of 4.
    05/01/2009 02:14:59 Ad Package acquired in amount of 16.
    04/30/2009 11:05:37 Ad Package Bonus in amount of 2.
    04/30/2009 11:05:37 Ad Package acquired in amount of 11

    Just need to add up the numbers on the right
    Last edited by carpadeim12; 05-02-2009 at 02:25 PM. Reason: improvement

  2. #2
    亲爱钰 slingsrat's Avatar
    Join Date
    Mar 2002
    Location
    Middle Earth
    Posts
    229
    It is a kind of round about way to extract the data once it has been outputted to a textbox. Couldn't it be added up before hand?

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    was this not already answered ??

    Yesterday, 07:49 PM
    http://board.flashkit.com/board/showthread.php?t=794342

Tags for this Thread

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