Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-19-2001, 12:12 PM   #1
Registered User
Join Date: Mar 2001
Posts: 21

I have created a rollover button that zooms the graphic larger then stops. When u mouse away it just pops back to the original size which is not the effect i am looking to achieve. Maybe a tip or two on how to make the graphic zoom back to its original size when the mouse leaves the hit area.


Slippy is offline   Reply With Quote
Old 06-20-2001, 02:09 AM   #2
Registered User
Join Date: Jun 2001
Location: Savannah, GA, USA
Posts: 48
Send a message via ICQ to aesthete

no problem!

place your zooming graphic in a movie clip. motion tween it from small to big and then back to it's original size. make a new layer in that clip called "ascripts" and put a stop() frame action on that layer above each of your first two key frames (the first normal size and the big one). On the last frame (graphic should be small again) place a gotoAndStop(1) frame action. place that movie in the same timeline as your button and name it something. i'll call it "zoomMC". then on your button put this code:

(lets assume that the big state occurs on frame 20)

on (rollOver) {
  if (zoomMC._currentFrame < 20) {
  else if  (zoomMC._currentFrame > 20) {
on (rollOut) {
  if (zoomMC._currentFrame >= 20) {
  else if  (zoomMC._currentFrame <= 20) {
[Edited by Jesse on 06-20-2001 at 12:12 AM]
aesthete is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
button with music and animation, help bdubbs7 ActionScript 2.0 3 10-26-2004 05:24 PM
Button Animation kickstart1970 ActionScript 1.0 (and below) 10 07-09-2003 02:08 AM
listbox visibility kwimbi Components 9 05-18-2003 12:39 PM
:::Multistate Button ?::: zipbobang ActionScript 1.0 (and below) 10 04-16-2003 05:43 AM

All times are GMT. The time now is 09:59 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.