dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: SwiffCANVAS and a CD-ROM

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    3
    I have spent the last day trying to get a CD-ROM .exe file to work properly, but it hasn't. The Menu created is supposed to open an .html file. Even based on the directions in the help section it doesn't work. It does work before using SwiffCANVAS, but afterwards it doesn't.

    What is going wrong - anyone have any help??

    -MatthewOrion

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    3

    Lightbulb small solution

    well, after much work and digging...

    once you prepare a file for use on a CD-ROM, SwiffCANVAS is run to create the "cool" effects. By doing this you lose your standard ability to access other files on the CD.

    when you run the file, it extracts to your TEMP directory and creates a file with the path of the program in it. It has a flaw. The path is in quotes and if you want to use it, the quotes screw it up for you.

    a quick fix involves removing the quotes - however if you want it to work on a CD, the it is best to crop the string down to only the drive letter. so you have to be sure to re-include any directories on your button.

    So you would: LoadVariables("SwiffCANVAS","")
    Then on your button: Get URL (Substring ( LaunchFolder, 2, 3 )&"yourfile.html")

    Surprisingly enough, this works. Email me if you have any questions about what I did - or suggestions, if there is a shorter way to improve what I did.

    -MatthewOrion

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    103
    Great workaround. Thanks for the tip.

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