Solved

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

Posted on 2008-10-27
2
315 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
Editing login page in zencart. 2 33
Element alignment and word wrapping 9 61
What about 192.168.1.0/28 3 30
Bulk Reorder File Names 4 55
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

19 Experts available now in Live!

Get 1:1 Help Now