Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default split filename

    who can split this file name then subtract "kenny.pdf"
    file name--> C:\programfiles\funk\pdf\kenny.pdf



    36US webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Split Format
      We have taken over the maintenance of our website using Macromedia Contribute...we are beginners using the product however we recently changed a ...
    2. Split email??
      CFX_POP3 splits out the FROM address into FULLFROM, FROM and FROMNAME where FULLFROM would return 'Bob Williams' <bob@somewhere.com> FROM would...
    3. split what?
      I don't know if this is an intelligent question or not, bear with me. I downloaded a script that makes operations on data posted with a HTML form...
    4. Split string like 'something.jpg,123' into $filename and $number
      I am trying to take a string and split it into a filename and a number where the number is what follows the *last* instance of a comma in that...
    5. Split a form
      I want a form to open another form in my DB. The thing is i want the new form and the old form to fill half the screen and look like one form. ...
  3. #2

    Default Re: split filename



    "\"36US\" webforumsuser"@macromedia.com wrote:
    >
    > who can split this file name then subtract "kenny.pdf"
    > file name--> C:\programfiles\funk\pdf\kenny.pdf

    function getFileName(fileUrl) {
    var fileName = fileUrl.substr(fileUrl.lastIndexOf("/")+1, fileUrl.length);
    return unescape(fileName);
    }
    trace(this.getFileName(this._url));



    Regards


    urami_*

    <xmas>
    [url]http://flashfugitive.com/[/url]
    </xmas>
    urami_ Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139