Center MovieClip Question
Hello everyone,
I have a movieclip that i'm trying to center on stage and that's working but I'd like to add some easing to it.
Can someone pleaseeee check out my attached file and help?
Attached Files
Senior Member
You mean that the mc in moving into the film?
Mattias Gordon
illustrator/ animator
when the movieclip centers itself after resizing the stage, i'd like it to ease to the center. right now it just snaps to center.
Senior Member
Something like this? I changed the code below and the square moves into the scene.
----------
// initiate postitions and scaling values for objects
fluid._y = -40;
fluid._x = Stage.height/2;
fluid.onEnterFrame = function(){
if (this._y==70){
this._y=70;
}else{
this._y+=1;
}
}
-----------
Mattias Gordon
illustrator/ animator
i mean when you grab the edge of the flash movie and scale it, the box should move back to the center of the stage, but ease to the center not snap. like a delayed reaction before the move.
Do asearch in your flash help file for "Tween class" this will do what you are asking.
what i'm looking for is the same effect on gskinner.com.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width