Solved

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

Posted on 2008-10-27
2
318 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
2 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copy-item script help 15 74
I need help embedding Base64 Images using VB.Net - When image is a .jpg 2 57
Responsive Design or Mobile Sites? 4 30
Scroll 5 news at a time. 4 25
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The goal of the tutorial is to teach the user how to how to record live broadcast.

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now