Creating a motion tween on x then y axis

Hello! I am trying to figure out how to make my movie clip move from left to right then down with a motion tween script. I have the script written to move left to right on the x axis, but can't figure out how to add the script to have it then move down on the y axis.
Can anyone assist me?
Thank you!
import fl.transitions.Tween;
import fl.transitions.easing.*;
//teaching_mc animation - animate left to right.
var teachingTween:Tween = new Tween(teaching_mc, "x", Regular.easeInOut, 317.3, 785.3, 2, true);

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
//teaching_mc animation - animate left to right.
var teachingTween:Tween = new Tween(teaching_mc, "x", Regular.easeInOut, 317.3, 785.3, 2, true);
teachingTween.addEventListener(TweenEvent.MOTION_FINISH, startYTween);
function startYTween(evt:TweenEvent):void {
      //  your y tween

Similar Messages

  • How do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that,

    how do I create 2 motion tweens for one line of text?  the text needs to "fly-in-right", I can do that, then it needs to "fly-out-bottom" again, I can do that, but not on the same line of text...any ideas...

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • Why can't I create a motion tween

    I've been following the tutorials given after downloading the program. However, on step " Fine-tune the Characters Movement", it tells me to create a motion tween. But the option to create one isn't there. Any advice would be welcomed.

    Hi,
    Right-Click on the object to invoke context menu,and you will find "create motion tween" option.If the object in context is not a symbol it will pop up a dialog to confirm if you want the object to be converted to symbol,press Ok as motion tweens are applicable for symbol and text objects only.You will see , as the motion tween is created play head in the timeline jumps to 24th frame there by adding the tween.In the destination frame ,make changes to the object like translate ,rotate etc and press enter to see the preview of the tween.
    Thanks,
    Sangeeta

  • How to create a motion tween?? :S

    Hii
    I know it is very easy. Right click>create motion tween>drag to where I would like the text/object to move
    BUT
    Sometimes it doesn't seem to work when i drag the text. It will work the first time and for the second text on the frame it won't work. I don't why .....any help???
    Can someone tell me the requirements of a motion tween when it comes to text on a single layer  in the same frame.
    Thanks

    You can only tween one object in a layer, so if you are trying to tween more than one it will break the tween.  Keep your different textfields on different layers.

  • Creating a motion tween with less frames on the timeline

    Hi,
    By default when I create a new motion tween, it automatically comprises all frames on the layer.  I want only a 72-frame tween, not a 350-frame tween.
    Any idea?
    Ronald

    I did know about suggestion #1 (I just thought it was too much work, especially
    since I had to move the 72-frame tween back to the end, on frame 350).
    As for suggestion #2, I learned that I could split a tween.  Interesting!
    Thanks!
    Ronald

  • Can't properly create motion tweens between two keyframes in flash CS4

    I'm trying to create a flash animation of a wing flapping using three keyframes. The first keyframe is at frame 1. I then created a second keyframe at frame 5 by pressing F6, and then I created another keyframe at frame 10 by pressing F6. At frame 5, I rotated the wing so that it is going up. Frame 10 is the same as frame 1.
    frame 1:
    frame 5: frame 10:
    I right clicked on a frame between frames 5 and 10 and then clicked the first option, "Create Motion Tween"; I then performed the same action on a frame between frames 1 and 5. When I preview or test the movie, there is no transition between the frames. From frame 1 to 5, there is supposed to be a transition of the wing flapping up. From frame 5 to 10, there is supposed to be a transition of the wing flapping downwards to its initial position. Instead, when I test the movie, the wing remains still until frame 5 and instantly goes to its "wing up state" and when it gets to frame 10, instantly goes to its "wing down state".
    Here is what the timeline looks like after I've made the changes mentioned above:
    I'm using Flash CS4 to make the animation but the tutorial I'm following is using Flash CS3. I know I can use other methods to create the motion tween but I want to know why the method I'm using isn't working.

    I did switch to classic tweening. I pressed F6 to make a keyframe at frames 5 and 10. I then right clicked on a frame between frames 1 and 5 and then clicked
    "create CLASSIC tween"; did the same thing between frames 5 and 10. I'm not seeing the transitional frames between frames 1 and 5 that the tutorial showed.

  • Poor quality motion tween with png image, tried "Trace Bitmap", but then it looks like a newspaper

    Greetings all,
    I've been a software developer for many years, but am not very savy in the design elements.  So, much of what I'm going to say will probably sound "newbie", so please forgive me in advance.
    So, I'm trying to get a transparent image to fly in from the side.  So, I *thought* I was doing the correct thing by moving the "symbol" off of the visible portion of the stage, and creating a motion tween to move it onto the stage.  The motion works, but the quality of the image in general (and the text in specific) looks pixelated.
    Thus, I did a little bit of snooping, and everyone said that you should start with a bitmap.  So I saved the image from Photoshop into .bmp format, and was able to set the properties to "allow smoothing" and with lossless compression.  So far, so good.  Now, as I expected, the transparency is no longer there... 
    So here's the question:  how can I make this image retain its quality, still have transparency, and a motion tween?
    It seems like this is some set of characteristics that don't play well together, even though I see this type of thing online ALL the time.
    I tried "Trace Bitmap" to convert to a raster image, and tried to follow some suggestions online, but when I do "Trace Bitmap", it ends up looking like it has a bunch of grayish dots on the image... definitely NOT what I was expecting.
    Thanks for your help!
    JPB

    Go back to using the png, and set the smoothing allowance. That should take care of the quality.  In Flash, a "bitmap" will often refer to any type of image element... .bmp's are probably dinosaurs (as in extinct) where Flash usage is concerned.

  • Motion Tweening Components - Will Not Work

    I've been using Flash for a few weeks and have scoured and
    scoured, trying to solve what I'm sure will turn out to be a small
    issue I'm over looking.
    Basically, I have buttons, scrollpanes, and FLVPlayer
    components on my stage, in separate layers that work fine when they
    are on the keyframe that I add them to initially. However, I want
    to animate these components moving in and out of the stage (see
    www.rossmnewton.com for an example). So I make new keyframes before
    and after the keyframe I added the components on, copy the
    components, move to the other keyframe, paste in place, move it,
    then create a motion tween, and the animation works fine. The
    problem is, no matter what I do though, my buttons, scrollpanes,
    and any other component, will fail to work as soon as I apply a
    motion tween to them. Instantly, they stop working. And I can't
    figure out how to animate these types of components without
    breaking them.
    What am I messing up here? Can you not motion tween buttons
    moving around? Or an FLV player?
    And I notice that it creates "Tween 1", "Tween 2", etc.,
    objects of type Graphic in the Library.

    Hi,
    The Sample Calendar component download has been fixed for Update 7.
    http://developer.sun.com/prodtech/javatools/jscreator/reference/codesamples/samplecomps/calendar.html
    Also, the source is available and also is valid.
    Please read the brief instructions in NOTES.txt
    To build the source, you'll need to use ant
    http://ant.apache.org
    Then , in the build.xml file included in the zip, correct
    the creator.home property setting to point to the installation directory of Creator.
    hth
    John

  • Converted Symbol can't be Pasted into Keyframe: Motion Tweening

    I have two files one is called tween_start.fla and the other is called tween_end.fla I am trying to create a motion tween where the animation begins at tween_start.fla and ends at tween_end.fla Each file consists of 7 shapes (it's a tangram if you're curious). At frame 10 of the tween_start.fla timeline I right-click on each layer and do Insert Blank Keyframe. Then I go to tween_end.fla click on a shape and do Modify>Convert to Symbol. Then I go back to the timeline for tween_start.fla, right-click on frame 10 and do Paste Frames or Insert Keyframe. If I do Paste Frames with all of the symbols I've created in tween_end.fla then the shapes end up stacked on top of each other. If I do Insert Keyframe it doesn't insert the symbol I've just created, instead it just keeps the same shapes that were at the first frame of tweet_start.fla. So how do I insert the symbols from tween_end.fla into the tenth frame of tweet_start.fla and then execute a motion tween between the frames?

    I have created the same number of keyframes and kept the layers the same as you suggested and it still doesn't work. What I don't understand about this problem is, how does the timeline know that what you are pasting into the keyframe is the new symbol that you have just created? There is no command that says Copy Symbol and when you paste into the keyframes you can only choose Insert Frame, Insert Keyframe, or Paste Frames so how do you get it to paste the symbol you just made? Thanks for your help anyway.

  • Motion tween easing and timeline

    just using flash cs4 for the first time (after flash 8). It seems to be the one program where theres a lot of new features since that version (yay new features!) That I dont know how to use (boo!)
    So far I feel like someone at adobe made the mistake of letting the programmers design the usibility, but then flash has always been a bit unintuitive:
    so -
    I create a motion tween but by default it runs to the end of the animation, which makes it difficult to design a custom ease. So I add a blank keyframe to make it only 20 frames long.  Get my easing sorted, but now I want to set it so that it so that it remains visible on the stage for the rest of the animation.  I cant insert a key frame, and if I remove the blank keyframe, the bloody easing which I've just spent an hour getting my head around, is stretched out to the end of the animation.  And presumably if I insert more frames at any point the easing will also get mucked up.
    so is there a way to either convert a blank keyframe to an old fashined timeline keyframe after a motion tween OR
    fix the easing so that it applies between the original points?
    Oh yeah, and ctrl-y instead of ctrl-shift-z. WTF?

    I took a closer look at the this movie. While it does work just fine for me, there are a couple of areas where it can be optimized. This movie uses just one image. The stage size for this movie is 680 X 510 pixels. The image is 2816 X 2112 pixels at 32 bits. There is no advantage to using an image of this size. There are many disadvantages. You want to reduce the size of this image before it is imported into the movie. This alone will dramatically improve the performance of the animation.
    There is also no need for this movie's frame rate to be more than 30 fps, 15 will probably work just fine with the reduced image size.
    I'm sorry that I missed the size of the image as a problem initially, but then the movie plays fine for me.
    Yes, you can export any sort of video that you like.

  • Motion tween question in cs5

    Hi,
    I'm trying to create an animated movie clip button in AS2 using CS5. The button should fade in/out as the mouse moves over and away from the button.
    Lets say my frame rate is 30 FPS. When  I insert a motion tween on frame 1, the timeline is automatically extended by 30 frames. I then select frame 30, select the button and change the alpha value to 30%. When I drag the head marker back and forth, the button fades in and out smoothly exactly as I wanted.
    But I want to create a motion tween between frame 1 and 10. So I select frame 10, insert a keyframe, select frame 5 and insert a motion tween. Then I select frame 10, select the button and change the alpha value to 30% like before. When I drag the head marker, there is no fade in/out. When the head marker is exactly over frame 10, the button is faded, but when it is on any frame between 1 and 9, it is normal.
    How do I fix this problem?
    thanks for your help
    Rashinkar

    If I'm following correctly, you are trying to tween between two keyframes instead of within a single tween span. If you want to create a tween between frames 1 and 10, insert a keyframe on frame 1, and then insert frames to frame 10 instead of creating a keyframe (press F5 on frame 10). Then right-click one of the frames or the object and choose Create Motion Tween. Then move the playhead to frame 10 and change the alpha.
    Hope that helps.

  • NOOB: Moving a keyframe within a motion tween span

    I have created a motion tween to fade in a symbol on the stage.  I have set a there is a diamond keyframe marker at the point where the alpha of the symbol goes to 100%.  I want to be able to drag that marker to a later point on the motion tween span (not sure if I have my terminology right here) but I find that I cannot -- I have to delete the keyframe and recreate it at the point where I want it.  Isn't there an easier way to do this?

    Just answered my own question...  need to ctrl-click on the frame and release.  I can then click and drag the frame where I want it.

  • Images shifty on motion tween

    When I try to simulate "the ken burns effect" by creating a
    motion tween on an image and moving it slightly or making it
    larger/smaller, stair-stepping occurs and the image loses it's
    quality. This seems like it should be an easy fix, but I can't
    figure it out. I have manipulated frame rate, image size/quality,
    converted image to graphic and movie clip, and have reduced the
    amount of moving I do within frame. Nothing seems to work. When I
    view the movie, the image always looks grainy and I lose the edges
    in the image. Does someone know what I'm doing wrong?
    Thanks.

    Yes, you could have a function coded wherever it would be best executed and you could call that function at the end of the tween.  If the tween is inside a movieclip, then you can prepend the function call with MovieClip(parent).  or MovieClip(root).  depending how deep you are into children...
    MovieClip(parent).callFunction();
    You could also assign a custom event listener to the movieclip that the parent listens for.  At the end of the tween in the mc you could have...
    dispatchEvent(new Event("imDone"));
    In your parent you assign a listener for the event to the mc.
    youTweeningMC. addEventListener("imDone", eventHandler);
    function eventHandler(event:Event):void {
       // whatever your intentions are

  • Motion tweens in animations for handsets

    I have an animation that's headed for mobile handsets and
    Flash Lite. In it are motion tweens. I've been advised that a tween
    will slow down the playback on a handset. Is the solution to
    convert each of the tweens to individual frames?
    Thanks

    We see this issue weekly if not daily - make sure the text
    fields are set to Static (default is
    Dynamic and dynamic text needs the font outlines embedded to
    render in the player). If you must have
    Dynamic fonts then embed the font outlines.
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com
    DocJollyWood wrote:
    > Let me start by saying I have just returned to Flash
    after an extended (6 year)
    > hiatus from the program. The last time I used Flash was
    Flash 5.0. I've
    > probably forgotten most everything I did know (which
    admittedly wasn't all that
    > much), but the program is so different now, jumping from
    5 to 9 would probably
    > be stressful even if I were better with the tool. Now,
    anyway with that
    > disclaimer out of the way I have (what should be a
    simple chore) driving me
    > bonkers.
    >
    > I created several lines of text and converted the text
    to symbols. I then
    > created "funky" motion tweens for the text featuring
    alpha and tint changes,
    > 360 rotations and flips, etc. etc. When I am in Flash
    and do a Control > Play,
    > the movie displays EXACTLY as I had envisioned with all
    bells and whistles.
    > The problem is after I export the movie to SWF and play
    it in Flash Player it's
    > not the same movie that just played back moments before.
    The exported file
    > only contains the motion tweens that involve
    no-resizing, spinning, or alpha
    > changes. The symbols with those features merely only
    display the last frame of
    > the animation. Furthermore the fonts and stylings I used
    are missing.
    >
    > Please help.
    >

  • Can't get motion Tween to work - just upgraded from a previous version to CS4

    I am attempting to create a motion tween between two keyframes.  The image is the same...the first keyframe has the image set to an alpha of 0 and the second keyframe some 20 frames down the timeline is set to an alpha of 100%.  The keyframes are on the same layer.  The image has been transformed to a symbol.  Yet when I double click between the two keyframes and create the motion tween so the image will fade from 0 to full view at 100% nothing happens.  I don't see the familiar arrow that normally indicates a motion tween between the two keyframes.  I've created this transformation a thousand times before but don't understand what is different in CS4 that isn't creating the tween.  When I double click on a frame in between the two keyframes it indicates I can remove motion tween so, it makes me believe the motion tweening has been set but, it isn't.
    I am quite frustrated and don't understand if I haven't set something in the preferences so the tweening will work or just what is going on.
    Help!

    And here's the article that was written specifically to update your skills with all the changes between the earlier tweening and new tweens in CS4:
    http://www.adobe.com/devnet/flash/articles/motion_migration_guide.html

Maybe you are looking for