Use of a ToggleSwitch inside a Scroller

In 4.6, ToggleSwitch introduced resembles a large component that really gives a mobile feel to what would otherwise be a simple checkbox.  While I'm a little disappointed that it takes a new skin to set the labels selected and unselected, I can get there.

The issue I'm having is with the help of a ToggleSwitch inside a Scroller.  If you place a ToggleSwitch inside a Scroller and fill the rest of the wheel with enough content, then the vertical scrolling the wheel action will interfere with ToggleSwitch horizontal scrolling.  While using the ToggleSwitch to move from left to right, if the user moves only upwards or downwards, then the Scroller scrolls.  This will break the ToggleSwitch interaction.  Usually, this will pop ToggleSwitch to close, left or right position.  However, the thumb of the ToggleSwitch several times is in the 2/3 of the ToggleSwitch middle.  In this case, the thumb crashes in the middle of the switch!

This can be very confusing for a user, because their selection will not be completed.  Although it may seem that the ToggleSwitch has no selection, or is even (just or almost) in the enabled/disabled state... it could very well be in the opposite State.

Has anyone found any workaround for this problem?

Thanks for the reply.  I think my explanation could be a bit off.  Looks like your solution for scrolling in a ToggleSwitch, not by the ToggleSwitch.  Yet, it made me think of another method that resembles the work.

I turn off the vertical scroll wheel when the switch is in use, and then turn it back on when the switch is completed.  I also force a reset of the selection of the switch if the mouse switch user.  This prevents do visually hung between on/off.

protected function toggleSwitch_MouseDown(event:MouseEvent):void

{

scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.OFF);

}

protected function toggleSwitch_MouseOut(event:MouseEvent):void

{

scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.ON);

toggleSwitch.selected = toggleSwitch.selected;

}

protected function scrollerContent_MouseUp(event:MouseEvent):void

{

scrollerContent.setStyle ('verticalScrollPolicy', ScrollPolicy.ON);

}

Tags: Adobe AIR

