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

  1. #1

    Default Help with Director

    Hi,

    I was wondering if I can get some help with this.

    I have an mp3 file playing during the director movie.
    There are 3 buttons which are used to pan the song left, center, and right respetively.

    ex code: (for right pan button)

    on mouseup me
    sound(1).pan = 100
    end


    From here, I created three sprites via the filled rectangle option in the toolbox, filled with a green color

    The stage would look something like this:

    Centerchannel button
    LCh sprite1 spr2 spr3 RCh

    The sprites are to represent which channel is on. For ex: when only the right channel is playing, the 3rd sprite will remain green while the others turn to red.

    I tried accomplishing this by adding a bit more code to each of the buttons so it looked something like this:

    (for right pan button)

    on mouseup me
    sound(1).pan = 100
    sprite(spr3).color = rgb(0, 255, 0)
    sprite(spr2).color = rgb(255, 0, 0)
    sprite(spr1).color=rgb(255, 0, 0)
    end

    The code compiles fine, however, when I run this, the three sprites start to flash and none of the code for the color changes seem to work at all.

    Thus, my questions are: why? and how do I fix this?

    Thank you all for you time!
    JFresh =)



    JFresh webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Director MX to Director MX 2004 FREE Upgrade now available
      Director MX to Director MX 2004 - English Macromedia Customers who purchased Director MX between December 6, 2003 and April 9, 2004 (dates subject...
    2. How to import a director file into director? URGENT
      Hi, I've kinda finished what i want to do and i've just realised i kinda stuffed up. i need to "combine" several director files into one. how do i...
    3. Director MX [for OS X] Get Info says its a Director 8.5 file!?!?!
      I am working on a kiosk for the http://www.arsc.edu and when I create files in Director MX and go to the finder to Get Info, it says that its a...
    4. loading director files into a director file?
      Hi I made 2 games in director and I'd like to have something like a menu to choose betweeen the 2 games so i was wondering if there was a way of...
    5. Can Director MX save a movie as a Director 8.5 file?
      Can Director MX save a movie as a Director 8.5 file? I can't find this option in "save as" or "export." HELP!
  3. #2

    Default Re: Help with Director

    your malfunctioning buttons are not 'flashing' the color change?

    the code looks OK, I can only think that perhaps the score playback head
    is moving beyond the sprite scan ( for example if your sprites end at
    frame 10 and the playback head gets to frame 11 the buttons would blink
    off and when the playback head came back to the buttons the lingk color
    changes would be forgotton)
    JB 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