Slider Widget - How can I tell the event phase?

I have a slider widget on my game page, so I have a game loop listener that I add like this:

Runtime:addEventListener( “enterFrame”, gameLoop )

And then the slider has its own listener.

When I move the slider it changes parameters which dynamically show in the game loop. But I need to know when I’m in the slider, when I’m moving it, and when I’ve stopped moving it, so I can prevent certain things from changing dynamically while sliding, but then have them change when I’ve stopped sliding.

This seems like a pretty obvious concept, it’s implemented in buttons. Am I missing something? Or is there another way to test for these events? [import]uid: 22423 topic_id: 33100 reply_id: 333100[/import]

I believe the event parameter of the slider widget’s listener function should return more than just ‘sliderMoved’ for the ‘type’ property. I think it should be returning ‘sliderBegan’ and ‘sliderEnded’ or something to that effect.

You should log a bug for this. [import]uid: 8271 topic_id: 33100 reply_id: 131463[/import]

I believe the event parameter of the slider widget’s listener function should return more than just ‘sliderMoved’ for the ‘type’ property. I think it should be returning ‘sliderBegan’ and ‘sliderEnded’ or something to that effect.

You should log a bug for this. [import]uid: 8271 topic_id: 33100 reply_id: 131463[/import]

That sounds reasonable, I will log a bug on that. [import]uid: 22423 topic_id: 33100 reply_id: 131525[/import]

you can check event.target.isFocus for true or false and you can check the event.value for changes to determine if its being moved or not [import]uid: 7911 topic_id: 33100 reply_id: 131534[/import]

That sounds reasonable, I will log a bug on that. [import]uid: 22423 topic_id: 33100 reply_id: 131525[/import]

you can check event.target.isFocus for true or false and you can check the event.value for changes to determine if its being moved or not [import]uid: 7911 topic_id: 33100 reply_id: 131534[/import]

Event.target.isFocus is always true as long as you’re in the slider listener. Shouldn’t be hard to add event phases like buttons do. All I need is to know the beginning, middle, and end of the event just like with a button. I submitted it as a bug, if that doesn’t work I’ll just roll my own. [import]uid: 22423 topic_id: 33100 reply_id: 131682[/import]

Event.target.isFocus is always true as long as you’re in the slider listener. Shouldn’t be hard to add event phases like buttons do. All I need is to know the beginning, middle, and end of the event just like with a button. I submitted it as a bug, if that doesn’t work I’ll just roll my own. [import]uid: 22423 topic_id: 33100 reply_id: 131682[/import]