A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [CS3] Animated Mask cause MC to play twice

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    14

    [CS3] Animated Mask cause MC to play twice

    For example. I have a movieclip with a ten frames long shape tween. Keyframe 10 has a stop() action. This movieclip is placed on frame 1-10 of the stage. On stage and on a layer above, I create another 10 frames long shape tween. Again, keyframe 10 has a stop(). I then turn this layer to a mask for the layer with the movieclip.

    When I test the movie, the movieclip shape tween will not stop at frame 10 but instead play an additional time. I don’t understand why. If I turn off the mask function, it will stop as expected. Also, if the last keyframe of the mask is converted into an ordinary frame (thus destroying the shape tween), the movieclip shape tween will stop as expected.

    I can work around this but I like to understand why this happen.

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    can u post an example .fla?
    Evolve Designs Interactive Media
    the natural selection

  3. #3

  4. #4
    Junior Member
    Join Date
    Oct 2007
    Posts
    14
    Apparently a keyframe in the mask layer will always cause a masked movieclip to start over from frame 1.

    Trying to learn Flash's authoring tool drives me nuts...

  5. #5
    Junior Member
    Join Date
    Oct 2007
    Posts
    14
    And only a few minutes later I discover another quirk - when I copy and paste frames, shape hints are somehow left behind so that the once tidy shape tween turns into mess.

  6. #6
    Junior Member
    Join Date
    Oct 2007
    Posts
    14
    I then converted the animated mask to a movieclip and set it to mask the original movieclip with code instead, i.e., shapetween_mc.setMask(mask_mc)

    Now everything works like it should so the problem is caused by a peculiarity in authoring tool created masks only.

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