Slide to Unlock

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Slide to Unlock

Jairo
I need a "Slide to Unlock" control for my App. Does someone have something like this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Slide to Unlock

clintm
You could probably skin the HSlider control to do what you want.

On Tue, Mar 28, 2017 at 10:22 AM, Jairo <[hidden email]> wrote:

> I need a "Slide to Unlock" control for my App. Does someone have something
> like this?
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/Slide-to-Unlock-tp14936.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Slide to Unlock

Jairo

Tanks Clint.

I wil wait to see if someone has an example. If not, I will start from your suggestion.


Em 28/03/2017 15:12, Clint M escreveu:
You could probably skin the HSlider control to do what you want.

On Tue, Mar 28, 2017 at 10:22 AM, Jairo [hidden email] wrote:

I need a "Slide to Unlock" control for my App. Does someone have something
like this?



--
View this message in context: http://apache-flex-users.
2333346.n4.nabble.com/Slide-to-Unlock-tp14936.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.


    

--
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Slide to Unlock

Jairo
In reply to this post by Jairo
I found a simpler solution. I put a ToggleSwitch with a custom skin. The skin looks like:

package
{
        import spark.skins.mobile.ToggleSwitchSkin;
       
        public class tsUnlockSkinextends ToggleSwitchSkin
        {
                public function tsUnlockSkin()
                {
                        super();
                        // Set properties to define the labels
                        // for the selected and unselected positions.
                        selectedLabel="Ok";
                        unselectedLabel="Unlock";
                }
        }
}
Loading...