Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to disable a movie clip while another movie clip is active?

Posted on 2008-10-27
2
Medium Priority
?
331 Views
Last Modified: 2013-11-19
I have two movie clips. One sits on the main page while the other is created at runtime.  The movie clip that's created at runtime sits ontop of the movie clip on the main page.  The movie clip on the main page has a combo and data box that are selectable.  The user is able to select those items even when the movie clip created at runtime is active.  How can I disable the movie clip on the main page, but still visible while the other movie clip is active?
0
Comment
Question by:svue08
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 2000 total points
ID: 22828700
you should be able to disable/enable any movieClip using following function


this function takes two parameters,
1) reference of the movieClip which has to be enabled or disabled.
2) pass second parameter as true, if want to enable the movieClip or set it false if want to disable the movieClip

sample call to disable the movieClip, assuming movieClip instance name is "myMovie"

MovieClipEnable(myMovie,false);

sample code to enable:

MovieClipEnable(myMovie,true);

function MovieClipEnable(mc:MovieClip, bool:Boolean) {
	if (bool == false) {
		mc.onRollOver = function() {
		};
		mc.useHandCursor = false;
		mc._alpha = 30;
	} else {
		delete mc.onRollOver;
		mc._alpha = 100;
	}
}

Open in new window

0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question