Copy motion as actionscript 3.0

Hi all,
i have a small question.
I am working on a movie with multiple timelines and i try to use the "copy motion as actionscript 3.0" feature. when prompted for "instance name" should i give exact location (meaning: "parent_movie.instance_name")? or simply the instance name on its own?
(i am trying to control an animation of a nested movie clip from the main timeline using this feature... can't get it to work..)
thanks,
Eliad.

here it is:
contact_holder.contact_form.exitToMain.addEventListener(MouseEvent.CLICK, ExitContactForm);
function ExitContactForm(Event:MouseEvent):void {
      import fl.motion.Animator;
var contact_holder_xml:XML = <Motion duration="4" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
        <Source frameRate="12" x="75" y="18.65" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" instanceName="contact_holder" symbolName="contact_form_holder">
            <dimensions>
                <geom:Rectangle left="0" top="0" width="399.95" height="362.7"/>
            </dimensions>
            <transformationPoint>
                <geom:Point x="0" y="0"/>
            </transformationPoint>
        </Source>
    </source>
    <Keyframe index="0" tweenSnap="true" tweenSync="true">
        <tweens>
            <CustomEase>
                <geom:Point x="0.3534883720930233" y="0.09999999999999987"/>
                <geom:Point x="0.6666666666666667" y="0.5366666666666666"/>
            </CustomEase>
        </tweens>
    </Keyframe>
    <Keyframe index="3">
        <color>
            <Color alphaMultiplier="0"/>
        </color>
    </Keyframe>
</Motion>;
var contact_holder_animator:Animator = new Animator(contact_holder_xml, contact_holder);
contact_holder_animator.play(); 
the instance name i am using ( the one which this code is applied to) is "contact_holder".
thank you for your help.

Similar Messages

  • Cannot find 'copy motion as actionscript' in Flash CC

    Hi,
    I am trying to copy a tween animation to Actionscript 3.0 code using the instructions from this tutorial: Animation Learning Guide for Flash: Using ActionScript 3 | Adobe Developer Connection
    When I select the frames on the time line and right click the menu item "Copy Motion as ActionScript 3" is not there.
    I have a "Copy motion as XML" menu item in the Command menu, but can't find "Copy Motion as ActionScript 3" anywhere. Has it been deprecated? Or am I doing something wrong?
    Here is the XML code for my test file that get's generated:
    <Motion duration="24" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
      <source>
      <Source frameRate="24" x="266.45" y="350.4" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="Symbol 1">
      <dimensions>
      <geom:Rectangle left="0" top="0" width="71" height="71"/>
      </dimensions>
      <transformationPoint>
      <geom:Point x="0.4992957746478874" y="0.4992957746478874"/>
      </transformationPoint>
      </Source>
      </source>
      <Keyframe index="0">
      <color>
      <Color alphaMultiplier="0"/>
      </color>
      </Keyframe>
    </Motion>
    Kind Regards from Erlend

    i don't know why it was removed, but in general the adobe engineers had to decide which features from the 32bit flash pro (cs) should be added to the 64bit flash pro (cc).  and there were time-constraints so the more features carried-over, the long it would take to release cc.
    i don't know if it's better to use xml because i've never seen the need to use either feature, ever.  in fact, i don't use the flash timeline tweening and i don't use the flash tween class.  like many flash professionals, i use a 3rd party library from greensock, tweenlite (usually and lately tweenmax).
    and finally yes, cc subscribers can use flash pro cs6:  open your cc desktop app>click apps>filters&versions>previous versions>flash pro install>cs6.

  • How to I call "Copy motion as action script 3.0" from JSFL?

    I need to get result like I get from clicking "Copy Motion as ActionScript 3.0" from Flash CS4 context menu on a motion tween. I can not find it's declaration anywhere in JSFL. Can anyone help, please?
    P.S. The result should be formatted similar to this
    import fl.motion.AnimatorFactory;
    import fl.motion.MotionBase;
    import flash.filters.*;
    import flash.geom.Point;
    var __motion_Surface_15:MotionBase;
    if(__motion_Surface_15 == null) {
        import fl.motion.Motion;
        __motion_Surface_15 = new Motion();
        __motion_Surface_15.duration = 30;
    __motion_Surface_15.addFilterPropertyArray(0, "strength", [1.00], -1, -1);
    instead of having XML in it

    what problem are you having?

  • Copying motion values between clips/sequences

    I have a few sequences where I use still images for backgrounds.
    Is there any way to copy paste the values in the Motion tab (scale and center) between clips and sequences?
    Now I have to double-click one clip, remember the values for scaling, position, etc and then switch to another seqeunce, open the corresponding clip and enter the values. Quite time-consuming and the risk for errors are at lest present.
    So, any tips are greatly appreciated!
    Message was edited by: Niklas Wikman

    Yes! Here is an easy to way to copy and paste attributes.
    http://www.geniusdv.com/newsand_tutorials/2009/06/copy_paste_filter_attributes_in_final_cutpro.php
    pJ

  • Copying motion keyframe attributes

    I'm sure there's a way to do this, I think I've even seen it done in a tutorial, but I'm at a loss: after performing a motion track on a short clip, I wanted to veeery slightly move the video that had the track attributes pasted to it.  How do I copy the keyframe attributes from the one frame I moved it onto all the other keyframes?  288 frame clip, so rather not go frame-by-frame, but if I copy the attributes of just the one frame, won't it stay in the same spot for the whole clip instead of moving?

    If I understand your situatiuon properly, here's what to do:
    Undo the movement of that one keyframe
    Select ALL the keyframes
    With the timeline cursor over one of the keyframes, nudge the layer using the cursor up-down-right-left keys
    Everything moves the same amount.

  • Copying Motion Tab Parameters

    Is there anyway to copy the parameters of the Motion Tab in FCP. I have a long video slide show that I want to add a drop shadow to every still with the same Drop Shadow parameters. I could do it in Photoshop but it would be a terrible pain. Resizing 200+ photos and adding an alpha channeled drop shadow is way too much work for this project. Any hints.

    Control-click / select copy on a clip that has the parameters you want, then select all other clips you want to apply the parameters to and hit control-click / paste attributes / choose the attributes you want to paste.
    Be advised about the 'Scale attribute times', if any of your actions are keyframed...if it's simply applying a specific drop shadow, you can leave this checked...it only affects items that change over time.
    K

  • Motion 4 - copy motion path?

    Hello All,
    Is there a way to copy an object's motion path to a paint stroke for write-on?
    I have an object that moves from point A to point B in a nice arc (keyframed path)
    I want to use this exact path, and have a stroke/paint stroke write on as the object moves from point A to
    point B following the arc from the objects motion path.
    I can do this with a straight line, etc, but have not yet discovered how to have my "line" follow my moving
    object.  I have also done this by "drawing" a line, but I cannot match the path well drawing freehand, etc.
    I thought this would be "easy".
    thanks,
    eholz1

    Hello Todd,
    I think I have tried this, but perhaps not from the keyframe editor.
    I will give it a shot, and let you know if it works.... Stand by ... trying now...
    Well, almost figured out - but tricky (at least for me!)  This is only for the path, I have not
    figured out how to add a stroke to the path, etc.
    I did the following:
    I created a new layer called "Tracking Line".  I added a "link" to the position parameters of the moving ball (with
    the arc path)  Right click position under the object's parameters in the inspector.  I selected the moving ball for the shape parameter for the link.
    Then I got a path that follows the arc, but.  I had to change the offset parameters for x and y for the link.
    So I have a path of sorts that matches the arc. 
    I have yet to see how to add a stroke to this.  It also my be all wrong!
    Thanks and keep me posted.
    eric

  • Crazy non-sense Actionscript compiler error

        trace("scaleH: " + scaleH + "\n");        yields .89132002
        trace("browserH: " + browserH + "\n");   yields 962
        RollingTractor(scaleH, browserH);      yields Intro, Layer 'Actions', Frame 1, Line 112  1137: Incorrect number of arguments.  Expected no more than 1.
    The RollingTractor function resides in a custom class of the same name:
    package
        import fl.motion.AnimatorFactory;
        import fl.motion.MotionBase;
        import fl.motion.Motion;
        import flash.filters.*;
        import flash.geom.Point;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.display.*;
        import flash.events.*;
        import flash.sensors.Accelerometer;
        public class RollingTractor
            var _scaleH:Array = new Array(1);
            var tractorBodyObj:DisplayObject;
            var frontWheelObj:DisplayObject;
            var backWheelObj:DisplayObject;
            public function RollingTractor(scaleH:Number, browserH:uint)
    Any ideas?
    Ron

    Ok, I'm posting the entire code:
    RollingTractor(1, 962);    // found on Frame 1 in Flash main timeline
    Code from RollingTractor.as file:
    package
        import fl.motion.AnimatorFactory;
        import fl.motion.MotionBase;
        import fl.motion.Motion;
        import flash.filters.*;
        import flash.geom.Point;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.display.*;
        import flash.events.*;
        import flash.sensors.Accelerometer;
        public class RollingTractor
            var _scalePH:Array = new Array(1);
            var tractorBodyObj:DisplayObject;
            var frontWheelObj:DisplayObject;
            var backWheelObj:DisplayObject;
            public function RollingTractor(scalePH:Number, browserPH:uint)
                // convert parameter values into array values
                _scalePH[0] = scalePH;
                // create a display object container
                var tractorContainer:Sprite = new Sprite();
                // load one of three bitmap images
                var tractorBodyLoader:Loader = new Loader();
                tractorBodyLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, bodyLoadComplete);
                tractorBodyLoader.load(new URLRequest("WheelFreeTractor.png"));
                function bodyLoadComplete(event:Event):void
                    // calculate the object height to display at bottom of browser
                    var _tractorBodyY:Array = new Array(1);
                    _tractorBodyY[0] = browserPH - (tractorBodyLoader.height / 2);
                    // load one of three bitmap images
                    var backWheelLoader:Loader = new Loader();
                    backWheelLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, backWheelLoadComplete);
                    backWheelLoader.load(new URLRequest("BackWheel.png"));
                    function backWheelLoadComplete(event:Event):void
                        var frontWheelLoader:Loader = new Loader();
                        frontWheelLoader.load(new URLRequest("FrontWheel.png"));
                        frontWheelLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, frontWheelLoadComplete);
                        function frontWheelLoadComplete(event:Event):void
                            // initialize the display object instances
                            tractorBodyObj = tractorBodyLoader.content;
                            frontWheelObj = frontWheelLoader.content;
                            backWheelObj = backWheelLoader.content;
                            // store the loaded iamges into a group container
                            tractorContainer.addChild(tractorBodyObj);
                            tractorContainer.addChild(frontWheelObj);
                            tractorContainer.addChild(backWheelObj);
                            // adjust the image Y values to bring the
                            // rolling tractor at the bottom of the screen
                            frontWheelObj.y = browserPH - ((frontWheelObj.height * scalePH) / 2);
                            backWheelObj.y *=  backWheelObj.y / frontWheelObj.y;
                            tractorBodyObj.y *=  tractorBodyObj.y / frontWheelObj.y;
                            // initialize the motion tweens
                            // (COPY MOTION AS ACTIONSCRIPT 3.0)
                            tractorBody();
                            backWheel();
                            frontWheel();
                            // start the tween animations through Flash motion tween instances
                            /*TractorBody.addTarget(tractorBodyObj, 0);
                            BackWheel.addTarget(backWheelObj, 0);
                            FrontWheel.addTarget(frontWheelObj, 0);*/
                            // get rid of the loaders (NOT SURE IT IS NEEDE3D)
                            tractorBodyLoader = undefined;
                            frontWheelLoader = undefined;
                            backWheelLoader = undefined;
            private function tractorBody()
                var __motion_TractorBody:MotionBase;
                if (__motion_TractorBody == null)
                    __motion_TractorBody = new Motion();
                    __motion_TractorBody.duration = 165;
                    // Call overrideTargetTransform to prevent the scale, skew,
                    // or rotation values from being made relative to the target
                    // object's original transform.
                    // __motion_TractorBody.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_TractorBody.addPropertyArray("x", [0,44.1972,87.3677,129.545,170.728,210.934,250.164,288.449,325.791,362.205,397.41,432.284 ,465.983,498.804,530.747,561.846,592.1,621.526,650.141,677.944,704.969,731.199,756.668,781 .391,805.369,828.618,851.139,872.981,894.21,914.578,934.367,953.51,972.007,989.874,1007.13 ,1023.79,1039.85,1055.33,1070.25,1084.63,1098.45,1111.75,1124.54,1136.82,1148.61,1159.92,1 170.79,1181.19,1191.14,1200.68,1209.78,1218.51,1226.82,1234.77,1242.36,1249.59,1256.5,1263 .06,1269.32,1275.08,1280.92,1286.32,1291.62,1296.31,1300.94,1305.35,1309.55,1313.55,1317.3 5,1320.98,1324.44,1327.75,1330.93,1333.98,1336.93,1339.76,1342.51,1345.19,1347.79,1350.36, 1352.87,1355.37,1357.88,1360.36,1362.86,1365.38,1367.94,1370.54,1373.23,1375.97,1378.81,13 81.75,1384.8,1387.98,1391.29,1394.75,1398.38,1402.19,1406.18,1410.39,1414.79,1419.43,1424. 11,1429.41,1434.81,1440.67,1446.42,1452.68,1459.24,1466.14,1473.38,1480.96,1488.91,1497.22 ,1505.95,1515.06,1524.6,1534.55,1544.95,1555.81,1567.12,1578.91,1591.2,1603.98,1617.28,163 1.11,1645.48,1660.4,1675.88,1691.95,1708.6,1725.86,1743.73,1762.22,1781.37,1801.15,1821.54 ,1842.75,1864.59,1887.12,1910.36,1934.34,1959.07,1984.53,2010.76,2037.79,2065.59,2094.21,2 123.63,2153.89,2184.99,2216.93,2249.75,2283.45,2318.04,2353.53,2389.94,2427.28,2465.57,250 4.8,2545.01,2586.19,2628.37,2671.54,2715.75]);
                    __motion_TractorBody.addPropertyArray("y", [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);
                    __motion_TractorBody.addPropertyArray("scaleX", [.9]);
                    __motion_TractorBody.addPropertyArray("scaleY", _scalePH);
                    __motion_TractorBody.addPropertyArray("skewX", [0]);
                    __motion_TractorBody.addPropertyArray("skewY", [0]);
                    __motion_TractorBody.addPropertyArray("rotationConcat", [0]);
                    __motion_TractorBody.addPropertyArray("cacheAsBitmap", [false]);
                    // Create an AnimatorFactory instance, which will manage;
                    // targets for its corresponding Motion.
                    var TractorBody:AnimatorFactory = new AnimatorFactory(__motion_TractorBody);
                    TractorBody.transformationPoint = new Point(0.500000,0.500253);
                    // 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.
                    // TractorBody.addTarget(<instance name goes here>, 0);
                    TractorBody.addTarget(tractorBodyObj, 0);
            private function backWheel()
                var __motion_BackWheel:MotionBase;
                if (__motion_BackWheel == null)
                    __motion_BackWheel = new Motion();
                    __motion_BackWheel.duration = 165;
                    // Call overrideTargetTransform to prevent the scale, skew,
                    // or rotation values from being made relative to the target
                    // object's original transform.
                    // __motion_BackWheel.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_BackWheel.addPropertyArray("x", [0,44.2851,87.5414,129.802,171.067,211.354,250.661,289.023,326.438,362.925,398.2,433.144, 466.91,499.796,531.802,562.963,593.277,622.762,651.433,679.292,706.371,732.653,758.172,782 .945,806.97,830.266,852.832,874.717,895.988,916.397,936.225,955.406,973.939,991.843,1009.1 3,1025.82,1041.92,1057.43,1072.38,1086.78,1100.64,1113.96,1126.77,1139.08,1150.9,1162.23,1 173.11,1183.53,1193.51,1203.06,1212.19,1220.93,1229.26,1237.23,1244.83,1252.08,1259,1265.5 7,1271.84,1277.61,1283.47,1288.88,1294.19,1298.88,1303.53,1307.94,1312.16,1316.16,1319.97, 1323.61,1327.07,1330.39,1333.58,1336.63,1339.59,1342.42,1345.18,1347.87,1350.47,1353.04,13 55.56,1358.07,1360.58,1363.06,1365.57,1368.09,1370.66,1373.27,1375.96,1378.71,1381.55,1384 .5,1387.55,1390.74,1394.06,1397.53,1401.16,1404.98,1408.97,1413.19,1417.6,1422.25,1426.94, 1432.25,1437.66,1443.54,1449.29,1455.57,1462.14,1469.06,1476.31,1483.91,1491.87,1500.2,150 8.94,1518.07,1527.63,1537.6,1548.02,1558.9,1570.24,1582.05,1594.36,1607.17,1620.49,1634.35 ,1648.75,1663.7,1679.22,1695.31,1712,1729.29,1747.19,1765.73,1784.91,1804.74,1825.16,1846. 42,1868.3,1890.87,1914.16,1938.19,1962.96,1988.48,2014.76,2041.84,2069.7,2098.37,2127.86,2 158.17,2189.33,2221.34,2254.22,2287.99,2322.65,2358.21,2394.69,2432.11,2470.47,2509.78,255 0.07,2591.33,2633.59,2676.85,2721.15]);
                    __motion_BackWheel.addPropertyArray("y", [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);
                    __motion_BackWheel.addPropertyArray("scaleX", _scalePH);
                    __motion_BackWheel.addPropertyArray("scaleY", _scalePH);
                    __motion_BackWheel.addPropertyArray("skewX", [0]);
                    __motion_BackWheel.addPropertyArray("skewY", [0]);
                    __motion_BackWheel.addPropertyArray("rotationConcat", [0,11.7176,23.1629,34.3449,45.2634,55.9229,66.3234,76.4737,86.3737,96.0278,105.436,114.60 7,123.541,132.243,140.712,148.957,156.978,164.779,172.365,179.737,186.901,193.856,200.608, 207.162,213.52,219.683,225.654,231.445,237.047,242.473,247.72,252.795,257.699,262.436,267. 01,271.427,275.685,279.79,283.746,287.557,291.222,294.748,298.137,301.395,304.52,307.519,3 10.399,313.156,315.795,318.323,320.738,323.052,325.256,327.363,329.374,331.292,333.123,334 .861,336.521,338.097,339.599,341.03,342.386,343.677,344.906,346.074,347.189,348.247,349.25 7,350.219,351.136,352.014,352.857,353.665,354.446,355.197,355.926,356.637,357.326,358.007, 358.674,359.337,360,360.659,361.321,361.989,362.669,363.359,364.07,364.799,365.549,366.331 ,367.139,367.981,368.86,369.777,370.739,371.748,372.806,373.921,375.089,376.319,377.609,37 8.966,380.397,381.899,383.475,385.134,386.873,388.703,390.622,392.633,394.74,396.944,399.2 58,401.672,404.201,406.84,409.597,412.477,415.475,418.601,421.859,425.248,428.773,432.439, 436.25,440.205,444.31,448.569,452.985,457.56,462.297,467.201,472.276,477.522,482.949,488.5 51,494.341,500.312,506.476,512.833,519.388,526.14,533.094,540.259,547.63,555.217,563.018,5 71.039,579.284,587.753,596.454,605.388,614.56,623.968,633.622,643.522,653.672,664.073,674. 732,685.651,696.833,708.278,720]);
                    __motion_BackWheel.addPropertyArray("cacheAsBitmap", [false]);
                    // Create an AnimatorFactory instance, which will manage;
                    // targets for its corresponding Motion.
                    var BackWheel:AnimatorFactory = new AnimatorFactory(__motion_BackWheel);
                    BackWheel.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.
                    /// BackWheel.addTarget(<instance name goes here>, 0);
                    BackWheel.addTarget(backWheelObj, 0);
            private function frontWheel()
                var __motion_FrontWheel:MotionBase;
                if (__motion_FrontWheel == null)
                    __motion_FrontWheel = new Motion();
                    __motion_FrontWheel.duration = 165;
                    // Call overrideTargetTransform to prevent the scale, skew,
                    // or rotation values from being made relative to the target
                    // object's original transform.
                    // __motion_FrontWheel.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_FrontWheel.addPropertyArray("x", [0,44.1972,87.3677,129.545,170.728,210.934,250.164,288.449,325.791,362.205,397.41,432.284 ,465.983,498.804,530.747,561.846,592.1,621.526,650.141,677.944,704.969,731.199,756.668,781 .391,805.369,828.618,851.139,872.981,894.21,914.578,934.367,953.51,972.007,989.874,1007.13 ,1023.79,1039.85,1055.33,1070.25,1084.63,1098.45,1111.75,1124.54,1136.82,1148.61,1159.92,1 170.79,1181.19,1191.14,1200.68,1209.78,1218.51,1226.82,1234.77,1242.36,1249.59,1256.5,1263 .06,1269.32,1275.08,1280.92,1286.32,1291.62,1296.31,1300.94,1305.35,1309.55,1313.55,1317.3 5,1320.98,1324.44,1327.75,1330.93,1333.98,1336.93,1339.76,1342.51,1345.19,1347.79,1350.36, 1352.87,1355.37,1357.88,1360.36,1362.86,1365.38,1367.94,1370.54,1373.23,1375.97,1378.81,13 81.75,1384.8,1387.98,1391.29,1394.75,1398.38,1402.19,1406.18,1410.39,1414.79,1419.43,1424. 11,1429.41,1434.81,1440.67,1446.42,1452.68,1459.24,1466.14,1473.38,1480.96,1488.91,1497.22 ,1505.95,1515.06,1524.6,1534.55,1544.95,1555.81,1567.12,1578.91,1591.2,1603.98,1617.28,163 1.11,1645.48,1660.4,1675.88,1691.95,1708.6,1725.86,1743.73,1762.22,1781.37,1801.15,1821.54 ,1842.75,1864.59,1887.12,1910.36,1934.34,1959.07,1984.53,2010.76,2037.79,2065.59,2094.21,2 123.63,2153.89,2184.99,2216.93,2249.75,2283.45,2318.04,2353.53,2389.94,2427.28,2465.57,250 4.8,2545.01,2586.19,2628.37,2671.54,2715.75]);
                    __motion_FrontWheel.addPropertyArray("y", [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);
                    __motion_FrontWheel.addPropertyArray("scaleX", _scalePH);
                    __motion_FrontWheel.addPropertyArray("scaleY", _scalePH);
                    __motion_FrontWheel.addPropertyArray("skewX", [0]);
                    __motion_FrontWheel.addPropertyArray("skewY", [0]);
                    __motion_FrontWheel.addPropertyArray("rotationConcat", [0,14.647,28.9537,42.9311,56.5793,69.9037,82.9043,95.5921,107.967,120.035,131.795,143.259 ,154.427,165.304,175.89,186.196,196.222,205.974,215.457,224.671,233.627,242.32,250.76,258. 953,266.899,274.604,282.068,289.306,296.309,303.091,309.649,315.993,322.123,328.045,333.76 3,339.284,344.607,349.738,354.682,359.446,364.028,368.435,372.671,376.743,380.651,384.399, 387.999,391.445,394.743,397.904,400.923,403.815,406.57,409.204,411.717,414.115,416.404,418 .577,420.651,422.621,424.498,426.287,427.983,429.596,431.133,432.593,433.987,435.309,436.5 71,437.773,438.92,440.018,441.071,442.081,443.058,443.996,444.907,445.796,446.658,447.509, 448.343,449.171,450,450.823,451.652,452.486,453.337,454.198,455.087,455.998,456.937,457.91 3,458.923,459.977,461.074,462.221,463.423,464.685,466.008,467.402,468.862,470.398,472.012, 473.707,475.496,477.373,479.343,481.418,483.591,485.879,488.277,490.791,493.425,496.18,499 .072,502.09,505.251,508.549,511.996,515.596,519.344,523.251,527.323,531.56,535.966,540.549 ,545.312,550.257,555.388,560.711,566.232,571.95,577.871,584.001,590.345,596.903,603.686,61 0.688,617.927,625.39,633.095,641.041,649.235,657.675,666.368,675.324,684.538,694.021,703.7 73,713.799,724.105,734.691,745.568,756.735,768.199,779.96,792.027,804.402,817.09,830.091,8 43.415,857.063,871.041,885.348,900]);
                    __motion_FrontWheel.addPropertyArray("cacheAsBitmap", [false]);
                    // Create an AnimatorFactory instance, which will manage;
                    // targets for its corresponding Motion.
                    var FrontWheel:AnimatorFactory = new AnimatorFactory(__motion_FrontWheel);
                    FrontWheel.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.
                    /// FrontWheel.addTarget(<instance name goes here>, 0);
                    FrontWheel.addTarget(frontWheelObj, 0);

  • Variable substitution in external XML

    I'm loading an external xml file using the Loader class, and
    then assigning the loaded content to a variable when the loading is
    complete, like this:
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    If I include in my xml file a value to be substituted, for
    example <image rotation={rotation_value}/>, the parsing of
    the xml fails when assigning to the mc_xml value.
    Is it possible to substitute values in externally loaded xml?
    alternatively, is there a way to simply SET the values,
    something like image.attribute("rotation")="180";
    thanks in advance

    Thanks, k
    I think all the code that's germane is in my first post, but
    here's a bit more detail. It turns out I was using URLLoader, sorry
    to confuse the issue. Your help is appreciated. The failure occurs
    on the line that reads "mc_xml = XML(x_loader.data);" and the error
    message is: "TypeError: Error #1090: XML parser failure: element is
    malformed."
    my code:
    var mc_xml:XML;
    var x_loader:URLLoader = new URLLoader();
    var x_url:String = "motion.xml";
    var x_req:URLRequest = new URLRequest(x_url);
    x_loader.addEventListener(Event.COMPLETE,x_loaded);
    x_loader.load(x_req);
    function x_loaded(e:Event) {
    var rotation_value:String = "-180";
    mc_xml = XML(x_loader.data);
    Here's the (simplified) external xml file. It's generated by
    a "Copy motion as ActionScript 3.0" and everything works fine
    before I try to substitute some variables in the xml. You can see
    the substitution in the penultimate line.
    <Motion duration="20" xmlns="fl.motion.*"
    xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
    <source>
    <Source frameRate="25" x="784.3" y="78.1" scaleX="1"
    scaleY="1" rotation="180" elementType="movie clip"
    instanceName="mc" symbolName="Symbol 2">
    <dimensions>
    <geom:Rectangle left="0" top="0" width="288"
    height="209"/>
    </dimensions>
    <transformationPoint>
    <geom:Point x="0.2586805555555556"
    y="0.3923444976076555"/>
    </transformationPoint>
    </Source>
    </source>
    <Keyframe index="0">
    <tweens>
    <SimpleEase ease="0"/>
    </tweens>
    </Keyframe>
    <Keyframe index="19" x="-709.8" y="3.9000000000000057"
    rotation={rotation_value} />
    </Motion>
    Thanks in advance for any insight you can provide

  • Company code split by using the Tool SLO

    Hello All,
    we are working a company code split project by using the Tool SLO(System landscape Optimization)
    in the current scenario, we have one company code , one sales org and 2 plants .we wants to split 2 company codes as per the plants .alos we need to create a sales org for the 2nd company code.
    i have following queastions .
    1.Documents created before split for one company code and sales org .after split is it possible to change the company code and sales org for the Documents ?
    2.in case of Complaints (Credit memo, Returns) when we do with refference to earlier Documents created by different company code .after split we need to create a return memo request (bu using different Company code and sales org)with refference to the earlier Document (created by Different company code and sales org) how it is possible ?
    3. the same above point can be for any refference Documents like Inquiry,Quatation,Contract  and sales order.
    if any of you have worked for this kind of project and Tool, please help me on this .
    Thanks
    Radhika

    Thanks for the reply.
    I'd never noticed that "Copy motion as ActionScript 3.0".  That was pretty sharp.  The only catch is...it doesn't look anything like what I'm used to.
    This is what I'm used to:
    myTween = new Tween(imageLoader,"alpha", Strong.easeOut, imageLoader.alpha, 1, 4, true);
    And this is what I've got:
    import fl.motion.Animator;
    var tween_xml:XML = <Motion duration="36" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
        <source>
            <Source frameRate="12" x="212.5" y="141" scaleX="1" scaleY="1" rotation="0" elementType="graphic" symbolName="Tween 1">
                <dimensions>
                    <geom:Rectangle left="-212.5" top="-141" width="425" height="282"/>
                </dimensions>
                <transformationPoint>
                    <geom:Point x="0.5" y="0.5"/>
                </transformationPoint>
            </Source>
        </source>
        <Keyframe index="0" tweenSnap="true" tweenSync="true">
            <color>
                <Color alphaMultiplier="0"/>
            </color>
            <tweens>
                <SimpleEase ease="0"/>
            </tweens>
        </Keyframe>
        <Keyframe index="35">
            <color>
                <Color/>
            </color>
        </Keyframe>
    </Motion>;
    var tween_animator:Animator = new Animator(tween_xml, tween);
    tween_animator.play();
    I guess I sort assumed that the code would be similiar, (making an '***' out of me and umption) It looks more like XML or MXML than AS3.
    Why so different?

  • Copy and Pasting Motion? Please help!

    Im quite new to flash. It's really, really annoying me at the minute.
    My situation: I've got 7 frames of animated motion that is exactly the way i want it. I want these 7 frames of motion to loop so it gets to around 300 frames. So rather than doing every frame manually (which takes ages) i went to copy and paste motion.
    So i highlight my 7 frames and click 'copy motion'. Then I try pasting them and i get the error mesage (in the attached picture) that nothing is selected. But i've clicked on the 8th frame, the place were i want the motion to begin, but still it says this error message.
    So then i insert a new frame on the 8th frame space and paste the motion over the top of the 8th frame, but it misses the first 2 frames of animation (therefore messing eveything up) out and the motion is also wrong on top of that!
    Im desperate here, all i want to do is something simple and i dont know how.

    Yeah i want to animate my keyframes.
    I know i can copy and past the keyframes, but thats not what i want because if i do that my character does not progress forward (or to the right of the screen in this instance). I want to copy and paste the motion so he goes forward  (to the right of the screen).
    I have the character and i want him to walk from left to right across the screen whilst moving his, arms, legs and head etc (the motion) in a certain way.
    Also i had already converted my layers to symbols. I will attach another picture to show you my character.

  • Motion Tweens in AS3

    I'm trying to make a screen object(digitB1_mc) move in one of two different directions, depending upon the current cicumstances.
    I drew the Motion Tween _B1_12 and saved it as a preset for the first direction.
    I drew the Motion Tween _B1_21 and saved it as a preset for the second direction.
    Then I tried to find AS3 code to grab one of these two from the presets and apply it to digitB1_mc. Could not find a way to do it.
    Then I copied _B1_12 to Actionscript 3.0 code (ie. clipboard) and pasted it into an Actionscript 3.0 function B1_12 and got:
    function B1_12() {
    import fl.motion.AnimatorFactory;
    import fl.motion.MotionBase;
    import fl.motion.Motion;
    import flash.filters.*;
    import flash.geom.Point;
    var __motion_digitB1_mc:MotionBase;
    if(__motion_digitB1_mc == null) {
        __motion_digitB1_mc = new Motion();
        __motion_digitB1_mc.duration = 11;
        // Call overrideTargetTransform to prevent the scale, skew,
        // or rotation values from being made relative to the target
        // object's original transform.
        // __motion_digitB1_mc.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_digitB1_mc.addPropertyArray("x", [0,7.4116,14.0277,19.6419,23.9742,26.6463,27.1809,25.0619,19.91,11.7411,1]);
        __motion_digitB1_mc.addPropertyArray("y", [0,-14.8969,-30.1606,-45.8179,-61.8789,-78.2953,-94.9161,-111.395,-127.195,-141.658,-154. 35]);
        __motion_digitB1_mc.addPropertyArray("scaleX", [1.000000]);
        __motion_digitB1_mc.addPropertyArray("scaleY", [1.000000]);
        __motion_digitB1_mc.addPropertyArray("skewX", [0]);
        __motion_digitB1_mc.addPropertyArray("skewY", [0]);
        __motion_digitB1_mc.addPropertyArray("rotationConcat", [0,36,72,108,144,180,216,252,288,324,360]);
        __motion_digitB1_mc.addPropertyArray("blendMode", ["normal"]);
        __motion_digitB1_mc.addPropertyArray("cacheAsBitmap", [false]);
        // Create an AnimatorFactory instance, which will manage
        // targets for its corresponding Motion.
        var __animFactory_digitB1_mc:AnimatorFactory = new AnimatorFactory(__motion_digitB1_mc);
        __animFactory_digitB1_mc.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_digitB1_mc.addTarget(<instance name goes here>, 0);
    But when I called this function it did nothing at all except increase my swf file size from 3.8 kb to 27.3 kb.
    Can anyone suggest a solution that would allow me to swap back and forth between two motions for an object.
    Thanks,

    The culprit is most likely the garbage collector. If you do
    not have any references to your tween object, it will eventually be
    destroyed by the garbage collector.
    From
    Adobe
    Flash Quick Start
    quote:
    Note: Consider variable scope when using the Tween class. If
    a tween is created in a function, it is important that the
    variable's scope exists beyond the function itself. If a tween is
    stored to a variable of local scope, ActionScript garbage
    collection removes the tween as the function completes, which will
    likely be before the tween has even begun.

  • Why won't Motion install?

    I have Lion on one drive and Snow Leopard on another. So I won't lose function as I grow to know Lion.
    Presumably, I could go from one boot drive to the other, and still work on projects from either OS.
    I want to install FCPX and Motion 5 on the Lion drive. I own both on the Snow Leopard drive.
    But the App Store only allowed me to load FCPX, then flags the download of Motion 5 as being "installed" and won't let me install it.
    What's the right way to do this without starting a fight between the two installs?

    I installed Final Cut Pro X and Motion 5 on a virgin install of Snow Leopard to make sure all was well. After a few days, I dragged them over to my usual Snow Leopard drive.
    They now live as "Final Cut Pro" and "Motion" (without version names) in a 'Final Cut Pro X' folder in my applications folder. I do this so I can continue to use Final Cut Pro 7.
    Just by dragging over, the App Store on my main machine considers them installed on my usual drive.
    You could copy Motion from your Snow Leopard drive to your Lion drive. It might work for you as it did for me.
    Alex4D

  • Motion 5 Not Launching Correctly

    Purchased, for the first time, FCPx, Compressor 4 and Motion 5 from the Mac App Store. Both FCPx and Compressor launches and works fine. Motion worked upon the first initial launch after installation. Every subsequent launch of Motion comes up with the menus. Project Browser sometimes, but not always, displays. Most options in the menu drop-downs (things like New... and Preferences) and buttons in the Project Browser (you have to leave the app and then return to it to have the Project Browser appear) do not work. Even the buttons located on the Splash Screen (Apple Menu...About Motion) do not work. I have deleted the user preferences: com.apple.motionapp.plist I have also uninstalled, re-downloaded and reinstalled Motion from the Mac App Store. Any assistance in getting this program working, will be greatly appreciated.
    No previous versions of Final Cut (anything). Updated to OSX 10.6.8. Machine info: Mac Pro 2,1 8-core 3GHz, 8GB RAM, 1900XT and 7300GT

    This issue has been resolved.
    It seems there was an issue with the System and not the Application or User space.  I tried to restore 10.6.7 (with M5, FCPX and C4) installed.  (I installed these apps prior to 10.6.8.)  This resulted in kernel panics after restores from different dates and OS numbers.
    Re-installed SL on a clean partition and updated to 10.6.8 with the Combo download.  Ran Software Update once. Restarted to verify the system was working properly and then used Migration Assistant to restore the Apps and Users from TM.  Everything in these spaces restored except for Motion.  (It was not in the Application Folder in TM but the Application Support and User prefs were.)  I copied Motion from the 10.6.7 version of the TM backup to the now clean and fully migrated OS.  Motion works now as expected.  I don't know what was going on with this but am happy to report this resolution.  (I really don't want to go digging through Console to find out what really was causing this.)

  • Edit Motion project as Motion template in FCP timeline?

    Hi,
    I'd like to know is it possible to turn basic Motion project into Motion template in Final Cut Pro timeline? If not possible I think this would be a great feature because it simply takes too much time to copy motion projects for example to 10 edits /library/motion... folder to have them accessible as templates. I know it wouldn't be possible to see preview videos this way but I wouldn't care. Motion templates are a great tool but this way a little bit too slow to use for simple text animations etc.

    In FCP, right-click the Motion project and choose open in editor. In Motion, choose save as template.

Maybe you are looking for

  • ITunes Graphics (Cover Flow)

    Hello. I have been having some problems with iTunes when using Cover Flow. [See here|http://i218.photobucket.com/albums/cc180/zonkit/coverflow.png]. As you can see from this image there is a big black line through the reflections and the text is bare

  • Fan is loud and won't stop making noise

    Help please

  • Technologies related to Sap MDM

    Hi folks I need a suggestion from an experienced guy. Right now am with Sap MDM technology since 9 months...earlier am in Java As i want to continue my carrer in SAP.and i feel just a plain MDM is not suffient..as i dont find any requirement on only

  • Photos NEVER in order of taking

    Sorry If this has been asked before but I would ask the question what is the deal with photos taken on the iphone not transfering to the computer in the order they are taken????? its totally nuts Are Apple ever going to fix this problem anytime soon

  • Transported Role Change and can't see workbook.

    I'm only guessing but I suspect this happened. In production we published two workbooks to our "FI Controlling" Role. Then we added a t-code to the role in development and transported the role to production. Now my workbooks are missing from the role