Results 1 to 7 of 7

Thread: Centering a movieclip with an animation on window resize

  1. #1
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Centering a movieclip with an animation on window resize

    Hey Guys in a newbie on this site.. but not to flash however i just want to know how the hell this is done..
    I know how to keep a movie clip centered to a full browser window flash site but how do they do those cool animations when you resize the window..

    like this
    http://www.triworks.net/triworks2008/index.php


    please help !! its bugging me

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Resize which page? I didn't see anything spectacular as far as special animations. Basic tweens, and rollOver stuff, and very nice artwork
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Apr 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    Resize which page? I didn't see anything spectacular as far as special animations. Basic tweens, and rollOver stuff, and very nice artwork
    oh sorry man... like on the index splash page there... before you hit enter.. if you resize that page.. it will kinda just tween to the center of the stage.. know what i mean..

    http://www.triworks.net/triworks2008/index.php

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Ahh.. I gotcha.

    You want to check into ScaleMode.

    you can see this thread where I have given a useable example.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Jan 2007
    Location
    Charlotte, NC
    Posts
    82
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yeah this isn't too difficult to do if you know about full browser flash. Just instead of having this:
    Code:
    function setMenu() {
            mymc._y = Stage.height-20;
    	mymc._x = Stage.width/2;
    }
    stageListener.onResize = function () {
    	setMenu();
    }
    you would have this:
    Code:
    mymc._y = Stage.height-20;
    mymc._x = Stage.width/2;
    
    function reset() {
    	import mx.transitions.Tween;
    	import mx.transitions.easing.*;
    	var nX:Tween = new Tween(mymc, "_x", Strong.easeOut, mymc._x, Stage.width/2, .3, true);
    	var nY:Tween = new Tween(mymc, "_y", Strong.easeOut, mymc._y, Stage.height-20, .3, true);
    }
    
    stageListener.onResize = function () {
    	reset();
    }
    I have used standard Flash actionscript animation. You can read more about that if you google the transitions and easing class.

  6. #6
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi Blizzard!

    Great Thread.
    Last edited by Hu4ley; 06-19-2007 at 09:19 AM.

  7. #7
    Join Date
    Jan 2007
    Location
    Bournemouth, England
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    wow, what a sneaky attempt to boost google rankings. I could never have guessed if it wasn't for my 70 years of detective work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •