Skip navigation
pandatte
Currently Being Moderated

Why arent my motion tweens working?

Nov 23, 2012 7:11 PM

Tags: #transparent #flash #effect #motion #tween #alpha #2004

I am trying to make a flash clickable movie, but my two motion tweens do not work. One of them is a fading tween, the first tween i set the alpha to 0, on frame 15 I set the alpha to 100. It works when I click Play but not when I Test Movie. It just stops on the alpha 0 frame. The second motion tween is a left to right text. It is supposed to be on the left side at first, and then slides to the right. It is the same, clicking play works but text movie doesn't, it just stops on the frame where the text is still on the left.

 

I use flash 2004

 
Replies
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 23, 2012 9:38 PM   in reply to pandatte

    attach a screen shot of your main timeline.

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 24, 2012 11:48 PM   in reply to pandatte

    you probably have an error in your code or a stop() on one of your frames.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 25, 2012 2:26 PM   in reply to pandatte

    You used the same frame label name on multiple layers. That will get you confused in general and could cause a code error if you reference it. You should always use unique frame labels. Think of them like naming files in the same folder to the same name. The OS will stop you. Flash won't (just incase you only use them for human reasons) but code will error.

     

    If you're getting any code errors they will appear in your console output with the frame and line number they occured on. Pay attention to those. Otherwise it's like kglad said, you put a stop(); in there.

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 25, 2012 9:37 PM   in reply to pandatte

    and, one more thing, never start a frame label (or any other non-numeric object) with a number.

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Nov 30, 2012 6:26 AM   in reply to pandatte

    it doesn't make any sense to have different labels for the same frame number on different layers.  layers don't even exist in your swf.

     

    so, whatever you're trying to accomplish by using labels on the same frame of different layers isn't going to work.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 30, 2012 9:40 AM   in reply to pandatte

    Frame labels are confusing you,  you should just remove all of them. Your document is small enough to just use frame numbers. Notice how frame numbers are the same no matter what layer you're on? That's how frame labels work. You can give a single frame, say frame #15, 19 different layers with 19 different frame labels but all 19 labels only do the same thing, point to frame #15.

     

    Try coding your buttons to use frame numbers before you even touch the frame labels. If that works for you, then remove all those useless frame labels. Labels help if you change your timeline a lot by adding and removing frames. Otherwise they're just confusing you.

     

    To go to a specific frame number, put your playhead on that frame, check what frame number it is and use code like so:

    gotoAndPlay(5); // play frame #5

     

    If on frame #5 you have a script with stop(); in it then that will halt the playhead, so don't put one there unless you need to halt on that frame. If you need to sometimes halt on that frame and other times not, remove the stop(); and use the correct command to stop or play on that frame.

     

    e.g. Goto frame 5 and Stop (no stop(); script needed):

     

    gotoAndStop(5);

     

    e.g. Goto frame 5 and Play:

     

    gotoAndPlay(5);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points