Animated object and Threading

Hello

I want to animate certain objects on the stage and allow the user to interact with them. My current solutions uses the timer class to deal with because (that's what I heard) air / the playbook does not support multithreading (yet).

Now, I heard that the timer class is not very accurate, and really, I have determined that the animations aren't very smoove. Is there another way to solve my problem?

concerning

Levi

While the PlayBook itself certainly supports multithreading (there are 154 lapping my Simulator right now!), there is basically no thread support in ActionScript, or air.  Fortunately, most of the time you can get by fine without using various techniques.

Depending on the nature of your animation, you'll want to look in one or more of the following:

  1. The "ENTER_FRAME" event.  You will find many examples of this.  Flash programs have a 'frame rate' (essentially like a movie) and can respond to the events that are sent once per image.  The Flash docs treat these in various places (although sometimes they assume that you are not purely working with ActionScript).
  2. Using the class Tweener easily call periodic changes to one or more properties of an object any.  It is by far the easiest for many simple animations, such as dynamically move buttons.  It is readily available in the PlayBook with "import caurina.transitions.Tweener" so there is no good reason not to use it if it is appropriate for you.
  3. The class Timer you have found.  It is not "correct", but for what?  It is usually quite good, and the lack of accuracy (inaccuracy?) is no different from what any timer mechanism has in an environment no real time (and make no mistake, just running on top of the incredible QNX does little to make Flash applications that all "realtime" more than what they is on other systems).  You should get results very similar to a timer, as you would events chassis or other things.
  4. flash.utils.setTimeout or setInterval can do base calendar, although they would be considered a very low average level to do so.  I think they build right on top of timer, so there is no advantage to the use of these except an extreme simplicity.

Tags: BlackBerry Developers

Similar Questions

  • Animated objects does not move until the final destination.

    I am using captivate 9, and since then the upgrade 8, I have noticed that if I do a simple animation (fly down for example) on an object and do not change the trajectory at all, the animated object actually never to the final destination.  The question is even worse if I shorten the time of the animation.  Everyone has noticed this or have any suggestions?

    If you are still on the first version (version 9.0.0), please install the hotfix released earlier this week to upgrade to version 9.0.1. What you describe sounds like the bug that was in the first version, fixed with the patch. But since there is now a patch, easy to install using help, updates, no need for the fix that had to be installed manually.

  • How to change data objects and update the corresponding task and task forms?

    Hi all

    I modified this thread because I found that I had many questions to ask.

    1.
    I'm quite new to OBPM and would like to know how to change data - for clarity objects add a new attribute "Dependents of the Client" "Customer care" - and therefore update the task that uses the 'customer information' what makes via data binding - I get an error message here - or via the data about the data Task-The chosen tab it does not appear to be linked to my approach in some sort.

    2.
    Will be the task form that I generated earlier in < 1 > update automatically? Is it possible to update manually if the task has been clearly customized?

    3.
    What are the objects of project data? They do not store values in my process. They are for the arguments only - like reusable process?

    Thanks in advance,

    Kind regards

    Yanis

    Hi Yanius,

    (1) assume that you start from scratch. First, you declare your data object structure. To do this, you must go to the BPM project Naviagtor, right-click on 'Catalogue of trades' and create a new Module. Then you can right click on the module you created and select the new object of trade. Add all the attributes you need. It is the same to declare a class in Java. Second, you must declare a variable of the type process you have created: select the process, go to the Structure display (if you don't go and activate it in menu view Jdev-> Structure). Right click on the Process data object and create your variable. It's like setting a variable in Java. In short, answering your question, make the path opposite: find in your process of type "Customer Details", then go to your catalog Business, right click and change the definition to add what you need.

    (2) the human task will not update automatically (annoying). If you change the object itself, so you don't need to change your mappings because actually there the same object you are through the task as in / out argument. There are two things here: the human task and form associated with it (where probably change you the subject i.e. customer details). Go to the form (.jspx) - click on the tab links (by default, you are in the Design). In the links page, there is a link on top: "Page Définition File" (something like proj/pageDef/...xml). Open the XML file and go to the source. There you can add manually now all the attributes you need and that were not available before (i.e. dependent Client). It's a little complicated, but at least you don't have to recreate it. particularly useful if you have already implemented and subsequently form, you need to add more things (business is very good to say otherwise, "I would like to see something else in the form" ;)

    (3) project data objects are visible by all processes that you have in the project rather than the object of process data that are visible only to the method where you set the variable to. This means that you declare an object of data of the project once and then it will be available to all processes. Keep in mind that each process has a copy of it. In other words, it is not like a global variable that everyone sees. If edit you in a single process, other processes will not see the new value.

    I hope that I have answered your questions.
    See you soon,.
    Felipe

  • How do you manage the layers and objects and to rear of the other

    I do not understand how it is possible to have many objects on the stage and be able to handle the motion tweens with each of them, but ALSO to manage the objects are in front and behind them. I have a boot animation and there are many ongoing action, and there are times where I need my guys to be in front of the objects, and the time when they need to be behind.

    I do not know how to handle things regarding the layers and the movements in a way so I can get the items in the order that I need them to be (as the element on which passes in front of the other).

    Someone at - it advice or a way that I can manage my objects and queries and be able to classify them on the stage so that I can arrange things how I need them to be investment and who should be in front of the other objects?

    Yes, if you want to animate 20 items, you must put each item in its own layer. There are a number of ways to make it a little less tedious. For example, if you place each element on the stage, in the same layer, and then name each instance, you can then select all the elements on the stage and then select the Edit menu and then the timeline and finally distribute to layers. This will place each item in a layer newly created at the same position on the stage and then name each layer to match the name of instance for this element.

    To change the Z-order of any given scene element, you can use a number of different methods. One method is to use Actionscript as I mentioned in my last post. ActionScript is the best method if you need to be able to respond to user input and show the changes that cannot be built in animation since the beginning. If you're just showing an animation preset, you can use a number of methods different timeline based.

    In your example, if you want to have a figure to move another object on the stage, you can do that by creating two layers of the same object. One on one with the figure between the two. So that you have the object to move around both in front and behind, the figure. When you want to display the number in front of the object, set the object in the layer that is on top is not not visible. Then you will see only the object that is at the origin and the figure in front of him. How you go about changing the visible property or the alpha property, of this object. You can use keyframes in the timeline panel or the simple ActionScript.

    You want to find a small pool in the basics of Flash or take a book to guide you. There are a number of very good tutorials on the basic available free animation: http://www.gotoandlearn.com, or at a cost: http://www.lynda.com .

  • I did this after intro animation effects and it was made entirely from photoshop files and my comp settings in AE is HDV 1920 x 1080 25, then I was asked to the release of the film in 1920 X 1080 MPEG H.264 NTSC 29.97 progressive, someone has an idea how?

    I did this after intro animation effects and it was made entirely from photoshop files and my comp in AE settings is HDV 1920 x 1080 square pixels 25,.

    Then they asked me out of the movie at 1920 X 1080 MPEG H.264 NTSC 29.97 progressive, someone has an idea how?

    1. to adjust for NTSC composition without affecting the report l / h.

    2 - this film must be rendered in RGB + ALPHA, and yet the mpeg does not support this definition, it seems that the record will be in the video codec animation or other.

    I am bit confused if I need to adjust the model, or leave it and set the video codec only.

    Thank you

    If you have (or get) MPEG Streamclip, which is free, you can open the anamorphic clip and resize it to 1080 true. You will be able to choose H.264 as a codec. It will be if necessary deinterlacing. Suppose that the MPEG card is a MP4 container.

    Good luck.

    Russ

  • all the nodes property objects and objects grouped

    Hello

    Now position an on my GUI objects in the center of the screen using nodes property. However, I don't want to have to have a node property for each decoration, image and control. Is it possible that I can group all the objects and then use a property node to position them? I tried to use the property node all objects, but none of the clues seem to apply to my group of objects.

    Help please!

    Thank you very much.

    John

    p.s. I downloaded my vi test. The graph, the decoration and the exit button have been grouped. control over check.vi to set the object to be moved.

    Tabbed pages are a great way to group objects GUI.

    Rather than use a decoration,

    • use a tab control
    • Delete everything except the first tab
    • Hide tab
    • The value of the proprties of the tab control and control on this page is move, hide, display as well as the tab control.

    I hope this helps,

    Ben

  • objects and text on the screen appear to be "stretched" horizontally.

    all objects and images on the screen seem to be "stretched" horizontally with all applications and web sites.  A good example is a picture of someone... the normal image is large and thin person... on my screen, they appear to be shorter and wider... lol

    find manual for my screen... it is AOC model 2219V1.  As I have explained, I tried to change the resolution.  When I change the resolution on my side of the computer, then my husbands is affected.   There is something that I realized that I can't re-create or find...  You have any other suggestions... Thanks for your help.   What would happen if I reload windows software... do you think all the settings back to the original settings?  If I reload windows, will I lose the documents and files on my computer?

    I do not see where you said you tried to change the resolution.  You have changed the DPI, but it's different than to change the resolution (although can be connected to ALSO change the resolution.)

    The resolution is not independent - that is when you change the resolution of the screen of the user, it is on this size for all users of the computer.  Your original problem was:

    all objects and images on the screen seem to be "stretched" horizontally with all applications and web sites.  A good example is a picture of someone... the normal image is large and thin person... on my screen, they appear to be shorter and wider... lol

    This means that you are using a large non-ecran on a screen resolution and screen is allowing it to fill the entire screen.

    You say you have the AOC 2219V1 monitor)<-- linked="" to="" there)="" and="" according="" to="" the="" specifications="" on="" that="" web="" page,="" the="" resolution="" you="" want="" to="" set="" the="" monitor="" at="" is:="" 1680="" x="" 1050="" @="">

    So, in your case, if you have the correct driver for your video card installed * and * says video card supports widescreen resolutions (what is a new monitor?) then you should...

    1.

    Open display in Control Panel.

    2.

    On the tab settings in the screen resolution, drag the slider to the right until it shows the parameters of selection to 1680 x 1050, and then click apply.

    3.

    When you are prompted to apply the settings, click OK. Your screen becomes black for a moment.

    4.

    Once your screen resolution changes, you have 15 seconds to confirm the change. Click Yes to confirm the change. Click No or do nothing to return to your previous configuration.

    Now - if you do not have the choice of 1680 x 1050, it is a new monitor and you have the latest driver for your video - card, then probably your video card was not made to support screen widescreen resolutions.

  • Cannot delete the file. Says "not not found could not find this item check the location of this object and try again."

    Cannot delete the file.  Says "not not found could not find this item check the location of this object and try again."

    I got this file from my friend got sent - is a word document, I had on their computer.  So I tried to use Disk Cleanup to delete temporary files, temporary internet files and files program downloaded.  Does not work.

    When I check the properties, there is no security tab so I can't transfer ownership in this way.

    I don't want to experiment using the way of the transfer of ownership command prompt as the name of the file is several sentences long.  I can't rename it either, of course.

    Windows 7, a week and I already have a stupid problem which has already lost an hour of my time.

    What I did was to create a Notepad file that was empty and saved in the same location as the file that won't go away.  Once registered.  I click with the right button on the new file and rename the exact name as the file problem.  Don't forget to change the file extension (ex: .doc)

    ex file problem: word.doc

    new file: word.doc

    as long as they match eachother exactly you should see the file problem disappear and once that's gone, you can delete the new file created.

  • remove objects and events

    Hello

    If I do a removeChild on a button, did remove the EventListener or what I have to do this first?

    Harry

    Hey Harry,.

    According to the ASDocs:

    http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/Flash/display/DisplayObjectContainer.h...

    just by using the removeChild() function child objects parent null and property "dissociates" he of the parent object by assigning the value null. If the object is still floating around just, without a parent object and therefore eligible for garbage collection. However, if there is an eventlistener on the abducted child I don't think only one active garbage collected because there is always a reference to this object even if it is not visible. I think that it is confirmed by this line of the doc:


    «.. . the object is garbage collected if no other references to the child exist. »

    its always good practice however, to have your own function dispose() on a class that removes all listeners and sets the object to null. garbage collection in actionscript is not flawless, so I think they recommend that you reuse objects rather than try to remove them and to create later.

  • objects and the record type

    Hello experts.

    create type emp2_obj is object
    (
    objno number
    ,
    objname varchar2
    (20),
    objdept number
    );

    create type emp2_objarr is table of emp2_obj;

    and

    type emp2_rec is record
    (
    recno number
    ,
    recname varchar2
    (20),
    recdept number
    );

    create type emp2_recarr is table of emp2_rec ;

    Objects and types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    user13328581 wrote:

    the only reason why I ask is because he asked during an interview

    -Objects and the types of records are created similar and have the same similar object.  Is it only advisable to use registration type if you use a collection in PL/SQL type... Please advice

    Not at all.  You can use record types used with collection types outside.  They are a group concept.  If you want to group a set of values together (including fields), you can use a record.  It may be convenient.  You can send documents around proc and functions.

    Be aware that the record types are limited to procedures, functions, anonymous blocks and packages (i.e. PL/SQL), while the types of objects are stored in the dictionary of data as a separate Oracle objects (they can also have methods, the records may not).  Object types can be used in SQL, as said sol.beach types of records (outside of the intelligent pipeline situations) is for PL/SQL.

  • Dynamic object and shape layer

    Hey guys,.

    I have two questions, and I would be very happy if you could help me with my problem.

    01. when I copy a form of Illustrator and paste it into Photoshop as a "shape layer", it is sometimes placed on contact information does not match. It is not represented as the 'pixilated Preview' since Illustrator intends:

    Icon_Shape_Layer_Photoshop.png

    But when I use the tool 'transform' to move and type in coordinates equal form, he looks right and he is portrayed as for the 'pixilated Preview' in Illustrator:

    Icon_Shape_Layer_Nice_Photoshop.png

    When I place the same icon as a "smart object", it is always placed right. Is there a solution why?

    02. when I place a symmetrical "shape layer" (like the heart icon) and check the colors with the "Color Picker", a few pixels to the right are (minimal) chromatic values other than the same pixel on the left side. But when I place it as a "smart object" pixels on the right have the same values of color on the left side. Is there a solution for this?

    I really appreciate if someone could explain that to me.

    Thank you very much in advance!

    See you soon

    Thorbman

    What do you proof is anti-aliasing. There is no way to adjust the color. It is supposed to be a mixture of the color of objects, and what is behind it.

  • How can I make a clickable object, and when I click it, it moves down another object (extend)?

    How can I make a clickable object, and when I click it, it moves down another object (extend)?

    Only with a specific widget. Check the usual sites, if is not the default widgets menu and the accordion.

    Mylenium

  • Problem when I add any object and camera

    Hi all, thanks for helping me with this.


    Here is a link to a video I recorded showing my problem.

    77c8e8bd-51e4 - 42d 7 - 97 d 8 - b918f7d12f84.3gp - Google Drive

    After you run the 3D Tracker and the creation of any object and camera.  The angle of the camera moves as the original video moves as well.  I want the camera to stay still instead of tilt angle of the video.

    Thank you

    Aaron

    Your screenshot is Aussie bad quality that I can't really tell exactly what you're doing, but looks like you're not understanding what the tracker of the camera is, or how it works. First of all, the video layer must be 2D. You have changed the video layer 3D and it would never work. Tracker camera recreates a camera inside the AE that corresponds to circulation, the focal length and the position of the camera to film the scene. Camera Tracker provides a way for you to create a ground plan and original that align to a starting point in 3D space of AE so the global center of the model is aligned with a geometry in the plan. Camera Tracker of the AE does not match lens distortion, so if you keep track of the shooting was shot with a lens wide angle and there is a lot of distortion so you must remove this distortion before follow-up or the edges of your 3D objects will drift as the camera moves unless they are located in the center of the photo that is free from distortion.

    I don't know what you're trying to accomplish with your shot. Looks like you followed the middle section of the video and the fact that the 3D layer. It would never work. The normal procedure would be to add a camera and a null value or a solid or a text composition. Then the 3D layers will be stick to shooting perfectly if there is no significant lens distortion.

    Please explain in detail exactly what you're trying to do and if you don't ccreencaptures put it on YouTube using full HD will give us something we can see better. It would have helped if there was audio on your video explaining what you were trying to do.

    Please enter Tracker camera find help in the upper right of the AE and study up on the functioning of the tool.

  • will never be an update where you can erase a background object of an image without clear photo behind the object and have the result as if the object was not always on the picture in the first place.

    Will never be an update where you can erase a background object of an image without clear photo behind the object and have the result as if the object was not always on the picture in the first place.

    I guess this feature without doubt not will be part of Lightroom because of the non-destructive nature publishing. Is that programs like Photoshop are for. But I don't speak for Adobe, because I do not work for them, and I did not all understand what are their plans for the future.

  • Duplicate an object and create it move on the stage

    Hello

    I'm having a problem in actionscript 3.0 game development. The game plan is to have planes flying across the screen and the player must shoot by clicking on it. As the player gets more points, it must be of planes flying across the screen. No matter what I try, I can't work. Can anyone offer any coding suggestoins for coding in general and him duplicate the object and spawning it out side of the scene.

    Create the plan as a library item and assign a class name (for example you name Plane).  To create a new instance of it you just use...

    var another_plane:PLane = new Plane();

    addChild (another_plane);

    planes.push (another_plane);

    The last line place the plane newly created in a table that you set above all create so that you have a way to target the various plans which, added to the process (moving, etc) them.  When one of them is no longer at stake, you can remove the table so that it gets not be processed.

Maybe you are looking for