Where can I find the InteractionInputType class? I have a slider and buttons...

I have a HSlider with some buttons on it, and what I'm trying to do is to move the HSlider regardless of the button is clicked.

I have this job, but the problem is that it looks just so stiff, because it automatically jumps right to the value. What I decided to do was, instead, dispatch a Slider track click event, so that I could have a transition smoothly as when someone clicks on the slider track:

According to e-http://livedocs.adobe.com/flex/3/langref/mx/controls/sliderClasses/Slider.html#event:chang that I spend an InteractionInputType for the event dispatcher, and wherever I meet trouble, because I don't know where to find this class. I simply get throw errors if I try to type it in.

Can you help me, or possibly offer a smooth alternative?

slide.dispatchEvent(new SliderEvent(SliderEvent.CHANGE,false,false,0,value,InteractionInputType.MOUSE,SliderEventClickTarget.TRACK,-1));

Mysef Hmmm not sure and the shorter the time now heres an alernative.  You can use the AnimatePropery class on most of the objects when you want to change their values.  See the example.


http://www.Adobe.com/2006/mxml"layout ="absolute">
   
        Import mx.effects.AnimateProperty;
           
private function doAnim (): void {}
var anim:AnimateProperty = new AnimateProperty();
Anim.Target = hs;
Anim.Property = 'value '.
anim.fromValue = hs.value;
anim.toValue = 10;
Anim.Duration = 500;
Anim.Play ();
}
           
           
]]>
   

   
   
   

As you say there is probably a better way to do it.

Andrew

Tags: Flex

Similar Questions

Maybe you are looking for

  • OfficeJet 5740: WPS PIN for Officejet 5740

    I use 10 Windows on a custom 64-bit computer. I just bought a HP Officejet 5740 e-all-in-one printer, and I'm stuck trying to find the WPS PIN code. I know that my router has a WPS PIN, but your configuration says that the printer has this number. Wh

  • Pro-100 manual feed tray Canon does not load paper 13 x 19?

    When I go to print on paper 13 x 19 through the manual feed tray of orange light always lit flashes twice. I have to press the orange flashing light so that the paper through and start printing.

  • BlackBerry World on 10.3.1 device Simulator

    Hi all I searched here and found no answer on how to test the invocation of the BlackBerry world in the last 10.3.1.xxx Device Simulator! can someone help me please? I can not even find the World of BlackBerry app in the Simulator...

  • Personalized 9800 slider TextBoxfield problem

    Hello The custom cursor in textboxfield is not properly get updated. When you enter any text instead of display the cursor at the end of a character, it appears after one or two space character to the last character and when you tap on the evolution

  • Bulk insert in an external table

    Hi, I get the error ora-29913, ora-01410 trying to do a bulk insert of external tableINSERTIN CORE_TB_LOG(SELECT 'MODEL', 'ARCH_BH_MODEL', ROWID, "MODEL-D-000000001', - 45, 'A', SYSDATE, 'R'")OF ARCH_BH_MODEL1WHERE length (MOD_XCODIGO) > 10)INSERT*ER