-
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?
-
Flashkit Veteran
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
-
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?
-
Flashkit Veteran
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
-
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?
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|