RotateTransition. How to keep animation

{RotateTransition}

ID: rotateAnimationTurn

fromAngleZ: 0

toAngleZ: 90

Duration: 1000

}

I play with this animation of the image but I have no idea how to continue the animation. For example if the key is pressed again. It starts at 0 and ends at 90 degrees again. How can I get it know that it is the current position and continue to do another 90 degrees when the button is depressed again?

Here is an example that I used to rotate an arrow to 90, a pause, another 90 & stop to what the user clicks new where he did the same thing back

animations: [
       RotateTransition {
            id: scrollContainer1ArrowDown
            fromAngleZ: 360
            toAngleZ: 270
            duration: 100
            onEnded: {
                scrollContainer1ArrowDownHalf.play();
            }
},
       RotateTransition {
              id: scrollContainer1ArrowDownHalf
              fromAngleZ: 270
              toAngleZ: 180
              duration: 100
},
RotateTransition {
             id: scrollContainer1ArrowUp
             fromAngleZ: 180
             toAngleZ: 270
             duration: 100
             onEnded: {                 scrollContainer1ArrowUpHalf.play();
             }
},
         RotateTransition {
               id: scrollContainer1ArrowUpHalf
               fromAngleZ: 270
               toAngleZ: 360
               duration: 100
               onStarted: {

               }
       }
]

to use

Container {
   id: animator
   property wasClicked
   onClicked: {
      if (!wasClicked){
          scrollContainer1ArrowDown.play();
          animator.wasClicked = true;
      } else {
          scrollContainer1ArrowUp.play();
          animator.wasClicked = false;
      }
   }
}

Tags: BlackBerry Developers

