View Full Version : dynamic image resizing
jinos
June 21st, 2003, 03:20 AM
hi, could anyone out there, how to acheive this following effect :
i have 3 images properly aligned in a 100 width 200 width area. i need one image to enlargeded 200 percent when i rollOver and at the same time dynamically resize the other two, maybe 50% of the original size, and still properly fit in the same area.
I will elaborate more if my question is not very much clear.
Any help is highly appreciated.
thanks in advance
jinos
pom
June 21st, 2003, 06:40 AM
The good old Tsunami :)
Check this: http://www.actionscript.org/showMovie.php?id=467
pom :phil:
jinos
June 22nd, 2003, 01:59 AM
but that link u posted is not working...any other working example? i have tried that tsunami example, but its a bit hard for me to grasp..maybe i am not that good in actionscripting..Any other help?
thanks a lot for trying to help me out.
oddin
June 22nd, 2003, 06:32 AM
let me see if i can make the script from me head...
//make the picture movies.Let's say pic1, pic2, pic3
//put this code in each of them
onClipEvent(Load){
s = 5;
t_xscale = _xscale;
}
onClipEvent(EnterFrame){
_xscale = _yscale = (t_xscale - _xscale)/s;
}
Give them instances names like in my example above(pic1,pic2 and pic3).
Now put them in buttons and put the following code inside of them:
on(rollover){
pic1.t_xscale = 200;
pic2.t_xscale = 50;
pic3.t_xscale = 50;
}
on(rollout){
pic1.t_xscale = 100;
pic2.t_xscale = 100;
pic3.t_xscale = 100;
Dunno it will work since i'm on a machine that doesn't have Flash instaled but if it doesn't work post a message with the problem to know what to corect.;)
zen
June 22nd, 2003, 01:08 PM
what if i wanna resize a ractangulala image in a traptizium or a slimpy any other shape with curves.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.