using handler of linked script after changing filename

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default using handler of linked script after changing filename

    After changing the filename of a castmember that uses a linked script and calling a handler within the script I get an errormessage saying "Script castmember not found". When assigning the new filename multiple times in a row there are no errors at all and I am able to call the handler within the linked script.

    This seems to be a timing problem but when I check the "scriptText" property of the castmember before calling the handler it already contains the new script. The fileName property has been changed correctly as well. It doesn't matter wether I use preloadNetThing/netDone, just a local file or different script types.

    The point is that eventually the script has to be generated/assembled on a server during runtime. If you have any idea how to solve this problem please let me know.

    Regards,
    Harry.



    dirtyh69 webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Changing Embedded to Linked - Reduce File size
      Have you compacted the db since changing it? That should reduce the size. changed both is
    2. Changing an embedded image to a linked file..
      Is there a way I can change an embedded file into a linked file (and vice versa)? Is there a way I can edit an embedded file? It seems like a one-way...
    3. filename when exporting from a script
      I'm writing a script that we will be using for sending jpeg proofs to customers, and have run into a slight problem with certain types of filenames....
    4. Changing the texture of a linked object
      Hello all, I'm finding trouble accesing the proporties of my 3d-model exported from 3dstudio. It is a very simple structure. It's foundation is...
    5. How do I call a class handler from a different script?
      Hello, I know that I can call a class handler like this: myBird = script("Bird").new() myBird.fly() but what if I want to call myBird.fly()...
  3. #2

    Default Re:using handler of linked script after changing filename

    Problem solved, only making use of scriptText now instead of fileName property.

    Harry.



    dirtyh69 webforumsuser@macromedia.com 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