Similar Questions

  • How to make animated gifs to work in FCPX?

    Hello

    How to make animated gifs to work in FCPX?

    They work in FCP7 (FCS) but not FCPX. Strange.

    assailed

    Elmer

    If you had FCP7, you have Quicktime 7 Pro (upgraded automatically at installation FCP7). Check your Applications > Utilities folder.

    Open the gif in QT7 and export as... (Sequence Quicktime Movie > Open Options)... might as well go with ProRes LT and make sure that you pay attention to the size option (select current if the original is 100%).

  • How to keep the Safari in full screen, when it opens instead of small rectangle I enlarge them with green button and how to keep the presentation of upper task bar without always having to lower

    How to open safari in its entirety in a small rectangle and then having to enlarge.  It started to happen.

    How to keep the top toolbar in view rather than having to lower whenever necessary

    Drag the bottom right and left corners of the window to enlarge it to fit the screen.

  • How to keep the macbook awake when the lid is closed?

    I want to keep my macbook awake even when the lid is closed. Free preferably.

    Use your Mac laptop to view closed with an external display - Apple Support

    http://Mac-how-to.WonderHowTo.com/how-to/keep-your-MacBook-awake-with-display-CL No.-0158152.

  • How to keep certain cookies are removed from the closing of Firefox

    Hello

    I wonder how to keep cookies some website when Firefox is closed, for example, I've spent some time on www.kongregate.com with that is a flash games site and you may suspect that I like to keep my progress of these games, for future visits, however, whenever I close Firefox it automatically deletes the files of "C:\Users\ < I > \AppData\Roaming\Macromedia\Flash #SharedObjects\ #------assets.kongregate.com------." that file saved kongregate games and I want to keep that, anyway, I'll post a list of my privacy settings to help you help me achieve what I write here everything as 'ON' mean that the box has check and 'OFF' that is not:

    Follow-up:

    -Say the sites that I don't want to be tracked - SUITE

    History:

    -Conservation rules: use the custom settings for history

    -Always use private browsing - OFF mode

    N ' forget not my browsing and download history - OFF

    N ' forget to search and form history - OFF

    -Accept cookies - SUITE (I added www.kongregate.com as *www.kongregate.com* to the list of exceptions with the option 'Allow')

    -Accept third party cookies - SUITE

    -Keep until: I close Firefox

    -Clear history when Firefox closes - SUITE

    Address bar:

    -When using the location bar, suggest: nothing

    Options for 'clear history of Firefox closing. "

    When I quit Firefox, it must automatically clear all:

    History:

    -L' browsing history - SUITE

    -Download history - SUITE

    -Form & Search History - SUITE

    -Cookies - On (typo corrected)

    -Active connections - OFF

    -Cache - SUITE

    Data:

    -Passwords - saved offshore

    -OFF site preferences-

    -DownThemAll! History & queue - OFF (not that matters of it)

    -Data from the offline Web site - OFF

    Here's my current settings which I think should allow me to keep the cookies from kongregate while other cookies are deleted, but if this isn't the case, please tell me which options should be set at what to me keep cookies of kongregate, if it is not possible to have that then please suggest me a few extensions that would allow me to keep the cookies to kongregate when deleting others.

    Thanks in advance!

    I don't know why you wrote above: Cookies - OFF If you were clear cookies.
    Clear cookies that also erase cookies (including Flash local storage), so I have say that if cookies have been included in this list.
    That's why I posted to check in safe mode because it would be another possibility.

    To summarize:

    In case you use "clear history of Firefox closing:

    • do not delete Cookies
    • do not delete Site preferences

    Deletion of cookies will delete all specified (selected) cookies, including cookies that have an exception permit.

    Note that compensation "Preferences of Site" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

    Allow all cookies expire when you close Firefox.

    • Tools > Options > privacy > Cookies: "Keep until the": "closing of Firefox".

    To allow an exception for those you want to keep.

    • Tools > Options > privacy > Cookies: "Exceptions."
  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • After the upgrade to v9.0 my address window and search window change size according to the length of the address. How to keep the search engine the same size?

    Search bar and address bar change size according to the length of the URL. How to keep my search bar the same size?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • How to keep iTunes formatted on a song, as start and stop time, after it is copied to another location?

    I tried to figure out how to keep my departure and preserved end after I copied my songs to, say, a microSD card.  For those who asked, I cut the pieces in first and last White/boring songs, don't ask why.  If it is possible, and if someone knows how, I would be very happy.  Thank you!

    For those of us who read webdings, here's the translation:

    I tried to figure out how to keep my departure and preserved end after I copied my songs to, say, a microSD card.  For those who asked, I cut the pieces in first and last White/boring songs, don't ask why.  If it is possible, and if someone knows how, I would be very happy.  Thank you!

    Edit: Also, is there a program that will quickly and easily do the same, but save your changes MP3?  GarageBand will he?

    Edit: Also, is there a program that will quickly and easily do the same, but save your changes MP3?  GarageBand will he?

    You want to change the original work of artists and I can't tolerate that. Its like make-up a painting or hit the arm of a statue. Don't you jump in the last chapter of fast forward through movies and books too? Sorry not resist. .

  • How to keep the Macbook pro screen and cin on position?

    How to keep the Macbook pro screen and computer in position 'on '.  I don't want the computer shuts down or cut unless I ask him to...

    If you talk to keep your machine to fall asleep, take a look at the caffeine.

  • How to keep pictures of Photos on my Mac

    How to keep pictures of Photos on my Mac

    How to keep pictures of Photos on my Mac

    Do you mean prevent importing photos in a photo library?  Import from where and how?

    With the amount of information you provided that it is impossible to offer a solution.  We cannot see your computer so we need to know the details of your problem and the configuration, i.e.:

    • What system version are you running?
    • What exactly is the problem in detail?
    • How much free space on your startup disk?
    • What is your library, i.e. how many photos?
    • What difficulties have tried?
    • where is your library?
    • did you apply the updates or upgrades just before the problem occurs?
    • you run a library "managed" or "referenced"?

    • What type of Mac?
    • have you run a 'clean' or the "value" of the apps on your Mac?

  • How to keep zooming in safari?

    Hello

    I don't know how to keep the size of my zoom because of safari by default settings are too small, working overtime, I open a page I have to click on "cmd +" to get better size view?

    Help me please.

    Hi Ladyone,

    Looks like you have adjusted the font size minimum in Safari preferences, but fonts aren't quite big enough, so you want to know if there is another option in addition to zoom.

    The article below describes the steps you already mentioned and it describes also some extra options that you may find useful.

    OS X El Capitan: make it easier to see what is on the screen

    Also, you can always adjust the size of all text and objects on the screen by changing the resolution of the screen as shown here:

    OS X El Capitan: set the resolution of your screen

    Ciao.

  • How to keep an application running on the windows xp task bar permanently?

    can someone tell me please how to keep an application running continuously in the windows xp taskbar? I think that this is really annoying when I have to click on it to launch it. the application that I want to run permanently is U torrent.

    remain permanently on the taskbar, a program to start when windows starts, refer to options in your program to see if you can start with windows, or if a function has been added to services in administrative tools, start, auto value.

    --------------------

    below to add programs to the quick launch:

    http://www.Dummies.com/how-to/content/how-to-add-applications-to-the-Quick-Launch-bar-I0.html

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/win_tray_add_program_quick_launch.mspx?mfr=true

  • When I go to start-run and type ipconfig it happens only for a second. How I keep reading?

    When I go to start-run and type ipconfig it happens only for a second. How I keep reading?

    Hello

    • Click Start
    • Click on run
    • Type cmd and press enter
    • In the black window resulting type ipconfig and press enter

    Tricky

  • I tried dnlding flash player @ least 30 times... Most of the time he worked, but only for 1 session... I even disabled my AV, how to keep in my system or get HTML 5

    I tried dnlding flash player @ least 30 times... Most of the time he worked, but for 1 session... I've even disabled my AV, how to keep in my system, or get HTML 5?

    Hello

    How are you trying to download Flashplayer?
    I suggest that you follow the methods provided and check if it helps to solve the problem.
    Method 1:
    See the link, then run the Fixit. This will help remove all traces that might have left a previous installation of Flash Player.
    Solve problems with programs that cannot be installed or uninstalled
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall
    Method 2:
    Step 1:

    Perform a clean boot and install Flashplayer. Clean boot to disable non-Microsoft services which can otherwise cause conflicts during installation. Check out the link and follow the steps.
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353
     
    Important: after you have completed troubleshooting. Make sure that you follow the steps in the article to put the computer from starting in Normal mode.
    Step 2:
    See the link, download the application on your desktop computer and then run the installation.
    Alternatively, you can contact Adobe support on this issue. Check out the link.
    Flash Player Help / installation issues. Flash Player | Windows

     
     

Maybe you are looking for