Dear jorge,
my image viewer have 5 button, [zoom in] [zoom out] [reset to original position] [zoom 4x] [zoom 8x].
actually i'm doing a medical image viewer. so its need a function like microscope.. zoom 4 time & 8 times.
on the keyframe, here is my zoom function.
//zoom
zoom = function( action, type, soul, factor){
if(action == "start"){
if(type == "plus"){
this[soul].onEnterFrame = function(){
with(this){
_xscale += factor;
_yscale += factor;
}
}
}
if(type == "minus"){
this[soul].onEnterFrame = function(){
if(this._xscale>101){
with(this){
_xscale += factor;
_yscale += factor;
}
}
}
}
}else{
delete this[soul].onEnterFrame;
}
}
for my [zoom in]
//zoom in
on (press) {
zoom("start", "plus", "image_mc", 5);
}
on (release) {
btn4x.enabled = false,
mc_4x._alpha = 25;
btn8x.enabled = false,
mc_8x._alpha = 25;
zoom("stop", null, "image_mc", null);
tip("");
}
on (rollOver) {
tip("Zoom in");
}
on (rollOut) {
tip("");
}
for my [zoom 8x]
//zoom 8x
on (press) {
zoom("start", "plus", "image_mc", 100);
}
on (release) {
btn8x.enabled = false,
mc_8x._alpha = 25;
btn4x.enabled = false,
mc_4x._alpha = 25;
zoom("stop", null, "image_mc", null);
tip("");
}
on (rollOver) {
tip("8x");
}
on (rollOut) {
tip("");
}
hopefully i giv u a right info... plz advise me...
thank you in advance....