Professional Web Applications Themes

Image change according to slider values? - Macromedia Director Basics

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

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

Similar Threads

  1. Image Slider
    By miniCooper@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 2
    Last Post: October 2nd, 10:49 AM
  2. Swatch values to slider menu?
    By gregoryw@comcast.net@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 0
    Last Post: May 14th, 05:06 PM
  3. Video Slider Change Color
    By Five in forum Macromedia Director Basics
    Replies: 3
    Last Post: April 28th, 09:37 AM
  4. How do I make an image slider?
    By omermx04 webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: December 7th, 06:50 AM
  5. Slider Nav and Image Gallery
    By Beatbag webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: September 11th, 06:50 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