Menu

#3 maskMove rotated when it shouldn't be

open-fixed
nobody
None
5
2005-07-24
2005-06-10
No

overview: it appears that when a maskMove is used with
the rotate class, then the mask itself is rotated
before the rotate runs.

example: given a movieclip, mc and an inner movieclip
mc.inner. create a sequence and add a move to mc,
rotation to mc then maskmove mc.inner by following
these instructions:

1. create a new flash project.
2. create an instance called "mc".
3. inside mc, create another instance called "inner"
4. inside inner put a text field or something that
gives you a reference point on rotation.
5. paste the following code into frame 1:

import de.alex_uhlmann.animationpackage.*;
import de.alex_uhlmann.animationpackage.animation.*;
import de.alex_uhlmann.animationpackage.drawing.*;
import de.alex_uhlmann.animationpackage.utility.*;
import com.robertpenner.easing.*;

APCore.initialize();

var myListener:Object = new Object();
APCore.addListener(myListener);

var masterSequence:Sequence = new Sequence();

var tEffect:Move = new Move(mc, [0,0, 500,0]);
masterSequence.addChild(tEffect);
var tEffect:Rotation = new Rotation(mc, 90,2000);
masterSequence.addChild(tEffect);
var mask:MovieClip = mc.createEmptyMovieClip("mask",1);
var rect:Rectangle = new
Rectangle(mask,mc._width/2,mc._height/2,mc._width,mc._height);
rect.draw();
var tEffect:MaskMoveFX = new
MaskMoveFX(mc.inner,rect.movieclip,"BR");
masterSequence.addChild(tEffect);

masterSequence.animationStyle(8000, Circ.easeInOut);
masterSequence.animate(0, 100);

6. compile and run the program

results: when the mask runs, it is rotated and does not
mask out mc.inner from top left to bottom right.

expected results: the mask should be rotated along with
mc and then the maskmove should animate from the top
left to the bottom right of the rotated mc.

7. remove the rotation child and rerun

results: the maskmove animates correctly

notes: it appears that only effects "TL", "TR", "BL"
and "BR" are not working as anticipated while "L", "R",
"T" and "B" are working as anticipated

Discussion

  • Alex Uhlmann

    Alex Uhlmann - 2005-07-24
    • status: open --> open-fixed
     
  • Alex Uhlmann

    Alex Uhlmann - 2005-07-24

    Logged In: YES
    user_id=1011543

    Fixed internally and it'll ship with AP 1.07 to be released
    soon.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.