Solved

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

Posted on 2008-10-27
2
320 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
powershell code to list items in dropdown 6 88
QQ problem 22 42
Returning a value from a class function to a partial view in MVC5 7 28
Company website 6 29
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

791 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