A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: String to Number from TXT file

  1. #1
    Senior Member
    Join Date
    Mar 2000
    Posts
    182
    Ok, i load var from a txt

    var="4"

    how do i convert it to number 4?

    i tried with Number and similar, but stupid thing just realizes that this is from a external file and will not change it !!

    any ideas?

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    182
    var="4"

    a=Number(var)

    Output:

    a=0

    aarghghgh

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Posts
    182
    But i managed!!!! Mighty me!!

    var="4"

    a=String(var);
    b=Number(a);

    Now, can someone explain why is Flash so stupid and cannot recognize that if i load something from TXT file it is a STRING ??

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