Angled Slider - Is it possible?

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

  1. #1

    Default Angled Slider - Is it possible?

    I know making sliders on a curve is possible (with some work), but how about on an angle?

    Do you need to use the same method as the Doug's article or Peter's example from 3 post down or can it be done in a simpler fashion using constraints or something.

    Seems like angled should not be has hard since you are just dealing with a point A and a Point B (top and botton) not radius or curves.

    Any thoughts on this one? Has anybody made one?


    kyleg webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Slider
      Note: setThumbValue is no longer a method as of Flex version 1.5
    2. Angled header columnsin a table
      There has to be an easier way to angle the header text at 45 degrees. I know there is the 90º, 180º, and 270º in the cell/text options, why isn't...
    3. slider??
      Hey there. Looking for help creating a slider. I have the box (for sliding created), the line I wish it to move across and the invisible squares...
    4. slider bar for avi?
      Hello, I've just completed my first CD-ROm project in MX. Afterwards I've discovered that my .MPEG video file has been imported as QT not .avi...
    5. slider gallery help
      Hi :: maybe i cant help with your problem : but maybe you can help me with mine pretty please : How did you design your sliding bar? I'm designing...
  3. #2

    Default Re: Angled Slider - Is it possible?

    "kyleg" <webforumsuser@macromedia.com> wrote in message
    news:bgdvp9$lp$1@forums.macromedia.com...
    >
    > I know making sliders on a curve is possible (with some work), but how
    > about on an angle?
    >
    > Do you need to use the same method as the Doug's article or Peter's
    > example from 3 post down or can it be done in a simpler fashion using
    > constraints or something.
    Yes, it is much easier to do an angle, since all you need to do is say:

    - If the angle is less than or equal to 45 degrees from horizontal, then use
    the mouseH, otherwise use the mouseV.

    From that you can work out the other component by simply:

    - Subtract the starting loc of the line, so the origin is at zero.
    - Multiply the known position by the gradient of the line
    - Add the original loc back onto that position.

    You could do a slightly more advanced version of this that considers the
    mouseH and the mouseV, using whichever is closest to the line at the time,
    but I won't go into that.

    - Robert


    Robert Tweed Guest

  4. #3

    Default Re: Angled Slider - Is it possible?

    An idea for doing curved slider

    create a vector member that defines the path of the slider

    make the vector have a lot of points, so descrete point to steps creates
    acceptable resolution.

    the vsctorlist of the member - the sprite loc - the regpoint maps it's
    points to the stage

    use an loop routine that compares mouse distance to each point in the
    path, on each iteration, mouseh - pointh times mouev - pointv gives a
    distance factor, taking the squareroot of it gives actual distance, but
    adds delay.

    closer point spacing helps keep in requiring the mouse to be nearly on
    the line, and avoids multi point match ambiguity.
    JB Guest

  5. #4

    Default Re: Angled Slider - Is it possible?

    Robert,


    So it would look sort of like this? (as a rough start)

    property scrolltrack -- defined by Property Descr. List(added later)
    property mouseHorientation -- defined by boolean (checkbox) in Property Descr. List(added later)
    property straitReferenceline --invisible strait track graphic to be used as a reference when trying to figure out points for the angled slider
    property trackstartorigin--the start origin of the angled scrolltrack (range 0)
    property thedifference--represents the difference between the straitReferenceline and your angled slider/scroller

    on beginsprite
    If mouseHorientation=true than use the mouseH
    else use the mouseV


    trackstartorigin=sprite(straitReferenceline).min-sprite(scrolltrack)min

    ---really confused on this one----

    ??thedifferencesprite=(scrolltrack)min point *gradient of the line (is this the angle of the angled scroller?)??

    finally,

    trackstartorigin + thedifferencesprite -- Adds the original loc back onto that position?

    end beginsprite





    kyleg webforumsuser@macromedia.com Guest

  6. #5

    Default Re: Angled Slider - Is it possible?

    I got a reply to a similar query of mine. Though my requrement was actually
    for a curved slider, the resource mentioned in the answer can also be used
    for a slanted slider(in fact even for an irregular shaped slider).

    Check the link mentioned in it (and the links in the link!!!), its really
    good.

    "
    Take a look at this article from DOUG:

    [url]http://www.director-online.com/buildArticle.php?id=302[/url]
    > Any ideas to create a simple voulme slider that moves along a curved
    > path(instead of a horizontal/vertical straight line).
    >
    "


    "kyleg" <webforumsuser@macromedia.com> wrote in message
    news:bgeie0$60n$1@forums.macromedia.com...
    > Robert,
    >
    >
    > So it would look sort of like this? (as a rough start)
    >
    > property scrolltrack -- defined by Property Descr. List(added later)
    > property mouseHorientation -- defined by boolean (checkbox) in Property
    Descr. List(added later)
    > property straitReferenceline --invisible strait track graphic to be used
    as a reference when trying to figure out points for the angled slider
    > property trackstartorigin--the start origin of the angled scrolltrack
    (range 0)
    > property thedifference--represents the difference between the
    straitReferenceline and your angled slider/scroller
    >
    > on beginsprite
    > If mouseHorientation=true than use the mouseH
    > else use the mouseV
    >
    >
    > trackstartorigin=sprite(straitReferenceline).min-sprite(scrolltrack)min
    >
    > ---really confused on this one----
    >
    > ??thedifferencesprite=(scrolltrack)min point *gradient of the line (is
    this the angle of the angled scroller?)??
    >
    > finally,
    >
    > trackstartorigin + thedifferencesprite -- Adds the original loc back onto
    that position?
    >
    > end beginsprite
    >
    >
    >
    >

    w 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