A Flash Developer Resource Site

Results 1 to 20 of 24

Thread: convert a string to an array

Threaded View

  1. #21
    Learning Flash yow's Avatar
    Join Date
    Jun 2007
    Location
    melbourne
    Posts
    110
    hmmm... does this work? maybe more efficient than c/c (as if it mattered!)
    if (c-c!=0)

    EDIT: no, silly me, as soon as the / or - operator sees it's dealing with a non-numeric string, it will return undefined. It won't actually do any division or subtraction. So same efficiency.

    EDIT2: or
    if (c*0!=0)

    Or, could do:
    if (isNaN(parseInt(c)))
    Last edited by yow; 07-19-2007 at 04:28 AM.
    code tested in Flash Basic 8 (AS2), Windows XP

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