Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:45:02+00:00 2026-05-28T16:45:02+00:00

I have code to grow my movieClips on mouse over, then shrink back down

  • 0

I have code to grow my movieClips on mouse over, then shrink back down on mouse out. As far as I can see, my code is correct. I think the issue is that when my cursor is near the edge of the movieclip, both mouse over and mouse out events rapidly fire one after the other, causing the grow/shrink effects to produce a stuttering effect.

I’ve tried delaying the mouse out to give the mouseover a chance to cause the movieclip to grow past the mouse’s mouse out detection… but if the user swipes the cursor across the screen, the various movieclips are often left large, as the mouse leaves the movieclip before the mouse out event is reestablished.

Am I going about this wrong? Here is my code:

import mx.transitions.Tween; 
import mx.transitions.easing.*; 

stop();

fillClipArray();

function fillClipArray() 
{
    for (var prop in this) 
    {
        if (this[prop] instanceof MovieClip) 
        {
            var mc:MovieClip = this[prop];
            mc.onRollOver = function(){clipOver(this)};
            mc.onRollOut = function(){clipOut(this)};
        }
    }
}




function clipOver(clip:MovieClip)
{   
    var xScaleX:Tween = new Tween(clip, "_xscale", Strong.easeOut, clip._xscale, 125, 0.5, true); 
    var xScaleY:Tween = new Tween(clip, "_yscale", Strong.easeOut, clip._yscale, 125, 0.5, true);
}

function clipOut(clip:MovieClip)
{   
    var xScaleX:Tween = new Tween(clip, "_xscale", Strong.easeOut, clip._xscale, 85, 0.5, true); 
    var xScaleY:Tween = new Tween(clip, "_yscale", Strong.easeOut, clip._yscale, 85, 0.5, true);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:45:03+00:00Added an answer on May 28, 2026 at 4:45 pm

    Separate your button so the graphic assets are not used for the mouse events.

    1. Add a MovieClip with some shape that roughly matches your button’s initial size
    2. Set its alpha to 0
    3. Give it an instance name like “hotspot”
    4. Attach your mouse events to that instead of the entire button

    The hotspot will not change size, obviating your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that generates a List<string[]> variable but can't quite figure out how
I want to have an EC2 based cluster that can grow and shrink at
I have code which has a drop down list. And when a certain option
I have an Array with integer values. It will grow over time. It will
i have the following code to grow an image after you hover it: $(.myImage).hover(function
I can't use callbacks because I have a scenario like this (pseudo-code): $('.box').on('click', function()
I need to space UIButtons out on a UIScrollView. The code I have works,
I have code where I am trying to grow the byte array while receiving
I have been mulling over config files and their relationship to code for a
I have code like this in my view model: function ChatListViewModel(chats) { var self

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.