Having instructions happen in on prepareMovie that are passed on from current movie

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

  1. #1

    Default Having instructions happen in on prepareMovie that are passed on from current movie

    If I had in "Movie1"

    on mouseUp
    go to movie "Movie2"
    do stuff
    end

    Then I would be taken to Movie2 and the 'do stuff' would happens when the
    move starts.

    What if I wanted the 'do stuff' to happen in 'on prepareMovie' instead?

    I hope that makes sense.

    Thank you

    Sid



    Sid Guest

  2. Similar Questions and Discussions

    1. Reverse button for current movie
      I have a reverse button that is working now, but when I hold it down too long it aborts the movie. I have this function in frame 1 of the movie: ...
    2. #25879 [Bgs]: SORT_ASC when passed into a function can NOT be passed as a string
      ID: 25879 Updated by: alan_k@php.net Reported By: it at oh-barcelona dot com Status: Bogus Bug Type: ...
    3. #25879 [Opn->Bgs]: SORT_ASC when passed into a function can NOT be passed as a string
      ID: 25879 Updated by: mgf@php.net Reported By: it at oh-barcelona dot com -Status: Open +Status: ...
    4. #25879 [Bgs->Opn]: SORT_ASC when passed into a function can NOT be passed as a string
      ID: 25879 User updated by: it at oh-barcelona dot com Reported By: it at oh-barcelona dot com -Status: Bogus...
    5. #25879 [NEW]: SORT_ASC when passed into a function can NOT be passed as a string
      From: it at oh-barcelona dot com Operating system: Windows PHP version: 4.3.2 PHP Bug Type: Variables related Bug...
  3. #2

    Default Re: Having instructions happen in on prepareMovie that are passed on from current movie

    On 02 Dec 2003, "Sid" <lent_epiphany@hotmailKILLCAPITALS.com> wrote:
    > What if I wanted the 'do stuff' to happen in 'on prepareMovie' instead?
    >
    > I hope that makes sense.
    It actually makes more sense to me. Just put that stuff in the prepareMovie
    event in a movie script in "Movie2"

    But judging by your subject line, it seems you may want to specify which
    stuff gets done, or do stuff only under certain conditions. In that case,
    you might want to set a global variable. The following example sets a
    global variable flag that Movie2 can act on if it is set to true:

    -- Movie1
    global gDoStuff
    on mouseUp me
    gDoStuff = 1
    go to movie "Movie2"
    end

    -- Movie2
    global gDoStuff
    on prepareMovie
    if gDoStuff then
    stuff()
    gDoStuff = 0
    end if
    end


    --
    Mark A. Boyd
    Keep-On-Learnin' :)
    Mark A. Boyd Guest

  4. #3

    Default Re: Having instructions happen in on prepareMovie that are passed on from current movie


    "Mark A. Boyd" <mblist@sanDotrr.com> wrote
    > -- Movie1
    > global gDoStuff
    > on mouseUp me
    > gDoStuff = 1
    > go to movie "Movie2"
    > end
    >
    > -- Movie2
    > global gDoStuff
    > on prepareMovie
    > if gDoStuff then
    > stuff()
    > gDoStuff = 0
    > end if
    > end
    Thank you Mark. I was hoping to avoid doing it with global variables, but
    that's only me being lazy. :)

    Thanks again!
    Sid


    Sid 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