Objects added to the stage are not animated by AnimatorFactory

Hi all,
the following code ist a very simple animation. I added an object to the stage by dragging it from the library. Then I applied code generated by "Copy motion as AS 3" and the animation works fine.
However, if i add another object by instating it in AS, add it to the stage by stage.addChild(...), and try to animate it by adding it as a target to the AnimatorFactory nothing happens.(Probably I made a simple newbi mistake.)
Any ideas how to fix this? Thanks a lot in advance.
Here is the code:
import fl.motion.AnimatorFactory;
import fl.motion.MotionBase;
import flash.filters.*;
import flash.geom.Point;
var __motion_Symbol1_3:MotionBase;
if(__motion_Symbol1_3 == null) {
    import fl.motion.Motion;
    __motion_Symbol1_3 = new Motion();
    __motion_Symbol1_3.duration = 34;
    // Call overrideTargetTransform to prevent the scale, skew,
    // or rotation values from being made relative to the target
    // object's original transform.
    // __motion_Symbol1_3.overrideTargetTransform();
    // The following calls to addPropertyArray assign data values
    // for each tweened property. There is one value in the Array
    // for every frame in the tween, or fewer if the last value
    // remains the same for the rest of the frames.
    __motion_Symbol1_3.addPropertyArray("x", [0,10.6348,21.2697,31.9045,42.5394,53.1742,63.809,74.4439,85.0787,95.7136,106.348,116.983 ,127.618,138.253,148.888,159.523,170.158,180.792,191.427,202.062,212.697,223.332,233.967,2 44.601,255.236,265.871,276.506,287.141,297.776,308.411,319.045,329.68,340.315,350.95]);
    __motion_Symbol1_3.addPropertyArray("y", [0,-0.151515,-0.30303,-0.454545,-0.60606,-0.757575,-0.90909,-1.06061,-1.21212,-1.36364,-1 .51515,-1.66667,-1.81818,-1.9697,-2.12121,-2.27273,-2.42424,-2.57576,-2.72727,-2.87879,-3. 0303,-3.18182,-3.33333,-3.48485,-3.63636,-3.78788,-3.93939,-4.09091,-4.24242,-4.39394,-4.5 4545,-4.69697,-4.84848,-5]);
    __motion_Symbol1_3.addPropertyArray("scaleX", [1.000000]);
    __motion_Symbol1_3.addPropertyArray("scaleY", [1.000000]);
    __motion_Symbol1_3.addPropertyArray("skewX", [0]);
    __motion_Symbol1_3.addPropertyArray("skewY", [0]);
    __motion_Symbol1_3.addPropertyArray("rotationConcat", [0]);
    __motion_Symbol1_3.addPropertyArray("blendMode", ["normal"]);
    // Create an AnimatorFactory instance, which will manage
    // targets for its corresponding Motion.
    var __animFactory_Symbol1_3:AnimatorFactory = new AnimatorFactory(__motion_Symbol1_3);
    __animFactory_Symbol1_3.transformationPoint = new Point(0.500000, 0.500000);
    // Call the addTarget function on the AnimatorFactory
    // instance to target a DisplayObject with this Motion.
    // The second parameter is the number of times the animation
    // will play - the default value of 0 means it will loop.
    __animFactory_Symbol1_3.addTarget(myClip, 0);
var myClip1:Symbol1 = new Symbol1();
stage.addChild(myClip1);
__animFactory_Symbol1_3.addTarget(myClip1, 0); // NOTHING HAPPENS?

if you create an animation that you want to apply to mulitple objects in cs4, you can create a motion preset:
http://www.gotoandlearn.com/play?id=88
in your coding problem, instead of adding myClip1 to the stage, add it to the main timeline.

Similar Messages

  • HT4191 I have iphone 5 and the latest iO7.1. Since upgrading to IOS7.1 birthdays added to a contact are not shown in calendar anymore. It use to show automatically before.

    I have iphone 5 and the latest iO7.1. Since upgrading to IOS7.1 birthdays added to a contact are not shown in calendar anymore. It use to show automatically before. Can anyone help?

    Click on calendars at the bottom of the screen. Make sure that birthdays are checked.
    We may think we have 1 calendar, but iPhone puts things in different calendars. Sometimes we can somehow lose one. Well not really lost, but somehow it just gets de-selected. So just make sure that all that you want to see are checked.
    One cool thing I like about this is that they have added US Holidays which didn't used to be there like on most paper calendars. Nice to have them available now!

  • The agents are not getting determined

    Hi Gurus,
    In the standard workflow WS00300022 with BUS 2104 for Approval of Appropriate request, the agents are not getting determined.
    Below are the steps followed:
    We have created a subtype for BUS 2104 and redefined the display and edit to add some new functionality. Delegated the business object and followed all the standard steps. Now the present situation is that the Workflow is not able to determine agents.
    We have even removed the subtype and checked with the standard functionality but still it is not determining the agents.

    Hi,
    Kindly Diagnose your WF:-
    Use the following transaction:-
    1> SWE4/SWELS -> EVENT TRACE ON/OFF (Switch On the Event Trace)
    2> SWEL -> DISPLAY EVENT TRACE
    3> SWUD -> WF DIAGNOSTICS
    4> SWPR -> WORKFLOW RESTART AFTER ERROR
    Enter the WF Number and Click on the LOG Icon.
    There you can see the Graphical Log of the WF to know where the WF is stuck.
    And You can also check the Technical Details of the WF there, to find which WF Container has what value.
    In the LOG, you can determine the step where it is unable to determine the Agent. That will give a picture of how to proceed further and what is the WF status at that point.
    Kindly check and revert back, so that a solution can be provided.
    Regards,
    Kanika

  • HT201272 How do I download previously purchased albums from iTunes when the album has either disappeared from my computer or the tunes are not playable?  The album shows as purchased on the iTunes store, but not available to download to my authorized devi

    How do I download previously purchased albums from iTunes when the album has either disappeared from my computer or the tunes are not playable?  The albums show as purchased on the iTunes store, but not available to download to my authorized device.  I also have albums that appear in my library, but are not able to be added to my iPod from my computer

    When you download something from the iCloud, it is a brand new licensed copy. Your iCloud account just contains a notation that you have this app. It isn't storing an actual copy of the app from your Mac.

  • Once I add my .swf to Dreamweaver, the buttons are not clickable, how can I fix this?

    Hello there,
    I'd just like to start out by saying that this is the first time I have posted on these forums, so if I have done anything wrong, I apologize!
    Anyway, about my question, just like the title says, once I import the .swf into Dreamweaver the buttons are not clickable, however when tested outside of Dreamweaver, they work correctly.
    Basically I have an animated banner with some audio and two buttons, the buttons mute and unmute the music.
    The file consists of two layers, one of which has 2 keyframes, the first keyframe has the Audio with the settings; "Effect: None. Sync: Start, Loop" and a button leading to the next frame.
    The next keyframe (still on layer one) has much of the same but the Audio settings are different; "Effect: None. Sync: Stop, repeat x 1" and this will stop the music.
    Now on the other layer (Rocket) I have a movie clip of a space-themed background and a rocket flying across it, the movie clip is made up of a motion tween and another movie clip which is the rocket.
    I am using Flash CS6 and Dreamweaver CS6 on a Windows 7 computer. I am also using Actionscript 2.0
    I apologize for the amount of information and I'm not very briliant at explaining things, so here are some images of the flash file, hopefully they'll help;
    Layer setup - http://i.imgur.com/iZHwfAw.jpg
    The movie clip - http://i.imgur.com/ayvPJUZ.jpg
    Keyframe one sound settings - http://i.imgur.com/LWbnQhO.jpg
    Keyframe two sound settings - http://i.imgur.com/7kS9dO2.jpg
    Actionscript for the first button/first keyframe - http://i.imgur.com/x6ROqPv.jpg   - (The second button/keyframe has the same code, but obviously the instance name and frame number has been changed)
    Again, I apologise if this all seems confusing!
    Thanks in advance for any answers to this question
    Adam.

    If you did not create this swf yourself then you won't be able to do what I am suggesting.  If you did, then open the fla in Flash and go into the Publish Settings and select the option to publish an html file as an output.  That will create an html page that embeds the Flash file.  Test that file in your browser and see if it plays properly.  IF so, then copy that code in place of whatever Dreamweaver did to embed the Flash.
    Dreamweaver is not a reliable tool for embedding Flash content... why it does not do it the same way Flash does it is anyone's guess.

  • The u, j, m and 7 keys on the keyboard are not functioning properly on my macbook air. Please Help!

    The u, j, m and 7 keys on the keyboard are not functioning properly on my macbook air. In its place are a random assortment of keys (Ex - u = "eqrw" or "IOUY"). This randomly happened when logging back in after sleep mode. No liquid damage at all. Please help!

    OK, I fixed the problem by doing a SMC (System Management Controller) reset as follows:
    1. Powered off my MacBook and removed everything connected except for the power chord.
    2. When powered off, I held "Shift" + "ctrl" + "Option" + "Power button" for 5 seconds or so until the little light on the front started to blink rapidly.
    3. Powered up my Mac, which took a little longer than usual to start and tested the "missing" keys which now works perfectly again.
    Just added another couple of years usage with my aging mac :-)

  • The songs on my Ipod Classic wont play at all although you can feel and hear the machinery working hard. The tracks are not playng at all but you can see the Ipod rewinding them all and returning to the album. And this happens to the second IPOD I have!

    The songs on my Ipod Classic wont play at all although you can feel and hear the machinery working hard. The tracks are not playng at all but you can see the Ipod rewinding them all and returning to the album. And this happens to the second IPOD I just got!

    First off, I would STRONGLY suggest that a external hard drive would make you life much easier by at least being able to back up your songs on the external drive for when you need them. Even if you don't want them in the iTunes library, you can have them all ready on the external to be re-added as needed. You can get 100's of gigs for under $100 shipped.
    Anyway, since you used Yamipod, are all the songs back on the computer? If so, I would go ahead and restore the iPod, let iTunes then resync everything back to the iPod, then switch it back to manual and see if the restore and resync clears up the issue.
    Patrick

  • I've been editing images with ease for a long time but now the changes are not being saved.

    I've been editing images with ease for a long time but now the changes are not being saved.
    Also, it is not liking me adding a large ammount of images in one go?

    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Data objects in a Unicode program are not convertible?what does this mean?

    hello,everyone,
    when I execute a smartform directly in the transaction smartforms.,the result can be seen just no data.
    when I execute program to transfer two internal tables from interface with data to the smartforms,and I use tcode st22,
    the error is : Data objects in a Unicode program are not convertible.
    the error analysis; The statement
       "MOVE src TO dst"
    requires the operands "dst" and "src" to be comvertible.
    the source code that error occurs is :LOOP AT I_SHIP_DETAIL INTO WA_DETAIL .
    and I know that the internal table have errors ,I defined the internal table refer to a structure created myself,and I set break-point in the smartforms ,can see the data in the internal table ,so why occurs such errors ,pls help me if you know .thank you in advance.

    hi
    good
    go through this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f2dac69e-0e01-0010-e2b6-81c1e8e5ce50
    thanks
    mrutyun^

  • Emails with animated pictures are not animated in Mail 4.2 in Snow Leopold.

    Animated pictures in Mail 2.1.3 in Tiger, are not animated in Mail 4.2 in Snow Leopold. Any solution?

    You could try opening the message in a different email client, such as Balzac, GNUMail, Thunderbird, GyazMail, or Opera Mail.

  • Changes made to the database are not being affected in Toplink work bench..

    Hi,
    Im recently encountering the following problem with Toplink mapping work bench.
    The cchanges are not visible when I make any changes to the underlying database tables and retrieve that tables into mapping work bench .
    The retrived table information still contains old information and the new fields added are not seen and the old fields which were deleted are not deleted.
    Is there any cache associated with TOplink..if so How can I flush that cache so that i always end up with the latest DDL s in my Toplink
    Thanx in advance...
    Regards
    Mahi

    You need to explicitly refresh the tables. In the Mapping Workbench, select or multi-select the tables you'd like to refresh, right click on them and choose "refresh".
    IF you are doing that, and not seeing the changes, then the most likely issue is that you are connecting to a different database and/or using a different JDBC login.
    - Don

  • When printing Gantt chart, some of the bars are not appearing in it

    When printing Gantt chart, some of the bars are not appearing in it
    I have added print tag in xml of chart mode-multiple pages.
    <print mode="MultiPage" print_all_columns="true" />
    For printing, I right ckicked on chart and clicked on Print chart..
    Edited by: Sheetal on Mar 29, 2012 2:46 AM
    Edited by: Sheetal on Mar 29, 2012 2:51 AM
    Edited by: Sheetal on Mar 29, 2012 2:56 AM

    Sheetal,
    Did you ever find a reason as to why the bars were not printing? I'm experiencing the same problem with Apex 4.1.1. Only the first part prints. Here is the print tag:
    <print mode="MultiPage" print_all_columns="true" columns_on_every_page="2" fit_timescale_to_end_of_page="false">
    I've changed some of these settings to no avail.
    -Seth.

  • The apps are not showing

    iphone is just newly and ios 5.0.1
    i jailbroek and got cydia
    then added the link to install INSTALLOUS
    suddenly, the apps are not showing :S what should i do!! we did not download any apps!!!!!!!!!
    pls help meeeeeeee t
    thank for advancing

    i got them r back phew lol
    oh really? i dunno that :/ anyways its fine now :)
    thank you

  • I have tried installing Livetype 3 times and the Effects are not installed.

    I have tried installing Livetype 3 times and the Effects are not installed. The animated text behaviors are not available. What might I be doing wrong?

    I have tried installing Livetype 3 times and the
    Effects are not installed. The animated text
    behaviors are not available. What might I be doing
    wrong?
    I have the exact same problem! I sent the discs into my local Apple Center so they could check the discs. A month later I get them back by mail and an e-mail that says "there is no problem with the discs, therefore it must be a problem with you system". Not very helpful, and it took forever before they got time to check the discs. Pretty ****** off by now...
    EDIT: It is probably worth mentioning that I get an error when installing LiveType 1B at about 4% of installing, that says "there were errors installing, please try again". I am installing the LiveType content on my LaCie 250GB USB external hard drive, although I have already tried installing the content on the built in hard drive as well..
    Message was edited by: NitRam Den Gale

  • Newly added af:table items are not sorted? Bug?

    I have written a simple adf faces 10.1.3.0.4 screen with an af:table and made it sortable calling SortableModel.setWrappedData() with an ArrayList of VOs. When the user clicks a header, the rows are sorted as expected. So far, so good.
    Now I do a PPR on the table and add some additional VOs to the ArrayList. Next the af:table re-renders itself and these new rows show up at the bottom of the af:table, IGNORING the user's chosen sort order. Is this a bug or am I missing a step/setting?
    Or maybe the question is when adding these new items to the underlying ArrayList, is there a way to force the SortableModel to re-sort its contents?
    I can post the sample code if the explanation is not clear. Thanks.

    After additional investigation what I found was that the item most recently added to the table is not sorted, but it gets sorted once another item is added, etc, etc. So there is always one item not in the correct order. This simple example below (which demonstrates polling, PPR and height limited table scrolling) will show the behavior. Click on the header to sort the column, then watch the bottom of the list...after the table refreshes (5 seconds), the bottom row will not be sorted.
    So my question is, "Can anyone think of a way to get the bottom item to participate in the sorting"?
    AlertPage.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
      <af:document>
        <af:form id="alertForm">
          <af:table id="alertTable" value="#{backing_app_AlertPage.alerts}"
            var="alert" emptyText="No Alerts were found"
            partialTriggers="pollingId" width="100%" banding="row">
            <f:attribute name="height" value="150px"/>
            <af:column headerText="Deal" sortProperty="dealId" sortable="true">
              <af:outputText value="#{alert.dealId}"/>
            </af:column>
          </af:table>
          <af:poll id="pollingId"
            pollListener="#{backing_app_AlertPage.processPoll}"/>
        </af:form>
      </af:document>
    </f:view>MainGrid.java
    package alertapp;
    import java.util.ArrayList;
    import javax.faces.component.*;
    import javax.faces.context.FacesContext;
    import javax.faces.event.*;
    import javax.faces.model.ListDataModel;
    import com.bofa.dealcal.model.alert.AlertVO;
    import oracle.adf.view.faces.component.core.CorePoll;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.context.AdfFacesContext;
    import oracle.adf.view.faces.event.*;
    public class MainGrid implements PollListener {
        private ArrayList alertVOs;
        private CoreTable alertTable;
        public synchronized ArrayList getAlerts() {
            if (alertVOs == null) {
                alertVOs = new ArrayList(10);
            return alertVOs;
        public void setAlerts(ArrayList alerts) {
            this.alertVOs = alerts;
        public CoreTable getAlertTable() {
            return alertTable;
        public void setAlertTable(CoreTable alertTable) {
            this.alertTable = alertTable;
        public void processPoll(PollEvent pe) {
            Long newAlertId = Long.valueOf(Math.round(Math.random() * 1000000));
            alertVOs.add(new MainGrid.AlertVO(newAlertId));
        public class AlertVO {
            private Long dealId;
            public AlertVO(Long dealId) {
                super();
                this.dealId = dealId;
            public Long getDealId() {
                return dealId;
            public void setDealId(Long dealId) {
                this.dealId = dealId;
    }faces-config.xml
         <managed-bean>
              <managed-bean-name>backing_app_AlertPage</managed-bean-name>
              <managed-bean-class>
                   alertapp.MainGrid
              </managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>...

Maybe you are looking for