HELP: Animation seems only repaint invalid final?

BB Storm JDE 4.7.0

I have a pretty simple app that has, as part of it, a polygon that I try to animate turning and drawing every 200 Ms.

I siimply created the berries of x and y values for the initial polygon and it caught on a BitmapField bitmap. This part works fine.

Then I create a timer task and set up a clock and scheduleAtFixedRate (ttask, 200, 200); to set the timer task to run every 200 mS. inside its execution function I transform the vertices of the polygon (rotation), clear the bitmap and redraw the. Then I call invalidate and he seems to remember that the last invalidate.

I also tried putting the drawing in a loop with a sleep for 200mS in the loop with an invalidate end of the loop, and that had the same effect.

It's as if the system recognizes only the last call to invalidate. I would like to paint on each invalidate. How can I do, or what I am doing wrong?

Any ideas?

Thank you... I really appreciate it.

-Donald

========================

Donald Murray

CTO IPPUB

I think I solved this problem.

I make the calls to invalidate inside a FieldChangeListener. If you set a timer to animate an element inside a FieldChangeListener, you must activate the timer right before leaving the listener and don't rest not pending in the listener. The problem with these is that you are a change listener, so that the system knows that you are going to change things, so is wrong to paint while you're there, so no matter how invalid you run, he won't repaint the screen while you're inside this listener. So, if you issue 10 invalid, simply register as a repaint WHEN you leave the listener. However, if you start your timer and leave the listener, then it can redraw and invalidate and each invalidate translates into screen repainting.

Problem solved.

THX

-Donald

Tags: BlackBerry Developers

