Ask a Question related to Macromedia Director Lingo, Design and Development.
-
kyleg webforumsuser@macromedia.com #1
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
-
Slider
Note: setThumbValue is no longer a method as of Flex version 1.5 -
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... -
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... -
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... -
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... -
Robert Tweed #2
Re: Angled Slider - Is it possible?
"kyleg" <webforumsuser@macromedia.com> wrote in message
news:bgdvp9$lp$1@forums.macromedia.com...Yes, it is much easier to do an angle, since all you need to do is say:>
> 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.
- 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
-
JB #3
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
-
kyleg webforumsuser@macromedia.com #4
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
-
w #5
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...Descr. List(added later)> 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 Propertyas a reference when trying to figure out points for the angled slider> property straitReferenceline --invisible strait track graphic to be used(range 0)> property trackstartorigin--the start origin of the angled scrolltrackstraitReferenceline and your angled slider/scroller> property thedifference--represents the difference between thethis the angle of the angled 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 (isthat position?>
> finally,
>
> trackstartorigin + thedifferencesprite -- Adds the original loc back onto>
> end beginsprite
>
>
>
>
w Guest



Reply With Quote

