A Flash Developer Resource Site

Page 4 of 4 FirstFirst 1234
Results 61 to 65 of 65

Thread: Need Help, Will Pay... CD Presentation using PDFs

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Location
    Detroit, MI
    Posts
    4
    Northcode,
    I had everything working fine when I had the pdf file in the same directory as the .exe file. I went one step further and add the "DOSTART" and everything worked great, even on a Win 7 machine. Now the trouble starts, I want to put the pdf files in a folder in the director, but when I add "files\charts.pdf" to the action script it changes it to "files\\harts.pdf". And then I get an error. I tried several different charactors in the script and it won't change them. just when I use the "\". Is this a bug or is there another charactor used ?

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,764
    You need to use "files\\charts.pdf" because the \ in quotes is treated as a special character. It marks the start of an escape sequence. You can read all the dirty details in String Literals vs. String Values on my blog.

  3. #3
    Junior Member
    Join Date
    Feb 2010
    Location
    Detroit, MI
    Posts
    4
    WOW, it works now. It is amazing how something so little can cause such a road block.

    Thanks

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