Professional Web Applications Themes

Change cast members at runtime - Macromedia Director Lingo

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?...

  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. #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" <nospamnojunk.com> a écrit dans le message de
    news:bmh46s$88s$1forums.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

  3. #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

Similar Threads

  1. Vanishing cast members
    By cae2 in forum Macromedia Director Basics
    Replies: 2
    Last Post: February 18th, 03:49 AM
  2. cast members moved in cast - neet to get htem back!!!
    By spdorsey webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 2
    Last Post: November 24th, 08:48 PM
  3. lost cast members
    By Lee Murray in forum Macromedia Director Basics
    Replies: 1
    Last Post: September 11th, 03:33 PM
  4. run one of cast members ?!!
    By farshix webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 1
    Last Post: August 29th, 04:10 PM
  5. Too many cast members
    By ESGE grafik in forum Macromedia Director Basics
    Replies: 4
    Last Post: August 7th, 03:07 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