Similar Questions

  • After you have reinstalled my old CS6 Design Standard on a new Mac Pro I can't use the updates in help. I only receive offers on update creative Cloud applications. I don't have any application of CC. How to find updates for my applications CS6?

    After you have reinstalled my old CS6 Design Standard on a new Mac Pro I can't use the updates in help. I only receive offers on update creative Cloud applications. I don't have any application of CC. How to find updates for my applications CS6?

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • Need help Urgent, a Site on the 2 areas, edge of animation works only for a single domain (not the domain clients)

    Hello

    need help with something really strange.

    I create a Restaurant website: www.arkadasch.de

    I test on my server the Site: www.bbaur.com/arkadasch

    As you can see I got the top of the page an element Ede animated.

    When I look at the site on my server www.bbaur.com/arkadasch, you see the element works correctly. You see on the two sites of the 'face' of the apearing name.

    I have download the site now the clients site and the edge of animation is showning only half? Only the name of the left site is apearing and not that of the right?

    I downloaded the same site two areas and it is always the same. My only he is on the right.

    I have delate my cache also.

    Someone has an idea?

    WOW-found the error.

    The name is written 'o'. and the psd file is named «Özden»

    I have change the name of "ozden" to "zden', delate the German symbol 'o'.

    Modify the edge of animation, save again, insert into Adobe Muse and now it works

  • Animations work only not for sweeping three-fingered until mission control

    Hello, I'm 10.11.5 OSX and every time that I drag upward or downward with three fingers, there is no control of mission animation doesn't seem fair, I have several users on my macbook pro and this problem only affects users of ideas how I could get back animations? I've tried rebooting and logging in and out of the user but nothing I tried fix it

    I have this same problem and it has just appeared. Weird.

  • Help solve the kind of invalid application

    I uses the app.kind property to determine whether the environment is the time of execution or not. (I have an attached to this case statement and if in the runtime environment rather than the development environment additional code is acted)

    However, I'm kind of app invalid,

    It doesn't seem to be much doecumentation on this subject, any help would be appreciated.

    Thank you

    Issue is resolved for now, kind of app invalid appears if the statement is generated if the application is run, but the code generating the enum ring is not.

  • GPS on SW3 seems only Lock when I turn the GPS on my phone! (Note 2)

    Hello

    Only, I decided to jump on the bandwagon of smartwatch due to the external GPS in the SW3.  So, I bought the SW3 less than a week ago.  I intend to leave my phone (Note 2) at home during the race, but it seems that I can't do it again!  I bought the watch of VerizonWireless and only have less than two weeks return it if there is a problem with the GPS on my watch.

    I was doing some GPS 'tests' by starting GhostRacer and then...  (1) removing my watch during a night without clouds for more than 15 minutes and the GPS was always "looking."  (2) I walked my dead end a few times.  Always "in search".  (3) I had a crazy idea to turn the GPS on my phone.  Wow!  Almost immediately, the GPS on the watch will display 4 bars, then locked with 3 bars.  I continued to walk and GhostRacer started showing I was moving a distance and speed greater than 0.0.  Great!  Maybe just needs to use the GPS on my phone to lock the watch?  I turned off my phone GPS and continued on foot.  The distance and the stopped rate of increment.  I turned on my phone back GPS and the watch started to increase my distance again.  I kept turning off GPS on my phone and I found that the watch only really felt my movement when the GPS on my phone is turned on.  Before that, I tried RunKeeper and he always showed my distance to 0.0.

    If I need to have the watch uses the GPS on my phone, then it is not necessary to obtain this particular smartwatch!

    Is there something special I should do to "activate" the GPS of my watch?  Is there a special mode that I can run in to see how many satellites that my watch can pick up and, possibly, the strength of the signal?  I have not been able to find too many messages on the Internet on the GPS doesn't work don't not with execution of applications, so I wonder if there is something wrong with my particular watch, but I won't be able to prove that first.

    Here are some details:

    PWP

    Location: on

    Flight mode: Off

    Android wear: 1.0.5.1785466

    Note 2 phone

    GPS: Off (unless I'm trying to make my GPS watch to work!)

    Any help would be appreciated!  Thank you!

    Disconnect the phone from your watch and try again. Disconnection = go away or turn off BT on your phone.

    If your watch is connected with your phone, then the phone GPS and GPS settings have priority. Turning off the GPS on your phone means you want to use the location services.

  • HELP - Get AE ONLY USED 1 CORE for in-comp

    Hi AE community.


    I have a pretty solid but am very disappointed by the slow update frames in After Effects. I'm quite familiar with how to set up the AE for distribution of RAM/CPU, but maybe I clicked something that causes this problem.


    My system has 24 cores and 64 GB of RAM.

    I am hosting AE to use 8 of 24 hearts and give each a 4 GB of RAM

    Also have enabled for a gtx580 CUDA / 3GB.

    Operating system is Mac 10.8.5 with AE cloud creative, completely up to date with NVidia drivers.


    I enclose a picture (below) that shows 12 of my 24 hearts leaping to action during a back of frame (strange b/c I said AE only to use 8, but I'm not complaining... more merrier), then a simple core ends make it very slowly.


    Another point to note is that I am made a framework for an animation of card that uses a 20K jpg, which is 10.7 MB in size. There are a few pictures like what comes to overlap another. 10.7 MB size is actually quite small given the resolution, but maybe that's a problem... but I don't know how that relates to EI, quite simply, do not use the immense power that it has.


    I use the CLASSIC 3D rendering engine. The Raytraced 3D rendering engine is very fast, but I can't use my different overlays that are necessary, if this is not a viable option for me at the moment.


    I'm still stuck I was wondering why all of my CPU power will lose within the program. Perhaps its worth mentioning that when I make a final report to be filed (especially using the Background Renderer script) all 24 cores are used and frames are rendered much more quickly when I'm still working on my computer.

    Info on the image:

    #1 = what happened the first 10 seconds after moving to a new image in the timeline

    #2 = another 30 seconds of rendering on a basis only

    AE cpu.jpg

    There is no new idea to give, except perhps to say that we currently have a large part of our team working on the production of all After Effects better behavior (i.e., faster) in this area.

  • Options, enable cookies, personalized help, Firefox will only keep defining, goes back to the story.

    With the help of Windows 10, able to use other browsers to connect to Facebook and almost everywhere else. Only have question w / Facebook, andlogging w / Firefox, 40.1

    Maintenance of the premises {web link}
    Allows to run Maintenance tasks on the database that drives
    Bookmarks and history module places behind Firefox.

    https://support.Mozilla.org/en-us/KB/how-to-fix-preferences-wont-save

    Note: Some software, like Advanced SystemCare with surf Protection, can protect the files in the folder of Firefox profile against the changes. If you have this software, then check the settings or uninstall this software.

    Some problems occurs when your Internet security program has been implemented.
    trust the previous version of Firefox, but not more acknowledges your
    update as being approved. Now how do I solve the problem: to allow
    Firefox to connect to the Internet

    • Make sure your Internet security software is up-to-date (for example, you are using the latest version).
    • Delete Firefox to list your program of programs approved or recognized. For detailed instructions, see

    Configure the firewall so that Firefox can access the Internet. {web link}

  • My ID apple has been disabled, but it seems only on my phone, iPad and iPod, but I can still access it on my macbook and iMac.

    My ID apple has been disabled because of the money being taken off on purchase I've ever made, to which I was refunded, but I noticed recently that my account has been disabled only on my phone, iPod, and iPad. but I can still use the account of my macbook and iMac, but I would like to know how to reactive the account on my other devices I tried to raise myself by changing my password but nothing has worked. can someone help please I really need to work?

    I could suggest things like disconnection and signature, but I think that the only solution to get to the bottom of this problem is to contact the Apple Support:

    Contact - Support official Apple

  • disarm read only of invalid property - all mean read only files

    Windows Vista Home premium, I reorganized some folders between 2 users (mother and daughter) and now all files and folders appear to be read-only and I can save is no longer with applications Ms. Also when I right click to change permissions... it seems to apply to all files and folders, but after has been taken, no effect.

    just to add effect... my virus Trojan virus program does find and puts the files in quarantine a few per day I delete... I think it's just part of the environment...
    Thank you

    The reading box only file says that for an indefinite period. It's a tri-state checkbox. Read has no effect on the behavior of a file that records cannot be read-only. The box does not read only bit on a file.

  • BlackBerry smartphones HELP! Not only '2G' option on my 9360

    I'm relatively new to blackberry... In network mode, I only have the options '3G' and '3 G & 2 G'... I wanted to switch to the '2G' option only to lengthen my battery charge, but nothing helps... Help please, I need some workaround or the explanation of how it is possible...

    Carrier: Globe - Philippines
    OPERATING SYSTEM. OTB 7.0

    No, it won't.

    He is expected to work at the level of the 3G if the signal is present.

    Please try the other stuff.

  • impossible to develop in Lightroom 6 - access seems to be invalid because the trial of Lightroom Mobile has expired, but I don't want Lightroom Mobile I want to just use my Lightroom 6

    Cannot access the area to develop my 6 Lightroom, it seems to be disabled because the trial of lightroom Mobile has expired, but I don't want to buy Mobile with Lightroom, I just use Lightroom 6 - can anyone help

    Update to the latest version 6.3 Lightroom from the following link: Lightroom maintaining

  • Adobe Flash CS5 - need help animating a sentence for each word fades in separately

    I'm trying to do a simple clip.

    My goal is to have lyrics to the audio piece appear in sync.

    It doesn't seem to be a simple way to fade in (and on) each word individually which allows the alignment and sentencing position remains constant.

    Help, please.

    You can have anything you want to ask in the text with a mask. It will still work the same. Take a look at this example: http://www.ddg-designs.com/downloads/textMasking.zip

  • Help - forms gone — only a rose describe in Flash CC

    I had a shape tween that was working fine yesterday.

    Today, I am in my FLA in Flash CC file and I see more fills or colors of the forms - I only see a pink outline.

    Any help would be appreciated.

    Here is a screenshot

    pink_outline.png

    Looks like the layer is set to outline view instead of the normal display mode.

  • Control of 3D animation... .my animation will only run without code!

    Hello

    I refer to the adobe online document: control of animations (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat3d/pdfs/contro lling_animations.pdf). Here, an example with code howto animation control. The adobe animation also runs fine and controls.

    I've created an animation with Tetra4D critical of 15 seconds and it has exported pdf file. The animation works well.

    I only replaced the example adobe animation with my animation film (by copy - paste). I did, of course, attach the AnimationController.js via the properties panel. Now, my animation work from beginning to end several times. But none of the adobe example control buttons work or have an influence on my animation film.

    I did the same procedure to copy paste of the original adobe... animation and it works. I even deleted the embedded code to find indeed the controls did not work more that is ok and reapply the AnimationController.js once again and checked... .it worked again... so by applying the code isn't the issue...

    That is what I am missing here my animation does not work. It is just an animation like adobe for example... or is it not?

    Concerning

    Pete

    There are two ways to animate a 3D scene - either keyframes are defined in the popular U3D/Republic of CHINA and the games of just rendering engine that return, or all is done with the scripts.

    If a third-party tool uses the latter method, you do not get a choice about adding your own animation controls.

Maybe you are looking for

  • Problem with the play, pause, stop buttons etc on Satellite M30 842

    I have tried pretty much everything I can to get these buttons to work, but it seems that their just their for pleasure. any suggestions? I also wonder if anyone knows if it is possible to download the drivers for the sd card reader able to read card

  • Different value of USB DAQ device on different computers?

    Hello I have not found an answer to this one, so I open a new question. Here's the problem: I have a card OR USB 6003 and I read some analog signal of a sensor with a framerate of 1000 Hz (I use actually 4 analog inputs for 4 sensors). I created a VI

  • Laptop turns off always with new hard drive?

    Hi, I just put in my new WD hard drive yesterday and this morning the laptop off twice. I already disassembled cell phone 2 months ago or not to vent and clean fan. I downloud smart software WD site and it says that my hard drive is in good condition

  • ACS 4.1 + IE V7

    Cisco has tested only IE V6 with ACS 4.1 but Win2003 now works with IE V7. Who tried to who? Who knows IE tuning to avoid uncertain ACS page display? Concerning

  • Export the current page - configuration

    HelloI created a page of dashboard with 8 reports on this subject.Some of these reports may have more than 25 results, so I get a menu drop-down:Now when I want to export the entire dashboard via the option page: 'Export to Excel - export current Pag