Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 80307

Re: How to disable movieclips in actionscript 3.0?

$
0
0

Hi, The error says that the "homee" object is a MovieClip not a Boolean object, means homee value cannot be "false"  or "true" like the Boolean object, The movie clip value is "MovieClip" and it has some properties, so if you want to check some property value you have to add it in the if statement:

if(homee.visible == false) // check the visibility of the homee mc if it's false (hidden)

{

//Do something

}

or:

if(homee.x >= 100) check the x axis of the homee mc if it's greater than or equal to 100

{

// Do something

}


Viewing all articles
Browse latest Browse all 80307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>