rollover on hslider tick

hI experts, how can i get a custom tooltip when i roll over on the ticks of slider

thanks in advance
rakesh16dAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rascalpantsCommented:

this is for AS 3... and i straight up copied and pasted (except the trace) from LiveDoc...


http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/Slider.html


rp / ZA



// from Adobe LiveDocs
 
import fl.controls.Label;
import fl.controls.Slider;
import fl.events.SliderEvent;
 
var myLabel:Label = new Label();
myLabel.autoSize = TextFieldAutoSize.LEFT;
myLabel.text = "";
myLabel.move(10, 10);
addChild(myLabel);
 
var mySlider:Slider = new Slider();
mySlider.addEventListener(SliderEvent.CHANGE, thumbDragHandler);
mySlider.move(myLabel.x, myLabel.y + myLabel.height);
addChild(mySlider);
 
function thumbDragHandler(event:SliderEvent):void {
    myLabel.text = event.type + ": " + event.value;
    // rp added //
    if( event.value == 3 ) trace("show tool tip 3");
}

Open in new window

0
rakesh16dAuthor Commented:
thanks for reply,  but i only want the tooltip when i mouse over the tick, the values of which are stored in a array of unknown size.  from that array i am grabbing the values and showing the ticks on the slider.
0
rascalpantsCommented:

yes, and the if conditional checks for the value of the tick...  and when they match a number that you want...  do something with it...


rp / ZA
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

rakesh16dAuthor Commented:
it works fine when i drag the slider, but when i simply takes my mouse over the tick i am not getting the tick value. I tried to capture the value from mouse rollover but that is giving me the current value of the slider, not the value where the tick is.
thanks again
0
rascalpantsCommented:
you need to associate your tick value with the slider value...  or else how are you supposed to tap into the component to get any data?  It has to match up with something right?


if you open up the parameters of the component, you should be able to adjust the settings to what you want...

also, take a screen shot of your application and post it, so I understand what you are looking at...


rp / ZA
0
rakesh16dAuthor Commented:
here is the demo of the application

www.origindigital.com
- business TV
0
rascalpantsCommented:
I don't see a slider component anywhere


rp / ZA
0
rakesh16dAuthor Commented:
video seek bar is the slider. i have skinned and redrawn that.  when you take mouse over that you will see associated tag at that point on time line.
my question is very similar to the player on youtube. the way ther are picking the time and showing it on tooltip when you rollover the video seek bar.

thanks
0
rascalpantsCommented:
wait... so you are using the Flash Slider component as a scrub bar?  Why?

that doens't seem like a proper use of the component.

or...  have you just created a custom scrubber that looks like the slider component?


rp / ZA
0
rakesh16dAuthor Commented:
basically thats a flex 3 hslider component. i have redrawn that.

thanks
0
rascalpantsCommented:

a slider component has nothing to do with video...  it would be much easier to just create your own scrub bar and scrubber, and then just use AS with event listeners for the Roll_over states...

rp / ZA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.