A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: Tweening in Tweening

  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    28

    Tweening in Tweening

    I would like to create a movie clip that has animation that is also tweened.
    I tried creating a tweened movie clip, saving it in the library and later tried creating a tweening on layer 1. Unfortunately I could not get it to work correctly.

    I want to have a
    1. large red circle
    2. that has a small blue circle at the top.
    3. the blue circle tweens on the outside of the red circle, between the 10 O’clock and 2 O’clock mark and loops back and forth.i.e 10-11-12-1-2-1-12-11-10.
    4. This animation “test_mvi” is than saved as a movie clip in the library.
    5. I create a path that test_mvi follows

    So what I have is a red ball with a blue ball rolling on the top all this follows a path.

    I hope I have made myself clear.
    Last edited by star1210; 02-21-2006 at 11:58 AM.

  2. #2
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Heres a fla file of what I think your talking about. Instead of using a tween I use a motion path to have the blue ball go around the red ball. and I just reserved the animation so that it flows. And then I made it a movieclip in the library so that you can use it anytime. Just drag it onto the stage and the animation will work.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    28
    Thanks Walsher
    I can't wait untill I get to level of the power user like you.
    Right now I am barely walking.

    The sample you sent me is exactly what I am looking for.
    I tried replicating it
    It works, however, in my library I see a bunch of graphics of the small circle called "tween". How did you manage to do it with just one object in your library ?

    What I did was
    1. create a red circle in layer 1 and converted it to a movie object "circle_mvi
    2. edited the "circle_mvi"
    3. added a new layer and created a small blue ball
    4. created a guide layer and drew a path
    5. created key frames and moved the small circle to the end of the path.
    6. created a motion tween between the keyframes.

    OK ! so what am I doing that is giving me all these extra object in my library ?

  4. #4
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Is the small blue ball inside of circle_mvi?

  5. #5
    Registered User
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    28
    Walsher
    the small circle is not inside the large circle.

    Here is my file, sorry the colours are different, but it is the same concept.

    Also in the next step, I would like the small circle to be ahead of large circle this is based on the direction of the path.
    i.e. If the path is going to the top of the screen than the small circle is above the large circle. If the path is going down than the small circle is below the large circle. I have orient to path checked on but it did not work.
    Attached Files Attached Files

  6. #6
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    What version of Flash are you use'n?

  7. #7
    Registered User
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    28
    Walsher
    I was using MX but downloaded the trial version of 8, because I assumed that, that was what you were using when I could't open your file.

    Anyway, here is a new version saved as MX 2004

    Thanks
    Mal.
    Attached Files Attached Files

  8. #8
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Awesome ya I'm using 2004 Pro at the moment. I'll be getting 8 in the near future.

  9. #9
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Okay, do you mean something on the lines of this.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    28
    I don’t understand… This file is almost the same as the one I sent you.
    With the one difference being that the small circle now rests on the large circle.

    The two things that I would like to know is
    1. How did you avoid having those extra objects (tween3-6) in the library in your example ?
    2. How do you set up the main motion tween so that the object is oriented to the direction of the path. i.e small circle is ahead of the large circle.

    Thanks in advance for all your help.

  11. #11
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Star,

    1. Those extra objects are on there because they are graphics. I guessing before you made the movie clip you had made them into graphics. Hitting F8 and selecting graphics.

    2. With that all I did was copy the green circle and put it into a new layer above the motion guide. Then I added frames to where the green circle would be over the red one.

    Hope that explains it for ya.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center