Similar Questions

  • When I use the arrows or the right scroll bar up and down, it is very slow. What can I do to fix this?

    When I have one on the internet and you want to scroll up and down, I use the arrow keys or the scroll bar, but the screen is moving slowly in the kind of a stall model.

    Any suggestions?

    Hello

    • This happens only on Internet Explorer?

    You can refer to the following steps:

    Step 1:

    Verify that if the problem exists in Mode safe mode with networking, if the computer works as expected in mode safe, then we can solve the problem in the clean boot state.
    a. refer to the article below for the procedure safe mode in Windows XP
    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222

    Step 2:
    b. you need to perform a clean boot to find the program that is causing and then disable or remove.
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us
    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

  • Lately when I use the mouse the words text scrolling and copy on top of itself a million times. This happens when I am on line reading something to say on the MSN homepage.

    Lately when I use the mouse the words text scrolling and copy on top of itself a million times. This happens when I am on line reading something to say on the MSN homepage. Sometimes I can click off on the side and separates the text and I can read it but when I use the scroll of the mouse or even the scroll bar on the sideit happens again and again.

    Hi Jaynebasye,

    1. This only happens when you are on the MSN Web site?

    2. did you of recent changes on the system?

    Method 1:

    You can try to change the scroll settings and check.

    For more information, see the following article

    Change the settings of the mouse

    Method 2:

    Step 1:

    You can also check if the problem occurs in safe mode with network.

    Startup options (including safe mode)

    Start your computer in safe mode

    Step 2:

    If you do not experience the problem in safe mode with network, then perform a clean boot.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: Make sure that you put the computer to a Normal startup once you are finished.

    Hope this information is useful.

  • I bought Lightroom 4 CD, but lack a CD-ROM in my ultrabook. Is there a download for Lightroom 4? Can I use the serial number inside the box to Lightroom 4.1?

    I bought Lightroom 4 as a CD, but lack a CD-ROM in my ultrabook. Is the download for Lightroom 4 still available? Can I use the serial number inside the box to Lightroom 4.1?

    Hello

    You can access the following link to download the Setup program for Lightroom 4.

    Adobe - Lightroom: For Windows: Adobe Photoshop Lightroom 4.4

    Thank you.

  • Why can't I click on some parts of my screen only if you are using firefox. I can not use the upper part of my scroll bar, but can use the background. I cannot click on the top of all sites, but he can click on any part of the site.

    If you use firefox, I can't use my up arrow of the page or click on the upper part of the scroll bar to make it move. Can I use the middle and the bottom of the bar. Also, I can't click on some items that are on a certain part of a web page (upper part). When I use firefox to open my email the same thing. I can't click on the upper part of the page e-mail delete tab, check e-mail tab, etc. However, I can click on it when I use internet explore so I don't know if it of a firefox issue or not. Thank you

    Recently, the extension of the Yahoo! toolbar and the extension of Babylon have been reported to cause a problem like that. Disable or uninstall the modules.

       * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    
  • Sub - VI with nodes of feedback used more than once inside a While loop

    All,

    I have a Subvi is a set of operations and using 3 feedback nodes. I use this Subvi inside a loop While 4 times in total. I noticed all instances used to share the same result in each node for your comments, but I would like to have an individual result of each of them. Is there an easy way to work around this problem? I find ways to avoid this: a) create a different vi for each time the Subvi has been used. (b) use global variables instead of feedback nodes. Is there an easier way to get around this problem?

    ExamplePlease note that the two sub - VI are the same) If on my first Subvi I calculate a maximum value and get 1.29 (then goes to the crux of feedback) on my second slot - VI 1.01 my feedback to the Subvi second node records still get the maximum value or 1.29. (and I want it to be 1.01!)

    Hope, that it is not too complicated, I was scratching my head with that for a while, can't find the "easy" button Thanks in advance.

    -Pop

    IM using 9.0.

    It would be useful to join the code. Anyway, I'm not sure how several knots of comments are supposed to work so I will defer to others to answer that. As far as being able to use separate or instances values if you are using a Subvi, you could mark it as reentrant. In this way, each call to it will behave as it were a copy of the VI and it will have its own memory space. This should include the feedback node. You end up with a single slot - VI and in reality a single node of feedback. If you need pass data between calls that simply data through wire. You can also use a motor of Action to store and retrieve values. An EA is MUCH better than a global variable.

  • Adobe Stock can be used as an image inside a book?

    My boss is another, and we create a picture inside his book which contains 5 images gathered in a compliation of mandala-like. I am in charge of making the permissions for images. Can I use the images from Adobe for this? Or do I need to get a special permission for the publication of book? I don't think that the book would exceed the 500 000 draw. My guess is it will sell 20 000 ups (spiritual academic niche market).

    Hi danis,

    You can use the Adobe Stock images inside the book as a reference or illustration.

    For contracts of license of Adobe Stock, see: http://wwwimages.adobe.com/content/dam/Adobe/en/legal/servicetou/Adobe_Stock_Terms_en_US-2 0150313_hpc.pdf

    I hope this helps.

    ~ UL

  • Muse: using anchors to create pages of scrolling effect on the child

    Is this possible?

    I have a menu with several pages of brother bar, and some of these brothers and sisters have child pages. For example, I have a brother page called "Menu". Menu has a few children: lunch, dinner, dessert, drinks. I would like that the Menu page to have a scroll effect, so that if I click on 'Drinks' in my menu bar, it scrolls to the bottom of my "Menu" page where "Drinks" are anchored.

    My menu bar has been created on a single master page. But I don't know how to link on the menu bar to the page of the child through anchorage. Is it still possible?

    In the Panel of the Menu Widget customization try manual selection for your menu options.

    (Note: you must use the most recent version of Adobe Muse)

    If this does not work, you will need to build custom menus, starting by a Widget like the accordion or Composition.

    Add the contents of the custom menu in the content areas of the Widgets. For example, you could add state buttons one by one to create the submenu.

    If you want to control the speed and feel of parchment, you could you a 3rd party muse widget like Snap Scroll or similar.

    Seems intimidating at first to go down this road, but once you've used for Widgets, you will realize the endless possibilities.

    Good luck

    CY

  • VBox inside ModuleLoader scrolling problem (w / screenshot of show)

    I have a VBox that scroll when even if the project runs as an Application, it works perfectly. I have then to modify the Application of a Module and load it into a parent using ModuleLoader app. As soon as I did that, the scrolling no longer works correctly. See screenshot

    http://www.jetScreenshot.com/demo/20090428-375-225kb.jpg

    I've also included this issue a bug introduced here:

    http://bugs.Adobe.com/jira/browse/SDK-16394

    Anyone ran into something like that with ModuleLoader? The controls are nested like this (if it is of any help):

    Main application

    ViewStack

    Box of

    Group of experts

    ModuleLoader

    Module

    VBox

    ViewStack

    VBox <-it's the Vbox with scrolling problems

    HBoxes children

    It almost seems that these events in the loaded Module are blend with the rest of the application. I have tried several things to rememdy this.

    Any ideas or suggestions would be very appreciated.

    No idea why full screen would help me.  You say that the module is loaded after you go fullscreen?  Otherwise, go to full screen can cause an update which is not the case in normal mode.  Or maybe something about the arrangement grows on a minimum size when you are not in full screen.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • Firefox 3 crashing - have to use FF3 because of the ALPS scroll does not work in anything else

    Had to stay with FF3, as everytime I try again updated the version of the ALPS scrolling touchpad does not work on my Acer 5738Z. I've made sure the drivers are all to date and everything else is in order but no luck. Have tried different methods posted on the forums, but still no luck.

    Now, all of a sudden, FF3 now crashes every 10 minutes or more.

    I prefer FF, but this disadvantage is too and I'm going to need IE for now, until someone can tell me a solution. Here are a few crash IDs Ive seen lately.

    Finally!

    This fixes the problem for anyone else run into this problem:

    For those who have problems with the standard driver for the ALPS touchpad in firefox 4. Here's a quick check difficulty: 1) open registry with regedit 2) search for the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Alps\Apoint) 3 ScrMethod 1 game 4) Reboot

    The ALPS/FIREFOX tri!

  • How can I call or even use a class library inside the application that has been downloaded along with the app?

    Hi all. I have a question?

    I have an application and a library.  Inside of the app have a lot of calls of this library (easy to say my app that is dependent on the library).

    I tried the following scenario: in the main application I added logic to download the library programmatically. But something I missunderstood around that. So, I'm first to download my application that depends on the library then I thought to check in the constructor, if the library exists then activate the app if not then download the lib and restarts the device.

    My problem now is if I call a list of class of the library, then the app not working and would be lifted except that «the application contains errors of audit»

    So, how can I avoid this? or even

    How download this lib from the app and have other methods inside this app called library which is not yet downloaded?

    Thank you in advance. A sample will be apreciated.

    No, which would require a second application, such as an installer

  • Using Acrobat Reader XI: when you scroll the document .pdf, always a jump irrating on a restricted page.  Any way to smooth scrolling across borders?

    Any way to smooth scrolling beyond the limits of the page in Acrobat Reader?

    Hi mikeg57377139,

    Open Acrobat, go to the menu view-> Page display & activate scrolling.

    Let me know if t help.

    Kind regards

    Nicos

  • Using jstl if tag inside the tag column ADF?

    Hi all

    I was wondering if its possible to use jstl if tag within a column of table ADF to determine what values to display? Basically, I want to display different output depending on whether there is a value of row.binding.
     <af:column headerText="Some Command" id="c14">
                  <c:if test="${row.bindings.settingValue.inputValue}">
                        <af:outputText value="#{row.bindings.settingValue.inputValue}"id="ot7"/>
                  </c:if>
                  <c:if test="${row.bindings.pbSettingValue.inputValue}">
                         <af:outputText value="#{row.bindings.pbSettingValue.inputValue}" id="ot8"/>
                  </c:if>
    </af:column>
    JDev: 11.1.1.62

    Thank you
    -Wraith

    Published by: wraith101 on November 13, 2012 10:36

    You can use an af:switcher for this. Check out http://m.youtube.com/#/watch?v=tMuZJvU5eTk&desktop_uri=%2Fwatch%3Fv%3DtMuZJvU5eTk&gl=DE

    Timo

  • using the function min() inside the instruction box

    I have a problem with the following select statement

    Select
    patient_id
    , sum (case when ch.cancer_site_id in ('3', ' 39 ', ' 12') and min (ch.diagnosis_age) < 40 0' then '1' other ' end) in breast cancer
    Of...
    Patient_id group

    I get an error "not a single group group function.


    The main table, that I work with is so implemented.

    PatientID | diagnosis_age | cancer_site_id

    12345678 | 35. 4
    12345678 | 40. 4
    12345678 | 42. 12
    12345678 | 34. 31
    87654321 | 50. 12

    cancer_site_ids 4 and 31 must get grouped together and called breast cancer. cancer_site_id 12 (and others) is cancer of the colon.

    Finally I need the output to look like this

    PatientID | min (breast_diagnosis_age) < 40 | min (breast_diagnosis_age) > 40 | min (colon_diagnosis_age) > 40
    -------------------------------------------------------------------------------
    12345678 | 1. 0 | 1
    87654321 | 0 | 0 | 1

    My final request is much more complicated than that, but it's the last part that I can't understand.

    Hello

    Welcome to the forum!

    You can use the analytic MIN function to get the earlier diagnosis_age.
    Analytical functions are calculated after aggregation functions. If you use the aggregate functions to rotate the data, this means that you need to calculate the minimum age in a subquery and do all aggregates in the main query.
    I mean, it is something like this:

    WITH     got_min_diagnosis_age     AS
    (
         SELECT     patiendid
         ,     MIN (diagnosis_age) OVER ( PARTITION BY CASE
                                            WHEN  cancer_site  IN (4, 31)
                                            THEN  'breast'
                                                WHEN  cancer_site  IN (3, 12, 39)
                                            THEN  'colon'
                                                       END
                              )     AS diagnosis_age
         ,     CASE
                  WHEN  cancer_site  IN (4, 31)     THEN  'breast'
                  WHEN  cancer_site  IN (3, 12, 39)     THEN  'colon'
              END     AS type
         FROM    table_x
    )
    SELECT       patientid
    ,       COUNT ( CASE
                   WHEN  type = 'breast'
                   AND   min_diagnosis_age <= 40
                   THEN  1
                  END
                )     AS breast_up_to_40_cnt
    ,       COUNT ( CASE
                   WHEN  type = 'breast'
                   AND   min_diagnosis_age >  40
                   THEN  1
                  END
                )     AS breast_over_40_cnt
    ,       COUNT ( CASE
                   WHEN  type = 'colon'
                   AND   min_diagnosis_age >  40
                   THEN  1
                  END
                )     AS colon_over_40_cnt
    FROM      got_min_diagnosis_age
    GROUP BY  patientid
    ORDER BY  patientid
    ;
    

    You can also calculate type in a subquery, then use it to calculate the min_diagnosis_age for the type in a second subquery. If the expression to get type is much more complicated in reality that it is in this small sample, which can be better.

    Published by: Frank Kulash, November 3, 2010 15:00

    You have a cancer_site table, that is, a table that has one line for each valid value of cancer_site (3, 4, 12,...)?
    If so, you need to add a column to this table to indicate what kind of cancer, each site is associated. You could join this table in the subquery, rather than using CASE expressions. The fact that 4 of the site is associated with breast cancer is the type of information that belongs to a table, not hardcoded in a query.
    If you do not have a cancer_siote table, thus creating one can be a good idea.

  • Using a custom Viewstack inside another gives an error

    Hi, can someone tell me why to use custom of ViewStacks in one of the other two components I get this error (Journal of the workspace)?

    "Custom component model has recursive definition: components." ViewStack»

    My ViewStack.mxml component

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx mx:ViewStack ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "100%" height = "100%" >

    < / mx:ViewStack >

    MyApplication.mxml

    ...

    < c:ViewStack id = "views" >

    < c:ViewStack id = "mainViews2" >
    < / c:ViewStack >

    < / c:ViewStack >

    ...

    Any combination involving the real mx:ViewStack works very well.

    Using FlashBuilder 4.5

    Thank you

    Describe your custom viewstack in Actionscript instead of MXML, otherwise the

    custom has a children play and you set another series

    MyApplication.mxml

Maybe you are looking for