Zoom con scroll en director
Hola!
Estoy haciendo un cd interactivo y quiero saber si puedo incluir un zoom que funcione con el scroll del mouse; que ademas tenga un tope en el tamaño mínimo y máximo. Y en el tema de zoom tengo este script para otro distinto, el problema es q los formatos de las fotos varían, así q llega un punto en q se deforma, son demasiadas así q no podría poner el código a cada una, ¿q puedo hacer?
on mouseWithin me
if the width of sprite 5 > 124 then set the width of sprite 5 to the width of sprite 5 / 1.2
if the height of sprite 5 > 78 then set the height of sprite 5 to the height of sprite 5 / 1.2
cursor 303 -- lupa disminuir
on mouseWithin me set the blend of sprite 32 to 40 if the width of sprite 5 > 124 then set the width of sprite 5 to the width of sprite 5 / 1.2 if the height of sprite 5 > 78 then set the height of sprite 5 to the height of sprite 5 / 1.2
end
Estoy haciendo un cd interactivo y quiero saber si puedo incluir un zoom que funcione con el scroll del mouse; que ademas tenga un tope en el tamaño mínimo y máximo. Y en el tema de zoom tengo este script para otro distinto, el problema es q los formatos de las fotos varían, así q llega un punto en q se deforma, son demasiadas así q no podría poner el código a cada una, ¿q puedo hacer?
on mouseWithin me
if the width of sprite 5 > 124 then set the width of sprite 5 to the width of sprite 5 / 1.2
if the height of sprite 5 > 78 then set the height of sprite 5 to the height of sprite 5 / 1.2
cursor 303 -- lupa disminuir
on mouseWithin me set the blend of sprite 32 to 40 if the width of sprite 5 > 124 then set the width of sprite 5 to the width of sprite 5 / 1.2 if the height of sprite 5 > 78 then set the height of sprite 5 to the height of sprite 5 / 1.2
end
1 Respuesta
Respuesta de 67jc
1