dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Center MovieClip Question

  1. #1
    Senior Member
    Join Date
    May 2003
    Posts
    160

    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 Attached Files

  2. #2
    Senior Member gordonart's Avatar
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    267
    You mean that the mc in moving into the film?
    Mattias Gordon
    illustrator/ animator

  3. #3
    Senior Member
    Join Date
    May 2003
    Posts
    160
    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.

  4. #4
    Senior Member gordonart's Avatar
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    267
    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

  5. #5
    Senior Member
    Join Date
    May 2003
    Posts
    160
    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.

  6. #6
    Island Boy
    Join Date
    Apr 2006
    Posts
    655
    Do asearch in your flash help file for "Tween class" this will do what you are asking.

  7. #7
    Senior Member
    Join Date
    May 2003
    Posts
    160
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center