erase created members

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

  1. #1

    Default erase created members

    ok let me try this one more time.

    the projector i am using is simply creating text fields named newPage1,
    newPage2,
    etc... i need the projector to check at the on prepareMovie handler if these
    fields have been created and if so erase them. thanks.

    Davis


    davis Guest

  2. Similar Questions and Discussions

    1. HOW TO ERASE \r or \015 in win32??
      i want to erase ^M in then end of lines. but i can do this in win32. $_=~s/\r//g; #but \r still exist $e=\x0D; $_=~s/$e//g; #have the...
    2. Erase Tool
      Hi I'm new to Macromedia Fireworks MX and I just cannot seem to get the erase tool to work properly. If I draw a line using either a line tool or a...
    3. erase cursor
      All of a sudden, when I select the erase tool, the cursor is just a pinpoint no matter how large of an erase area I select. I used to view the...
    4. How to destroy (remove from memory) created with new command members
      I create (for example) 50 bitmap members with new command are they removed from memory or do i need do do it myself ??? if YES then - how to...
    5. Can I erase the border?
      hello! am having to resize an image as well as the canvas, and now the border doesn't "fit" with the resize. Can I simply erase the border and...
  3. #2

    Default Re: erase created members

    Not sure why you're starting so many new threads in here for apparently
    identical questions. Have you noticed the "Reply Group" button at the top
    of Outlook Express?

    On 07 Dec 2003, "davis" <smithl@jbu.edu> wrote:
    > the projector i am using is simply creating text fields named
    > newPage1, newPage2,
    > etc... i need the projector to check at the on prepareMovie handler if
    > these fields have been created and if so erase them. thanks.
    I still think you should do your clean up before quitting Director and
    creating a projector, but here ya go:

    on prepareMovie
    libs = the number of castLibs
    repeat with lib = 1 to libs
    mems = the number of members of castLib lib
    repeat with mem = 1 to mems
    if member(mem,lib).name starts "newPage" then
    erase member(mem,lib)
    end if
    end repeat
    end repeat
    end

    Note that this will also erase a member named "newPageWithOutANumber" or
    whatever. If you're creating those new members in a castLib that is used
    exclusively for those members, you can limit the above script to checking
    just that castLib.


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd 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