Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Zoom in place

Status
Not open for further replies.

esearing

IS-IT--Management
Aug 22, 2000
132
US
I want an image to zoom to 200% in place when moused over and when clicked launch a new web page, and goes back to normal when moused out. I tried converting the image to a button and changed the scale on the "Over" view. but it was jerky. any way to zoom-up to the larger size?

I have seen some bouncy menus that seem to zoom but can not find any references to them.


 
Attach this to the clip you want to expand:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)&&_xscale<200) {
_xscale+=5;
_yscale = _xscale;
} else if (_xscale>100) {
_xscale-=5;
_yscale = _xscale;
}
}

Add a getURL action to open your new page.
 
Thanks!!!

The image was jerky when it reached the 200% size so I modified it some.

onClipEvent (enterFrame) {

if (this.hitTest(_root._xmouse, _root._ymouse, false)&&_xscale<=200) {

if (_xscale<200){
_xscale+=5;
_yscale = _xscale;
}else if (_xscale=200) {
_xscale+=0;
_yscale = _xscale;}

} else if (_xscale>100) {
_xscale-=5;
_yscale = _xscale;
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top