Change cast members at runtime

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

  1. #1

    Default Change cast members at runtime

    Is it possible to permanently change the contents of castlibs or
    castmembers at runtime? Or are all changes only in memory?

    For example, what if I want to import new bitmaps into the cast?

    Gary Guest

  2. Similar Questions and Discussions

    1. cast members moved in cast - neet to get htem back!!!
      Hello I inadvertedly pasted a cast member into my cast and it bumped the rest of the members one number forward, screwing up my lingo all over the...
    2. missing cast members
      For some reason i am intermittantly losing all my cast members. When i open a .dir all the cast members are there, but they have somehow lost...
    3. lost cast members
      A whole set of internal cast members created in the paint window have disappeared. The names are still in the cast locations and the property...
    4. run one of cast members ?!!
      hi all, I want to run an *.exe file that has been placed in my cast member. for example I added "mario.exe" in my cast member, now I want to...
    5. Too many cast members
      what exactly is "too many"? as far as I know cast-size is unlimited and only constraint to memory and/or disk size. I remember having used...
  3. #2

    Default Re: Change cast members at runtime

    dont protect the cast, and use lingo "saveCastLib" keyword (never tried with
    bitmaps, thought, only to keep user-typed texts and it worked good)

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------
    "Gary" <nospam@nojunk.com> a écrit dans le message de
    news:bmh46s$88s$1@forums.macromedia.com...
    | Is it possible to permanently change the contents of castlibs or
    | castmembers at runtime? Or are all changes only in memory?
    |
    | For example, what if I want to import new bitmaps into the cast?
    |


    Ned Guest

  4. #3

    Default Re: Change cast members at runtime

    If this is a projector and not SW then yes, you can change members in a
    cast. To do this the cast must be external and exist on some writable
    media. In other words, you can't make changes to a cast on a CD because
    you can't write to the CD.

    One common method of doing this is to write the external cast to the
    user's hard drive. On every play of the projector, test to see if this
    new external cast exists on the user's drive, if it does then use it's
    members instead of the original on the CD.

    Use the save castLib() function to accomplish this.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon 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