http://www.twinphotographie.com/
The portfolio found on this page is very attractive to me as I have mnay photogrpahs with different crops.
I would like to be able to create a window that would shift to adjust to my pictures size. Can anyone point me to a thread or a tutorial regarding this or to explain the concept a little? I could not find it in search.
Thanks
Andrew
this is my attempt at trying this but there should be a more efficient way of doing it don’t you think?
I have an example of this, I even wrote a detailed description of how this works back at were-here (back in the day)
anywho, this is what Ive done as an example in the past:
http://www.umbc.edu/interactive/fla/scaler.swf
http://www.umbc.edu/interactive/fla/scaler.fla
coolio thanks senocular i knew there was a more efficient way!
hey senocular… I was trying to break down how the formula on the movie clip worked and I’m confused…
onClipEvent(load){
easeSpeed = 5; // the higher, the slower
target_xscale = target_yscale = 100;
onClipEvent(enterFrame){
_xscale += (target_xscale - _xscale)/easeSpeed;
_yscale += (target_yscale - _yscale)/easeSpeed;
}
the part i’m confused about is the expression
_xscale += (target_xscale - _xscale)/easeSpeed;
Above you have stated that _xscale is equal to 100
in the below expression you open _xscale up to be a new value but the calculation includes what x is.
xscale =( xscale - xscale ) / easespeed + xscale
thats what i see.
to further break down what i see it is
xscale = (100 - 100) /5 +100 or 100
OK OK i just reread what I typed and this makes sense to me after typing it out because you need to maintain the proportion of xscale every (enterframe).
But I’m still wondering how the ease is occuring.
also why wouldn’t you just make the
xscale = (100 - 100) /5 +100 or 100
xscale is = to xscale
Senocular,
I´ve downloaded your scaler file and took a look at the code.
i´m trying to change the code to make it change the position instead of scale. How do I do it?
Thanks