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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zoom an movie clip 1

Status
Not open for further replies.

orangeblue

Programmer
Nov 26, 2002
107
GB
Hi
Can any one tell me how i can zoom a movie clip in /out using buttons?

For example when the mouse goes over the button, the the movieclip will keep zooming out

thanks
 
You could create a zoom function something like:

Code:
function zoomIn(){
	yourClipName._xscale = yourClipName._xscale+10;
	yourClipName._yscale = yourClipName._yscale+10;
//change to minus for zoom out
}

Then on your zoom in button add something like this:

Code:
on(rollOver){
	var intervalID:Number = setInterval(zoomIn,100);
}
on(rollOut){
	clearInterval(intervalID);
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top