DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Graphics and Multimedia (http://www.daniweb.com/forums/forum28.html)
-   -   Flash Query (http://www.daniweb.com/forums/thread79525.html)

kmits May 29th, 2007 7:07 am
Flash Query
 
Need a script to zoom in on mouse click / over in flash mx.
Pls do reply soon.

thanks

hussulinux Jun 8th, 2007 3:05 pm
Re: Flash Query
 
You can try something like:

on(rollover){
 image.width = image.widht + 10;
 image.height = image.height + 10;
}
on (rollout){
 image.width = image.widht - 10;
 image.height = image.height - 10;
}

vishesh Jun 12th, 2007 8:08 pm
Re: Flash Query
 
Quote:

Originally Posted by hussulinux (Post 384881)
You can try something like:

on(rollover){
 image.width = image.widht + 10;
 image.height = image.height + 10;
}
on (rollout){
 image.width = image.widht - 10;
 image.height = image.height - 10;
}

This would work until you have set noScale property to no. Better would be using MovieClip._height or MovieClip._height where movie clip would be replaced by the clip instance name or _root for whole movie. You could also use _xscale or _yscale properties if you want relative zoom.


All times are GMT -4. The time now is 5:19 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC