A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How did they do this - sofake.com

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Posts
    280

    How did they do this - sofake.com

    http://www.sofake.com/

    can someone explain to me the basic idea how you would construct something like this?

  2. #2
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    It is really quite simple each of those movies are just swf's loaded into the movie that is previous to the respective movie, basically they load a movie, which had a movie loaded into it and so on
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Posts
    280
    Ok so when the first swf plays there are some actions that loads the rest into MC in the first swf? and when you click a button its just a rescales them?

  4. #4
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    so basically the actions for that would be really simple once you thing about it, all they would have to do is change the _xscale and _yscale of the main movie and that would change the size of the whole thing, hence the 'zooming' affect
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  5. #5
    Senior Member
    Join Date
    Aug 2001
    Posts
    280
    hey thanks

    but wouldnt making the
    mc_blank._yscale = 600;
    mc_blank._xscale = 600;

    or whatever just "jump" to the new size and not make a actualy tweening effect?

  6. #6
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    joejoe - yes i agree that a simple scale manipulation is essentially all that is needed. however - as far as i can see there is more complexity to it than that.its the logic that has me perplexed - i can simulate the effect if i press the buttons individually - but what about a zoom in over a number of movieClips? and what about deciding if it should zoom in or out? any ideas?

    nigel

    a simple zoom using x and y scale could look like this

    function zoom(obj,inc,cond) {
    obj._xscale+=inc;
    obj._yscale+=inc;
    if((inc>0 && obj._xscale>=cond) ||( inc<0 && obj._xscale<cond)) {
    clearInterval(zoomInt);
    }
    updateAfterEvent();
    }
    zoomInt = setInterval(zoom,10,mc1,3,100);

    mc1 is the name of the movieClip to be "zoomed"

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