Professional Web Applications Themes

Loadfile() can not load local file? - Macromedia Director 3D

My program runs OK in Director, also OK on web, but can not work in local. It is said after publish as Shockwave file and HTML, when Director run the HTML automatically, the DCR file in HTML works fail. I search for reason, find it is because a sentence in program: member("world").loadfile("myModel.W3D",true,true) In Director, it works. myModel.W3D is ?file:///D:/MyDirectoty/myModel.W3D?.On Web, it is OK too. At that time, myMode.W3D is in fact ?http://www.myWebSite.com/MyProgramDirectory/myModel.W3D?. But if I open the published HTML, the loadfile() can not work. Why? Is it because of safety reason, MacroMeadia let loadFile() can not load local file, or ...

Sponsored Links
  1. #1

    Default Loadfile() can not load local file?

    My program runs OK in Director, also OK on web, but can not work in local.
    It is said after publish as Shockwave file and HTML, when Director run the HTML
    automatically, the DCR file in HTML works fail. I search for reason, find it is
    because a sentence in program:
    member("world").loadfile("myModel.W3D",true,true)

    In Director, it works. myModel.W3D is
    ?file:///D:/MyDirectoty/myModel.W3D?.On Web, it is OK too. At that time,
    myMode.W3D is in fact
    ?http://www.myWebSite.com/MyProgramDirectory/myModel.W3D?. But if I open the
    published HTML, the loadfile() can not work. Why?

    Is it because of safety reason, MacroMeadia let loadFile() can not load
    local file, or there is some error in my program? How can I let my program work
    in local?


    Sponsored Links
    WrongAgain Guest

  2. #2

    Default Re: Loadfile() can not load local file?

    [q]Originally posted by: WrongAgain
    Is it because of safety reason, MacroMeadia let loadFile() can not load local
    file, or there is some error in my program? How can I let my program work in
    local?
    [/q]

    Bingo - It's a safety feature to prevent shockwave files accessing your file
    system.
    You can disable this safety feature by placing your published shockwave
    project within folder called "DSWMedia".

    - Ben



    duckets Guest

  3. #3

    Default Re: Loadfile() can not load local file?

    I got it.
    Thank you!
    WrongAgain Guest

Similar Threads

  1. Problem with local file and local link
    By leofire in forum Macromedia Flash Player
    Replies: 0
    Last Post: February 9th, 09:35 AM
  2. load local .flv file
    By ERNYNAP in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: August 28th, 05:02 PM
  3. Load Local Files
    By kellymi1 in forum Macromedia Flash Player
    Replies: 0
    Last Post: December 17th, 02:23 AM
  4. Loadfile() when file does not exist?
    By WrongAgain in forum Macromedia Director 3D
    Replies: 0
    Last Post: March 6th, 07:26 AM
  5. loadFile :: file not found
    By al_arm in forum Macromedia Director 3D
    Replies: 0
    Last Post: June 25th, 01:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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