Image change according to slider values?

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

  1. #1

    Default Image change according to slider values?

    I'm trying to create a simple interface where a tempersture is vaired, and a
    picture changes according to this. Ideally, what i'd like is to be able to
    point a pointer or slider up or down a thermometer (image), and the image of a
    character changes (shivering, comforatble, sweating) at different temperatures.
    Is there any simple way to achieve this? I think it would be best implemented
    using Lingo, but i have very little experience of using it, and was wondering
    if there was any easier way?

    Many Thanks,
    ~Clare

    cfinn Guest

  2. Similar Questions and Discussions

    1. Image Slider
      I was wondering if it was possible to create a slider for my image annotation...I found that movie annotations contain an entry for controlling the...
    2. Swatch values to slider menu?
      When I color an object with a swatch from Iibrary I created, the CMYK coordinates do not appear in the sliders of the Color menu. Is there an option...
    3. Video Slider Change Color
      I would like to have a video slider that changes color. What I mean, is that I want the slider to slide along for instance a white rectangle. Once...
    4. How do I make an image slider?
      Hi, I was wondering if anyone has come across a flash mx component (free), tutorial or source file for an "image slider" type tool. I stumbled on...
    5. Slider Nav and Image Gallery
      There must be a way to do this... I seem to be able to do one or the other, but not be able to combine both. The Goal: I want to have a slider at...
  3. #2

    Default Re: Image change according to slider values?

    The easiest way to do it is to spread the cooling image sequence over a
    range of frames as a simple animation sequence, even the thermometer
    change can be pre animated.

    Then have a score script spread over theses frames to hold the frame

    on exitFrame
    go to the frame
    end


    and a simple behavior script in a fixed slider rectangle, say ther are
    100 frames and the thermometer range is 200 pixels.



    on mouseDown me
    repeat while stillDown()
    mouseOffset = min(sprite(me.spriteNum).height, max(0, the mouseV -
    sprite(me.spriteNum).bottom)) -- this is the end of a wrapped line
    go to frame label("tempStart") + mouseOffset * 2
    updateStage
    end repeat
    end


    -- unwrap that one line the news program word wrapped.
    -- tempStart is a score marker at the start of the sequence


    Without a lingo intensive approach it's tough to have simultanious
    animations. This temperature thing could saved as a self contained
    movie that would then be imported into a bigger movie as a linked
    external movie, allowing it to play inside other score aniumation.
    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